LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 01-03-2003, 01:31 AM   #1
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Rep: Reputation: 0
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.
 
Old 01-03-2003, 07:07 AM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
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.
 
Old 01-03-2003, 02:54 PM   #3
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the tip Aussie, I'll let you know how it goes.

Most appreciated.
 
Old 01-03-2003, 05:45 PM   #4
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 01-03-2003, 06:01 PM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
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.
 
Old 01-03-2003, 09:09 PM   #6
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 01-07-2003, 07:59 PM   #7
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 01-07-2003, 10:23 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
What happens when you click on the new icon?
 
Old 01-08-2003, 12:21 AM   #9
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Original Poster
Rep: Reputation: 0
The same: No devices available message
 
Old 01-08-2003, 12:36 AM   #10
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
This may be a stupid question, but what happens if you do:
[code]
scanimage -d /dev/usb/scanner0
[/code[
 
Old 01-08-2003, 02:36 AM   #11
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 01-08-2003, 03:04 AM   #12
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
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.
 
Old 01-08-2003, 04:45 AM   #13
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 01-08-2003, 05:38 AM   #14
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
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
 
Old 01-08-2003, 06:23 PM   #15
tonyath
LQ Newbie
 
Registered: Mar 2002
Location: New Zealand
Distribution: Mandrake 9
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SANE to INSANE mikeghet Linux - Newbie 2 06-17-2005 12:11 AM
need help with xsane and sane jbzy3000 Linux - Software 11 08-10-2004 12:11 AM
Redhat WS and sane awtoc123 Red Hat 0 04-21-2004 05:13 AM
xsane and sane demmylls Linux - General 1 11-16-2003 01:39 AM
Sane Pedroski Linux - Software 9 10-05-2003 03:07 PM


All times are GMT -5. The time now is 09:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration