[sane-devel] Canoscan LiDE 30 getting stuck on usbio_DetectLM983x

Serge Klink sgklink at gmail.com
Fri Apr 19 07:42:12 UTC 2013


On Fri, Apr 19, 2013 at 08:11:55AM +0200, Gerhard Jäger wrote:
> On Friday 19 April 2013 13:12:45 Serge Klink wrote:
> > On Fri, Apr 12, 2013 at 10:41:38AM +0200, Gerhard Jäger wrote:
> > 
> > [...]
> >  
> > > hmmm, doesn't look good. We have some similar issues reported here:
> > > https://alioth.debian.org/tracker/index.php?func=detail&aid=314021&group_id=30186&atid=410366
> > > 
> > > In that case a HP2200.
> > > 
> > 
> > Tried it on two older machines (RHEL 5.6 and 5.8, amd64) today.
> > 
> > Scanning (LiDE 30/N1240U) worked perfectly on both.
> > That was sane-1.0.18.
> 
> Interesting. Just a wild guess - I think the problem is related to then newer 
> libusb1... - we need to check this.

Indeed... Installing 1.0.18 on the newer Debian machine made no
difference. (It's a Sony laptop with a USB3.0 controller - perhaps
it's some obscure issue with the xhci_hcd module or something.)

Just for kicks, I ran strace scanimage -L and got stuff like:

...
read(3, "# Plustek-SANE Backend configura"..., 4096) = 4096
read(3, "uto\n\n#\n# to define a new device,"..., 4096) = 70
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7fd7aaccf000, 4096)            = 0
open("/dev/bus/usb/003/003", O_RDWR)    = 3
ioctl(3, USBDEVFS_SETCONFIGURATION, 0x7fff20d6be3c) = 0
ioctl(3, USBDEVFS_CLAIMINTERFACE, 0x7fff20d6be3c) = 0
ioctl(3, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0x7fff20d6bd70) = 0
ioctl(3, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fff20d6bd38) = 0
ioctl(3, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0x7fff20d6bd70) = 0
ioctl(3, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fff20d6bd38) = -1 EAGAIN (Resource temporarily unavailable)
select(4, NULL, [3], NULL, {0, 1000})   = 0 (Timeout)
ioctl(3, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fff20d6bd38) = -1 EAGAIN (Resource temporarily unavailable)
select(4, NULL, [3], NULL, {0, 1000})   = 0 (Timeout)
ioctl(3, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fff20d6bd38) = -1 EAGAIN (Resource temporarily unavailable)
select(4, NULL, [3], NULL, {0, 1000})   = 0 (Timeout)
ioctl(3, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fff20d6bd38) = -1 EAGAIN (Resource temporarily unavailable)
select(4, NULL, [3], NULL, {0, 1000})   = 0 (Timeout)
ioctl(3, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fff20d6bd38) = -1 EAGAIN (Resource temporarily unavailable)
select(4, NULL, [3], NULL, {0, 1000})   = 0 (Timeout)

...the last two lines repeating endlessly.

Also, scanimage *does* detect the scanner (before getting stuck on
usbio_DetectLM983x), but only the *first* time it is ran after
plugging in the scanner... or so it seems.



More information about the sane-devel mailing list