Help - Search - Members - Calendar
Full Version: Scanner won't work... [SOLVED]
MandrivaUsers.org > Advanced Topics > Other Linux and Unix Distributions
SoulSe
The peeps over at the Gentoo forums don't seem to know what's going on tongue.gif

A friend gave me his HP Scanjet 2200c, so I'm trying to make it work. I noticed that with 2.6.X kernels there aren't scanner modules anymore, so I emerged libusb.

I also emerged sane and xsane.

Ok, so lsusb gives me:
CODE
lsusb
Bus 005 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 03f0:0605 Hewlett-Packard ScanJet 2200c
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

So the scanner is there. But sane-find-scanner gives:
CODE
sane-find-scanner

 # No SCSI scanners found. If you expected something different, make sure that
 # you have loaded a SCSI driver for your SCSI adapter.
 # Also you need support for SCSI Generic (sg) in your operating system.
 # If using Linux, try "modprobe sg".

 # No USB scanners found. If you expected something different, make sure that
 # you have loaded a driver for your USB host controller and have installed a
 # kernel scanner module.

 # Not checking for parallel port scanners.

 # Most Scanners connected to the parallel port or other proprietary ports
 # can't be detected by this program.

Damn! Now what? dmesg doesn't list my scanner either.

Perhaps it's because I'm not sure what to do with libusb... if anything.
devries
Try sane-find-scanner as root.
SoulSe
QUOTE (devries @ Jul 19 2004, 10:55 AM)
Try sane-find-scanner as root.
*

I _only_ tried it as root. User gives the same answer in case you were wondering...
devries
Have you unloaded the kernel driver? (modprobe -r scanner).

(I'm getting all this from man sane-usb. What more have you tried??)
SoulSe
QUOTE (devries @ Jul 19 2004, 11:16 AM)
Have you unloaded the kernel driver? (modprobe -r scanner).

(I'm getting all this from man sane-usb. What more have you tried??)
*

As I said, 2.6 kernels no longer have kernel modules for scanners, hence the need for libusb.
devries
Does your fstab contain a line line like:

none /proc/bus/usb usbfs defaults 0 0

?
SoulSe
QUOTE (devries @ Jul 19 2004, 02:21 PM)
Does your fstab contain a line line like:

              none /proc/bus/usb usbfs defaults  0  0

?
*

Yes, although that wouldn't have much to do with what we're discussing here...
devries
An does it say:

none /proc/bus/usb usbfs defaults,devmode=0666 0 0

?

(Just checking everything mentioned in man sane-usb LIBUSB smile.gif. Next up the Generic kernel scanner driver )
Qchem
Have you got the generic SCSI module loaded?

modprobe sg

Stupid question I know....
durvish
I think you need to get the hpoj driver from HP --- this is what i had to use on my HP printer with some new sane backends before Sane would see the scanner.

HPOJ Docs

here is the doc!
SoulSe
HPOJ is for all in one desktop printer/scanner/fax/etc. solutions.

The real problem is that sane-backends was emerged without the usb USE flags. Which shouldn't be necessary as most scanners are usb these days...

Anyway, sane-find-scanner now finds my scanner which is up thanks to libusb (because, as I said, 2.6 kernels do not have incorporated scanner modules anymore).

Now all I need to do is track the scanner down in /dev/ so I can make it available for users (xsane only finds it as root currently).

Problem is that I can't find it in /dev/ - any ideas? I don't know what to look for...
mdg
Take a look at this link, discussing the same problem as yours
SoulSe
QUOTE (mdg @ Jul 20 2004, 05:53 PM)
Take a look at this link, discussing the same problem as yours
*

That was most helpfull - my scanner works perfectly now.

The fix is a little longwinded - so checkout that link.

Basically, with 2.6 kernels and libusb, there won't be a /dev entry, so you need to track down the device in /proc/bus and set permissions there. It's better to use a hotplug script though...

Thanks! 2thumbsup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.