Jump to content
SoulSe

Scanner won't work... [SOLVED]

Recommended Posts

The peeps over at the Gentoo forums don't seem to know what's going on :P

 

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:

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:

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.

Edited by SoulSe

Share this post


Link to post
Share on other sites

Have you unloaded the kernel driver? (modprobe -r scanner).

 

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites

An does it say:

 

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

 

?

 

(Just checking everything mentioned in man sane-usb LIBUSB :). Next up the Generic kernel scanner driver )

Share this post


Link to post
Share on other sites

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!

Edited by durvish

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites
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! :thumbs:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...