public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] USB Scanner Problems with Newer Kernels/Libusb
@ 2013-11-09  3:25 Frank Peters
  2013-11-09 12:29 ` [gentoo-amd64] " Duncan
  0 siblings, 1 reply; 19+ messages in thread
From: Frank Peters @ 2013-11-09  3:25 UTC (permalink / raw
  To: gentoo-amd64

I do not make scans very often, but when I do my scanners work very well
with Linux and Sane -- or at least they used to.

Checking the file dates on my last scans I discover that I last used my
scanner during January of 2012.  This was about the time of the release
of kernel 3.5.  The significance of this is that with kernel 3.5 the usbfs
file system was eliminated.

Previously, libusb was used to read/write to the scanner from user space.
Libusb is still used by Sane but since usbfs has been eliminated it no longer
detects my scanner.

When I plug in the scanner the kernel log shows this message:

Kernel: usb 2-1.4: new full-speed USB device number 4 using ehci-pci

The kernel can detect the device, but the user-space libusb, and hence Sane,
cannot access the scanner.

In fact, sane-find-scanner, which should detect the scanner, fails with this
output:

# Could not initialize libusb-1.0, error -99
# Skipping libusb devices

From what I've manged to find through searches I believe that udev is used
to create devices "on the fly" when a scanner is detected.  However, I've
never used udev before and never had problems with libusb detecting the scanner.
But since usbfs is gone I am now unable to scan due to a failure to detect
the scanner.

The utility usb-devices, which uses libusb, can produce data on the
scanner, but lsusb, which also uses libusb but depends on usbfs, fails.

Does anyone know to resolve such a problem?  How can I get my scanner
to be utilized by libusb and sane?

Frank Peters



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-11-13  9:14 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-09  3:25 [gentoo-amd64] USB Scanner Problems with Newer Kernels/Libusb Frank Peters
2013-11-09 12:29 ` [gentoo-amd64] " Duncan
2013-11-09 16:45   ` Frank Peters
2013-11-09 20:40     ` Barry Schwartz
2013-11-09 21:38       ` Frank Peters
2013-11-09 22:11         ` Barry Schwartz
2013-11-09 22:57           ` Mark Knecht
2013-11-09 23:10             ` Barry Schwartz
2013-11-10 16:54               ` Tanstaafl
2013-11-10 17:08                 ` Barry Schwartz
2013-11-09 23:25             ` Frank Peters
2013-11-09 23:57               ` Barry Schwartz
2013-11-10  1:30   ` [gentoo-amd64] Re: USB Scanner Problems with Newer Kernels/Libusb [Solved] Frank Peters
2013-11-10  1:53     ` Barry Schwartz
2013-11-10  2:36       ` Frank Peters
2013-11-10  4:26       ` Frank Peters
2013-11-12  0:03       ` Frank Peters
2013-11-12 23:18         ` [gentoo-amd64] " Jörg Schaible
2013-11-13  9:14           ` Paul Jewell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox