Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
01-03-2003, 01:31 AM
|
#1
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Rep:
|
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.
|
|
|
01-03-2003, 07:07 AM
|
#2
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
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.
|
|
|
01-03-2003, 02:54 PM
|
#3
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Original Poster
Rep:
|
Thanks for the tip Aussie, I'll let you know how it goes.
Most appreciated.
|
|
|
01-03-2003, 05:45 PM
|
#4
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Original Poster
Rep:
|
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
|
|
|
01-03-2003, 06:01 PM
|
#5
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
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.
|
|
|
01-03-2003, 09:09 PM
|
#6
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Original Poster
Rep:
|
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
|
|
|
01-07-2003, 07:59 PM
|
#7
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Original Poster
Rep:
|
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
|
|
|
01-07-2003, 10:23 PM
|
#8
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
What happens when you click on the new icon?
|
|
|
01-08-2003, 12:21 AM
|
#9
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Original Poster
Rep:
|
The same: No devices available message
|
|
|
01-08-2003, 12:36 AM
|
#10
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
This may be a stupid question, but what happens if you do:
[code]
scanimage -d /dev/usb/scanner0
[/code[
|
|
|
01-08-2003, 02:36 AM
|
#11
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Original Poster
Rep:
|
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
|
|
|
01-08-2003, 03:04 AM
|
#12
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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.
|
|
|
01-08-2003, 04:45 AM
|
#13
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Original Poster
Rep:
|
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
|
|
|
01-08-2003, 05:38 AM
|
#14
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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
|
|
|
01-08-2003, 06:23 PM
|
#15
|
LQ Newbie
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18
Original Poster
Rep:
|
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 08:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|