scanner Epson Perfektion 1670 USB_SUSPEND

Bug #93654 reported by Oleksij Rempel on 2007-03-19
Affects Status Importance Assigned to Milestone
sane-backends (Ubuntu)

Bug Description

snapscane-backend will mutex usb-scanner-device only for scann not for "back to ready" mode. After scann scanimage (or xsane) will snapscani_mutex_close and the kernel after 2 seconds will USB_SUSPEND. The scanner will newer get to the ready mode becous it will be suspended.

see the bug:

Steps to reproduce:
1. Plug in scanner Epson Perfection 1670
2. scanimage -d snapscan > test.pnm
3. After scann It freez.

This patch for sane-backends solwe two of problems on my scanner:

--- sane-backends/backend/snapscan-usb.c.old 2007-03-19 11:22:12.000000000 +0100
+++ sane-backends/backend/snapscan-usb.c 2007-03-19 11:21:36.000000000 +0100
@@ -231,6 +231,7 @@ static void snapscani_usb_close(int fd)
     urb_counters->read_urbs = 0;
     urb_counters->write_urbs = 0;
+ sleep(5);

ProblemType: Bug
Architecture: i386
Date: Mon Mar 19 11:20:56 2007
DistroRelease: Ubuntu 7.04
Uname: Linux zwerg 2.6.21-rc4 #4 Mon Mar 19 08:33:21 CET 2007 i686 GNU/Linux

Hi fishor,
maybe you can look at this bug:
It might be related to yours.

Oleksij Rempel (olerem) wrote :

this is wrong solution. the problem is USB_SUSPEND in kernel.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.