B Thomas <[EMAIL PROTECTED]> wrote:

Hi Thomas,

> The scanner is detected by libusb and uses the
> plustek driver. scanimage and xsane are able
> to initiate a scan. The lamp stays on and
> the head moves normally but the image produced
> is always completely black.
>
> Scanner is Umax Astra 3400. 

Could you please tryout the following workaround, which consists of a
new udev rules file. Please replace (temporarily) the content of
/etc/udev/libsane.rules with what follows:


ACTION!="add", GOTO="libsane_rules_end"
ENV{DEVTYPE}!="usb_device", GOTO="libsane_rules_end"

# Umax UMAX 3400 | UMAX Astra 3400
SYSFS{idVendor}=="1606", SYSFS{idProduct}=="0050", 
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="664", GROUP="scanner", 
GOTO="libsane_no_usb_autosuspend"
# Umax UMAX 3400 | Umax UMAX Astranet ia101 | Umax UMAX 3450
SYSFS{idVendor}=="1606", SYSFS{idProduct}=="0060", 
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="664", GROUP="scanner", 
GOTO="libsane_no_usb_autosuspend"

GOTO="libsane_rules_end"

LABEL="libsane_no_usb_autosuspend"
RUN+="/bin/sh -c 'echo /sys/$env{DEVPATH} > /tmp/sane-no-usbsuspend && test -e 
/sys/$env{DEVPATH}/power/autosuspend && echo on > 
/sys/$env{DEVPATH}/power/autosuspend'"

LABEL="libsane_rules_end"


Then run /etc/init.d/udev reload as root, to make sure udev reloads
the new rules.

After that, plug in your scanner. Try to scan, and again, and
again. It should work flawlessly just as it used to until
CONFIG_USB_SUSPEND appeared.

If it doesn't work, please:
 - check that the permission under /dev/bus/usb/BBB/DDD are correct
for the device file corresponding to the scanner (and also check that
it's been created !)
 - echo $(cat /tmp/sane-no-usbsuspend)/power/autosuspend

Thanks,

JB.

-- 
 Julien BLACHE - Debian & GNU/Linux Developer - <[EMAIL PROTECTED]> 
 
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to