[sane-devel] scanimage -L crashes with HP ScanJet 4100c
Seems to me that the hp-backend can do a workaround, but not worth for daily use. Could be that the HP ScanJet 4100 C is a little bit problematic concerning USB in certain environments. BTW, did you try to connect the scanner directly to an USB-connector on the back of the PC ? I am giving up here on the HP ScanJet 4100 C. Not in general, because it is working for me on two different systems. Just for certain USB-environments. I have no recommendation for a scanner. At least I would look for a scanner that supports USB 2.0. All the scanners which are supported by the hp-backend only support USB 1.x, because USB 2.0 was not available at that time when HP stopped the production. And USB 1.x is too slow for scanning color images at higher resolutions. The scanner stops, goes back and restarts very often. Good luck Peter Bill Moseley schrieb: On Sun, Feb 10, 2008 at 08:19:51PM +0100, Peter Kirchgessner wrote: export SANE_HP_RDREDO=20 xsane hp This will do 20 retries (2 seconds in total) before giving up. Please try if at least the xsane-GUI comes up. Maybe you then will run into an I/O-error during scanning. Yes, that seemed to help get xsane started, and yes when I try and do a preview it seems to take a very long time to scan, if at all. Have any scanner recommendations? ;) Thanks for your help, Peter. -- Peter Kirchgessner http://www.kirchgessner.net mailto:peter at kirchgessner.net
[sane-devel] scanimage -L crashes with HP ScanJet 4100c
Hello, I assume that there is a problem with the communication with that scanner. The backend tries to identify the scanner by inquiring various settings. And if the backend does not get the expected answers from it (Escape-sequences with defined arguments) it will not make use of that scanner. I am using a HP ScanJet 6350 with USB (even on a 64 bit machine) since years and it makes no problem. And the hp-backend uses the same USB-software-interface for all the scanners it supports. Maybe the ScanJet 4100 is a little bit too slow in answering and it does not deliver the expected answers in time. I will see if I can find a workaround. Peter m. allan noah schrieb: well, i think peter might have more clue than anyone else- peter? allan On 2/9/08, Bill Moseley moseley at hank.org wrote: On Sat, Feb 09, 2008 at 01:32:19PM -0500, m. allan noah wrote: does it work without the hub? how about scrapping xsane or the gimp for a minute, and just use scanimage to try and grab data Sorry if I was not clear. I was trying w/o the hub. Here' with the scanner connected directly to the computer: moseley at bumby2:~$ scanimage -L device `hp:libusb:005:002' is a Hewlett-Packard ScanJet 4100C flatbed scanner moseley at bumby2:~$ scanimage image.pnm scanimage: no SANE devices found Hum -- if I try multiple times it sometimes will make the scanner work. Like one in 20 tries. -- Bill Moseley moseley at hank.org -- Peter Kirchgessner http://www.kirchgessner.net mailto:peter at kirchgessner.net
[sane-devel] scanimage -L crashes with HP ScanJet 4100c
Bill, I just tried the ScanJet 4100 C with an OpenSuse 10.3 on a 64 Bit machine without problems. On Suse 10.1 32 Bit the scanner was not detected by the USB-layer because of error messages like Feb 10 11:08:26 capella kernel: usb 1-9: new full speed USB device using ohci_hcd and address 14 Feb 10 11:08:27 capella kernel: usb 1-9: device not accepting address 14, error -62 in /var/log/messages. I needed to unplug the scanner from the power supply and connect the power supply and USB again to get around that. After this I could only access the scanner as root. Otherwise libusb could not open the device because of permission problems. Can you please create a hp.log from a use of xsane that failed: SANE_DEBUG_HP=255 xsane hp.log 21 and send it back to me ? After xsane failed, please have a look at /var/log/messages if you can find some error message which might be related to the failure. BTW: /dev/scanner is not needed for USB. libusb is used to search a device on the USB that matches the description usb 0x03f0 0x0101 which is defined in /etc/sane.d/hp.conf and represents the HP ScanJet 4100 C. --Peter m. allan noah schrieb: well, i think peter might have more clue than anyone else- peter? allan On 2/9/08, Bill Moseley moseley at hank.org wrote: On Sat, Feb 09, 2008 at 01:32:19PM -0500, m. allan noah wrote: does it work without the hub? how about scrapping xsane or the gimp for a minute, and just use scanimage to try and grab data Sorry if I was not clear. I was trying w/o the hub. Here' with the scanner connected directly to the computer: moseley at bumby2:~$ scanimage -L device `hp:libusb:005:002' is a Hewlett-Packard ScanJet 4100C flatbed scanner moseley at bumby2:~$ scanimage image.pnm scanimage: no SANE devices found Hum -- if I try multiple times it sometimes will make the scanner work. Like one in 20 tries. -- Bill Moseley moseley at hank.org -- Peter Kirchgessner http://www.kirchgessner.net mailto:peter at kirchgessner.net
[sane-devel] scanimage -L crashes with HP ScanJet 4100c
Bill, in case of the failure no data was received from the scanner. The backend then retries to read the requested data again after waiting 0.1 seconds. You can try to increase the number of retries to see if this helps: export SANE_HP_RDREDO=20 xsane hp This will do 20 retries (2 seconds in total) before giving up. Please try if at least the xsane-GUI comes up. Maybe you then will run into an I/O-error during scanning. --Peter Bill Moseley schrieb: Hi Peter, Thank you for looking at this problem. Yes, it might be a timing issue. Thinking back, this scanner has often required running xsane a few times before it would start, but I moved to a new machine (old machine was usb 1 and this machine is usb 2). Can you please create a hp.log from a use of xsane that failed: SANE_DEBUG_HP=255 xsane hp.log 21 I power cycled the scanner and the first time I ran that command xsane started. That's the hp.log file. When I tried again it failed, and that's the hp.log.failed. and send it back to me ? After xsane failed, please have a look at /var/log/messages if you can find some error message which might be related to the failure. Nothing too interesting in syslog Feb 10 05:58:07 bumby2 kernel: [76000.310631] usb 4-2: new full speed USB device using uhci_hcd and address 23 Feb 10 05:58:17 bumby2 kernel: [76010.470576] usb 4-2: configuration #1 chosen from 1 choice Feb 10 05:58:17 bumby2 NetworkManager: debug [1202651897.952024] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3f0_101_00MY87R538FT'). Feb 10 05:58:18 bumby2 NetworkManager: debug [1202651898.006600] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3f0_101_00MY87R538FT_if0'). Feb 10 05:58:18 bumby2 NetworkManager: debug [1202651898.026685] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3f0_101_00MY87R538FT_usbraw'). BTW: /dev/scanner is not needed for USB. libusb is used to search a device on the USB that matches the description usb 0x03f0 0x0101 which is defined in /etc/sane.d/hp.conf and represents the HP ScanJet 4100 C. --Peter m. allan noah schrieb: well, i think peter might have more clue than anyone else- peter? allan On 2/9/08, Bill Moseley moseley at hank.org wrote: On Sat, Feb 09, 2008 at 01:32:19PM -0500, m. allan noah wrote: does it work without the hub? how about scrapping xsane or the gimp for a minute, and just use scanimage to try and grab data Sorry if I was not clear. I was trying w/o the hub. Here' with the scanner connected directly to the computer: moseley at bumby2:~$ scanimage -L device `hp:libusb:005:002' is a Hewlett-Packard ScanJet 4100C flatbed scanner moseley at bumby2:~$ scanimage image.pnm scanimage: no SANE devices found Hum -- if I try multiple times it sometimes will make the scanner work. Like one in 20 tries. -- Bill Moseley moseley at hank.org -- Peter Kirchgessner http://www.kirchgessner.net mailto:peter at kirchgessner.net -- Peter Kirchgessner http://www.kirchgessner.net mailto:peter at kirchgessner.net
[sane-devel] scanimage -L crashes with HP ScanJet 4100c
can you get a debug log, after a fresh boot of the scanner and the machine, by running the following all on one line: SANE_DEBUG_HP=255 scanimage -L 2hp4100.log then post hp4100.log back to the list. i've cc'd the backend author, he might have some ideas. allan On Jan 22, 2008 11:57 PM, Bill Moseley moseley at hank.org wrote: On Tue, Jan 22, 2008 at 08:25:54PM -0500, m. allan noah wrote: are you on a 64 bit machine? Nope. $ scanimage -L scanimage: hp-option.c:3713: hp_optset_fix_geometry_options: Assertion `tl_x tl_y br_x br_y' failed. Aborted (core dumped) (same running xsane). -- Bill Moseley moseley at hank.org -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin
[sane-devel] scanimage -L crashes with HP ScanJet 4100c
are you on a 64 bit machine? allan On 1/20/08, Bill Moseley moseley at hank.org wrote: Does anyone have suggestions on this? On Mon, Jan 14, 2008 at 06:12:02PM -0800, Bill Moseley wrote: I just moved a scanner from Sid to a Gutsy machine and now I have this problem: https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/119819 $ scanimage -L scanimage: hp-option.c:3713: hp_optset_fix_geometry_options: Assertion `tl_x tl_y br_x br_y' failed. Aborted (core dumped) (same running xsane). -- Bill Moseley moseley at hank.org -- sane-devel mailing list: sane-devel at lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-request at lists.alioth.debian.org -- The truth is an offense, but not a sin
[sane-devel] scanimage -L crashes with HP ScanJet 4100c
On Tue, Jan 22, 2008 at 08:25:54PM -0500, m. allan noah wrote: are you on a 64 bit machine? Nope. $ scanimage -L scanimage: hp-option.c:3713: hp_optset_fix_geometry_options: Assertion `tl_x tl_y br_x br_y' failed. Aborted (core dumped) (same running xsane). -- Bill Moseley moseley at hank.org
[sane-devel] scanimage -L crashes with HP ScanJet 4100c
Does anyone have suggestions on this? On Mon, Jan 14, 2008 at 06:12:02PM -0800, Bill Moseley wrote: I just moved a scanner from Sid to a Gutsy machine and now I have this problem: https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/119819 $ scanimage -L scanimage: hp-option.c:3713: hp_optset_fix_geometry_options: Assertion `tl_x tl_y br_x br_y' failed. Aborted (core dumped) (same running xsane). -- Bill Moseley moseley at hank.org
[sane-devel] scanimage -L crashes with HP ScanJet 4100c
I just moved a scanner from Sid to a Gutsy machine and now I have this problem: https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/119819 $ scanimage -L scanimage: hp-option.c:3713: hp_optset_fix_geometry_options: Assertion `tl_x tl_y br_x br_y' failed. Aborted (core dumped) (same running xsane). Any suggestions how to resolve? Thanks, -- Bill Moseley moseley at hank.org