Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423425 - media-gfx/sane-backends - scanimage -L doesn't recognize scanner
Summary: media-gfx/sane-backends - scanimage -L doesn't recognize scanner
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 00:13 UTC by Roman
Modified: 2013-02-03 15:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
DMESG (dmesg.log,45.84 KB, text/plain)
2012-06-25 00:13 UTC, Roman
Details
strace scanimage -L (strace_scanimage.log,26.97 KB, text/plain)
2012-06-25 00:14 UTC, Roman
Details
strace scanimage-L with added usb 0x04b8 0x012e to epkowa.conf (strace_scanimage_force.log,234.30 KB, text/plain)
2012-06-25 00:15 UTC, Roman
Details
emerge info (emerge.info,5.80 KB, text/plain)
2012-06-25 00:16 UTC, Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2012-06-25 00:13:19 UTC
Created attachment 316195 [details]
DMESG

There were some similar bugs but all of them seems to be fixed in earlier versions. However, now, after upgrade I stuck with scanimage -L doean't see my scanner.

From the beginning:
k7 ~ # lsusb
...
Bus 001 Device 003: ID 04b8:012e Seiko Epson Corp. GT-F670 [Perfection V200 Photo]
...
k7 ~ # sane-find-scanner
...
found USB scanner (vendor=0x04b8 [EPSON], product=0x012e [EPSON Scanner]) at libusb:001:003
...
k7 ~ # scanimage -L
No scanners were identified. ...

strace log of scanimage is attached. Interesting is the following:
22356 open("/dev/bus/usb/001/003", O_RDWR) = 3
22356 ioctl(3, SNDRV_CTL_IOCTL_ELEM_READ or USBDEVFS_IOCTL or USBDEVFS_IOCTL32, 0x7fffec2842e0) = -1 ENOTTY (Inappropriate ioctl for device)

If I add the following line to /etc/sane.d/epkowa.conf:
usb 0x04b8 0x012e
then I get repeatedly in strace scanimage -L:
select(4, NULL, [], NULL, {0, 1000})    = 0 (Timeout)
ioctl(3, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fff9b840468) = -1 EAGAIN (Resource temporarily unavailable)

To me looks like bug in epkowa backend (iscan) or in libusb. However I had no problems with iscan 2.26.2 before upgrade. I tryed different combinations with downgrading iscan, iscan-data, libusb, sane-backends but with no luck. Problem detected on kernel 2.6.37. No I upgraded to 3.4.3 and it also didn't help. Currently I have the following versions of the programs:

media-gfx/iscan-2.28.1.3
media-gfx/iscan-data-1.13.0.1
media-gfx/sane-backends-1.0.22-r2
dev-libs/libusb-1.0.9

Need to say, that I made a small tweak to iscan to compile with new libpng-1.5.x. However I don't beleive it has any impact on this problem.
Comment 1 Roman 2012-06-25 00:14:54 UTC
Created attachment 316197 [details]
strace scanimage -L
Comment 2 Roman 2012-06-25 00:15:47 UTC
Created attachment 316199 [details]
strace scanimage-L with added usb 0x04b8 0x012e to epkowa.conf
Comment 3 Roman 2012-06-25 00:16:04 UTC
Created attachment 316201 [details]
emerge info
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2012-07-03 20:59:25 UTC
Sorry, I have absolutely no idea what is going wrong here.
Comment 5 Roman 2012-07-03 21:03:03 UTC
Maybe I can do additional tests or provide additional logs that can help? Please let me know.
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2012-07-03 21:18:26 UTC
CC-ing iscan maintainer.

You could try if the -v option gives helpful output, or run scanimage with the -A option to check if that backend offers any debugging switches.

Good luck!
Comment 7 Pacho Ramos gentoo-dev 2013-02-03 15:00:25 UTC
Also try with 1.0.23