LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sane Again (https://www.linuxquestions.org/questions/linux-software-2/sane-again-40157/)

tonyath 01-03-2003 12:31 AM

Sane Again
 
I have been attempting to configure my Linux (Mandrake 9) to recognise my Canon
CanoScan FB 630u scanner.

Having viewed a number of previous postings (on Scanner installations) on this
forum, I thought it was all going to be relatively easy. I'm not there yet??

I believe I have installed Sane RPM's off the Mandrake CD's ie:
Sane-frontends (1.0.8-1mdk); Sane-backends (1.0.8-5 mdk); XSane
(087-1 mdk); XSane-gimp (.87-1 mdk);LibSane 1 (1.0.8-5 mdk);LibSane 1-devel
(1.0.8-5); LibSane-hpojo

I have taken the following steps:

Established that there is a directory called: /dev/usb/scanner0

Added the line: /sbin/modprobe scanner vendor=0x04a9 product=0x2204 to the end
of the /etc/rc.d/rc.local file

Added the line: options scanner vendor=0x04a9 product=0x2204 to the end of the
/etc/modules.conf file

Added the following two lines to the end of the USB section of
/etc/sane.d/plustek.conf:

[usb] 0x04a9 0x2204
device /dev/usb/scanner0

When I bring-up USB Devices (KDE Control Module) it clearly lists the CanoScan
FB630U as being linked to the USB UHCI Root Hub (1).

When in terminal-mode, upon entering the following commands, these are the
positive responses that get reported back:

scanimage -- version: scanimage <sane-backends> 1.0.8; backend version 1.0.8

sane-find-scanner: found USB scanner <vendor=0x04a9, product=0x2204> at device
/dev/usb/scanner0

ls -al /dev/usb/scanner0: crw ------- 1 tony root 180, 48Jan 3 13:45
/dev/usb/scanner0

However, this is the negative response:

scanimage -L: no scanners were identified (etc etc)

Also, upon entering: xsane the program first brings up the End User Licence
Agreement & following my acceptance I get the error message - xsane: no
devices available.

Any help would be most appreciated.

Aussie 01-03-2003 06:07 AM

Try (as root) doing "chmod 666 /dev/usb/scanner0", also it might help if you install libusb and set up usbdevfs.
Hotplugging is another must have for usb devices.

tonyath 01-03-2003 01:54 PM

Thanks for the tip Aussie, I'll let you know how it goes.

Most appreciated.

tonyath 01-03-2003 04:45 PM

Hi Aussie,

As a follow-up to your suggestions I have:

a) entered the command: chmod 999 /dev/usb/scanner0
b) installed: libusb
c) added the following entry into the /etc/fstab file (after the /proc entry):
none /proc/bus/usb usbdevfs defaults 0 0

I believe Hotplugging is now an integral part of Mandrake ver 9

Unfortunately, I'm still getting the same "No devices available" messages upon entering the Xsane command &
"no scanners were identified" following the scanimage -L command.

Regards,

Tony

Aussie 01-03-2003 05:01 PM

Ok, try making a symlink to your device,
"ln -s /dev/usb/scanner0 /dev/usbscanner"
and changing /etc/sane.d/plustek.conf to point to the link.
On my system sane installes the conf files to /usr/local/etc, you may want to have a poke around to see if there are any other sane files that may be conflicting.

tonyath 01-03-2003 08:09 PM

Thanks again,

I've made-up the simlink as recommended & edited plustek - trying-out these two configurations:

Example 1:


# The USB section:
# each device needs at least two lines:
# - [usb] vendor-ID and product-ID
# - device devicename
# - CanoScan FBS630u
[usb] 0x04a9 0x2204
device /dev/usbscanner
#
# i.e. for Plustek (0x07B3) UT12/16/24 (0x0017)
# [usb] 0x07B3 0x0017
# device /dev/usbscanner
#
# additionally you can specify some options
# warmup, lOffOnEnd, lampOff
#
# For autodetection use
#[usb]
#device /dev/usb/scanner0


Example 2:


# The USB section:
# each device needs at least two lines:
# - [usb] vendor-ID and product-ID
# - device devicename
# - CanoScan FBS630u
[usb] 0x04a9 0x2204
device /dev/usb/scanner0
#
# i.e. for Plustek (0x07B3) UT12/16/24 (0x0017)
# [usb] 0x07B3 0x0017
# device /dev/usbscanner
#
# additionally you can specify some options
# warmup, lOffOnEnd, lampOff
#
# For autodetection use
#[usb]
#device /dev/usb/scanner0

