scanner Epson Perfektion 1670 USB_SUSPEND

Bug #93654 reported by Oleksij Rempel
4
Affects Status Importance Assigned to Milestone
sane-backends
Unknown
Unknown
sane-backends (Ubuntu)
New
Undecided
Unassigned

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: http://bugzilla.kernel.org/show_bug.cgi?id=8231

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);
     snapscani_mutex_close(&snapscan_mutex);
     sanei_usb_close(fd);
 }

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

Revision history for this message
Oleksij Rempel (olerem) wrote :
Revision history for this message
Oleksij Rempel (olerem) wrote :
Revision history for this message
Emanuel Goscinski (emu--deactivatedaccount) wrote :

Hi fishor,
maybe you can look at this bug: https://launchpad.net/bugs/85488
It might be related to yours.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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