[sane-devel] scanimage -L crashes with HP ScanJet 4100c

Peter Kirchgessner peter at kirchgessner.net
Sun Feb 10 19:19:51 UTC 2008


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 2>&1
> 
> 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



More information about the sane-devel mailing list