Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Scanjet 6200C: hp.conf and libusb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
backjackII
n00b
n00b


Joined: 19 Sep 2002
Posts: 44
Location: California, USA

PostPosted: Thu May 20, 2004 7:40 am    Post subject: Scanjet 6200C: hp.conf and libusb Reply with quote

I have an HP scanjet 6200C scanner running under kernel 2.6.5-r1. I've been trying to get my scanner working for well over a month, but give up each time and boot into windows to scan. Every time I do scanimage -L i get two results:


Code:
bash-2.05b# scanimage -L
device `hp:libusb:002:002' is a Hewlett-Packard ScanJet 62x0C flatbed scanner
bash-2.05b#


and

Code:
bash-2.05b# scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
bash-2.05b#


I get these two results randomly when I run scanimage -L successively. Doing a plain scanimage or xsane never works either.

Sometimes i get the following:
Code:

bash-2.05b# scanimage
scanimage: sane_start: Error during device I/O
bash-2.05b#


or (randomly)

Code:

bash-2.05b# scanimage
scanimage: no SANE devices found


My hp.conf contains simply:
Code:
usb 0x03f0 0x0201


Sane-find-scanner always finds my scanner:
Code:

bash-2.05b# 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".

found USB scanner (vendor=0x03f0, product=0x0201) at libusb:002:002
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

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


I've also tried simply using libusb:002:002 as the configuration entry in my hp.conf file. When I do this, scanimage -L never finds my scanner.
Back to top
View user's profile Send private message
backjackII
n00b
n00b


Joined: 19 Sep 2002
Posts: 44
Location: California, USA

PostPosted: Mon May 24, 2004 9:16 am    Post subject: Reply with quote

bump... any ideas guys? This problem has persisted for a while and I've tried everything.
Back to top
View user's profile Send private message
Clemrod
n00b
n00b


Joined: 29 Feb 2004
Posts: 1

PostPosted: Sun Feb 27, 2005 7:39 am    Post subject: Reply with quote

You get this fixed? I'm having the exact same problem.
Back to top
View user's profile Send private message
dbergst
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 88

PostPosted: Sun Feb 27, 2005 4:40 pm    Post subject: ScanJet 6200C Reply with quote

I have the exact same scanner. It has never run reliably under linux USB (either the module-based versions in 2.4 or libusb under 2.4 or 2.6). I have gotten it to work under 2.6.10-gentoo-r6 and libusb-0.1.8, although not reliably for scanning sessions. Usually I have to remove the usb driver (on my system it is uhci_hcd), restart /etc/init.d/coldplug, then cross my fingers. 8)

What this does is force the system to redetect the usb devices via tha coldplug script, and with module autoloading enabled, the uhci_hcd module gets reloaded. After that, I am able to run xsane for a short period of time, usually no more than 20 - 30 minutes at a time, which is enough for me to scan in a few images. Not perfect but a workaround.

Another tip I read and use in combination with the above is to comment out any scanner types that do not apply in /etc/sane.d/dll.conf and comment out the scsi related portions in /etc/sane.d/hp.conf.

If anyone has a better solution than the above, I'm all ears. :!:
Back to top
View user's profile Send private message
Dr. Frankenbox
Apprentice
Apprentice


Joined: 16 Jul 2005
Posts: 171
Location: Iowa, USA

PostPosted: Thu Dec 22, 2005 7:20 pm    Post subject: Reply with quote

Also with a scanjet 6200C, I am having the first problem (it is randomly not detected by SANE) but not the second problem (there is an I/O error when it is detected). The result is that I can scan using scanimage, but I sometimes have to tell it twice. I didn't need any workarounds like the ones suggested by dbergst. The computer I'm using has ohci-style USB. My hp.conf is a little more extensive than blackjack's:

Code:
scsi HP
# Uncomment the following if you have "Error during device I/O" on SCSI
#   option dumb-read
#
# The usual place for a SCSI-scanner on Linux
/dev/scanner
#
# USB-scanners supported by the hp-backend
# HP ScanJet 4100C
usb 0x03f0 0x0101
# HP ScanJet 5200C
usb 0x03f0 0x0401
# HP ScanJet 62X0C
usb 0x03f0 0x0201
# HP ScanJet 63X0C
usb 0x03f0 0x0601
#
# Uncomment the following if your scanner is connected by USB,
# but you are not using libusb
# /dev/usb/scanner0
#   option connect-device


If you think there's anything else you can learn from me that might get your scanners at least partially working, please ask.
<edit>I just thought of one more thing. Before running "emerge kde" when installing the system, I added "scanner" to my USE flags. Re-emerging with that flag might help.</edit>

Finally, there's one thing I'd really like to fix about this. I have Kooka installed with KDE, but I can't get it to work with my scanner despite the fact that scanimage works fine. When I choose "Select Scan Device" from the Settings menu, nothing happens. I have no idea how to tell the program to do even a preview scan. Any advice?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum