SoulSe Posted July 19, 2004 Report Share Posted July 19, 2004 (edited) 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 July 20, 2004 by SoulSe Quote Link to comment Share on other sites More sharing options...
devries Posted July 19, 2004 Report Share Posted July 19, 2004 Try sane-find-scanner as root. Quote Link to comment Share on other sites More sharing options...
SoulSe Posted July 19, 2004 Author Report Share Posted July 19, 2004 Try sane-find-scanner as root. <{POST_SNAPBACK}> I _only_ tried it as root. User gives the same answer in case you were wondering... Quote Link to comment Share on other sites More sharing options...
devries Posted July 19, 2004 Report Share Posted July 19, 2004 Have you unloaded the kernel driver? (modprobe -r scanner). (I'm getting all this from man sane-usb. What more have you tried??) Quote Link to comment Share on other sites More sharing options...
SoulSe Posted July 19, 2004 Author Report Share Posted July 19, 2004 Have you unloaded the kernel driver? (modprobe -r scanner). (I'm getting all this from man sane-usb. What more have you tried??) <{POST_SNAPBACK}> As I said, 2.6 kernels no longer have kernel modules for scanners, hence the need for libusb. Quote Link to comment Share on other sites More sharing options...
devries Posted July 19, 2004 Report Share Posted July 19, 2004 Does your fstab contain a line line like: none /proc/bus/usb usbfs defaults 0 0 ? Quote Link to comment Share on other sites More sharing options...
SoulSe Posted July 19, 2004 Author Report Share Posted July 19, 2004 Does your fstab contain a line line like: none /proc/bus/usb usbfs defaults 0 0 ? <{POST_SNAPBACK}> Yes, although that wouldn't have much to do with what we're discussing here... Quote Link to comment Share on other sites More sharing options...
devries Posted July 19, 2004 Report Share Posted July 19, 2004 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 ) Quote Link to comment Share on other sites More sharing options...
Qchem Posted July 19, 2004 Report Share Posted July 19, 2004 Have you got the generic SCSI module loaded? modprobe sg Stupid question I know.... Quote Link to comment Share on other sites More sharing options...
durvish Posted July 19, 2004 Report Share Posted July 19, 2004 (edited) 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 July 19, 2004 by durvish Quote Link to comment Share on other sites More sharing options...
SoulSe Posted July 20, 2004 Author Report Share Posted July 20, 2004 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... Quote Link to comment Share on other sites More sharing options...
mdg Posted July 20, 2004 Report Share Posted July 20, 2004 Take a look at this link, discussing the same problem as yours Quote Link to comment Share on other sites More sharing options...
SoulSe Posted July 20, 2004 Author Report Share Posted July 20, 2004 Take a look at this link, discussing the same problem as yours <{POST_SNAPBACK}> 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.