I've done a 'whereis sane'

& found the following:

/etc/sane.d
/usr/lib/sane
/usr/include/sane
/usr/share/sane

The /usr/include/sane contains two files: sane.h & saneopts.h

and the /usr/share/sane has a subdirectory: xsane containing two text files,
one .rc file, two pnm files & eight .xpm files plus a further subdirectory called doc (containing an assortment of 89 html & jpg files

The /usr/lib/sane directory is the one containing plustek & other scanner drivers.

The 'whereis xsane' shows the directory: /usr/bin

Regards

tonyath 01-07-2003 06:59 PM

Hi Aussie,

In addition to the last thread, I now find when I type-in the command "sane-find-scanner" I get two devices reported back:

sane-find-scanner: found USB scanner (vendor = 0x04a9, product = 0x2204) at device /dev/usb/scanner0
sane-find-scanner: found USB scanner (vendor = 0x04a9, product = 0x2204) at device /dev/usbscanner

I don't have a dev/usbscanner file or directory.

Also a new icon called: xsane /dev/usb/scanner0 has appeared on the desktop, which if one attempts to remove, the message 'Access denied to /usr/share/apps/kdesktop/Desktop/dynamic-dev-usb-scanner0.desktop' appears. Removing it in root-mode works but it gets remade next time one boots.

Regards,

tonyath

Aussie 01-07-2003 09:23 PM

What happens when you click on the new icon?

tonyath 01-07-2003 11:21 PM

The same: No devices available message

moses 01-07-2003 11:36 PM

This may be a stupid question, but what happens if you do:
[code]
scanimage -d /dev/usb/scanner0
[/code[

tonyath 01-08-2003 01:36 AM

Thanks moses,

I've done that & get the following response:

"You seem to have specified a Unix device name or filename instead of selecting the SANE scanner or image acquisition device you want to use. As an example, you might want "Epson:/dev/sg0" or "hp:/dev/usbscanner0". If any supported devices are installed in your system, you should be able to see a list with "scanimage --list -devices"

When I do this I get: No scanners were identified etc etc...???

Looks like Bill GGGGGGGGGG wins. Who needs this sort of Sh##@@$$????

Many thanks for your suggestion though.

Regards,

tonyath

moses 01-08-2003 02:04 AM

Oh, sane wants you to provide the vendor name for the scanner:

Try:
Code:

scanimage -d canon630u:/dev/usb/scanner0
(it may be just "-d canon:/dev/. . .")

copy your /etc/sane.d/plustek.conf to
/etc/sane.d/cannon630u.conf.

tonyath 01-08-2003 03:45 AM

Wow, things have really started to happen!!

The command: scanimage -d canon630u:/dev/usb/scanner0 made my scanner jump into gear & go into an initiallation sequence.

This is the first time anything has happened!!

I wasn't quite sure what you meant re the copying process. This is what I did:

I renamed the canon630u.conf file & copied the plustek file into a temp directory. Renamed it : canon630u & pasted it back into the /etc/sane.d directory.

This didn't have any effect when I entered the xsane command (in terminal). I believe (with your help) I'm almost there & appreciate your help.

Kind Regards,

tonyath

moses 01-08-2003 04:38 AM

Try running either:
Code:

xsane canon630u:/dev/usb/scanner0
or
Code:

xscanimage canon630u:/dev/usb/scanner0
Also, you'll want to read the man pages:
Code:

man sane
man xsane
man xscanimage


tonyath 01-08-2003 05:23 PM

Hi Moses,

Once again, many thanks for your assistance. This time I got to see what xsane actually looks like.

When I entered the code: xsane canon630u:/dev/usb/scanner0 four windows appear:

When I entered the code: xscanimage canon630u:/dev/usb/scanner0 one window appears:

Now, in both cases these windows appear instantly & when I execute the Aquire function the following error message appears:

Failed to start scanner. Device busy

One of my concerns (see previous postings #5,6 & 7) is the double report-back I get upon entering the code: sane-find-scanner.

This was the result of entering a symlink command: ln -s /dev/usb/scanner0 /dev/usbscanner that Aussie had suggested & it's now starting to bother me.

Is there a way of reversing this command? Perhaps this is now causing a problem.

Regards,

tonyath


All times are GMT -5. The time now is 10:57 AM.