SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
In previous Slackware libsane releases, my scanner was not supported. In 13.1 the support is there:
root@gandalf:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 03f0:3304 Hewlett-Packard DeskJet 990c
Bus 002 Device 004: ID 04a7:0229 Visioneer OneTouch 7100
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@gandalf:~# sane-find-scanner
...
found USB scanner (vendor=0x04a7 [Visioneer], product=0x0229 [USB Scanner], chip=GL646) at libusb:002:004
...
root@gandalf:~# scanimage -L
device `genesys:libusb:002:004' is a Visioneer OneTouch 7100 flatbed scanner
On a new Slackware64 install, the scanner worked with Skanlite and xsane. I was so excited that a posted a snippet to the HCL on linuxquestions.org
Now, after a few /patches updates, the scanner stopped working. Scanlite and xsane find the scanner but can't scan. The scanner still scans in WinXP. Ive been all over the udev rules and elsewhere but don't see where the change occurred.
I tried with a "fresh" Slackware32 with the same results, but unfortunately I had already installed the /patches updates on that system.
The only 2 log messages are:
SYSLOG:
Sep 14 10:47:52 gandalf skanlite: io/hpmud/musb.c 2007: invalid usb_open: Permission denied
MESSAGES:
Sep 14 10:45:52 gandalf kernel: usb 2-3: new full speed USB device using ohci_hcd and address 4
Sep 14 10:45:52 gandalf kernel: usb 2-3: New USB device found, idVendor=04a7, idProduct=0229
Sep 14 10:45:52 gandalf kernel: usb 2-3: New USB device strings: Mfr=1, Product=3, SerialNumber=0
Sep 14 10:45:52 gandalf kernel: usb 2-3: Product: USB Scanner
Sep 14 10:45:52 gandalf kernel: usb 2-3: Manufacturer: Visioneer
Why am I suddenly getting "permission denied" both as root, and as the normal user (yes added to 'scanner' group)? What changed from the full DVD installation (using 2.6.33.4-generic and initrd) after added the the patches? I've been googling for months trying different "permission fixes" and fiddling with udev rules with no luck. So there is something I don't understand going on here.
If you run xsane on the command line, you should get a lot more errors. Or look in ~/.xsession-errors.
nope, xsession-errors doesn't exist, no errors on the command line. Only the syslog error and a xsane pop up "Failed to start scanner: Error during device I/O"
Odd. When I do it as a non-root user that belongs to the plugdev and scanner groups, I get stuff like...
Code:
$ xsane
libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/003: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/004: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/003/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/003: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/004: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/005: Permission denied.
libusb requires write access to USB device nodes.
...followed by some Gtk warnings and the xsane application. (/dev/bus/usb/001/002 appears to be my scanner. That character device belongs to the 'scanner' group.)
RC, thats just xsane running through all USB nodes, afaik. I get the same xsane message for each "root hub" but USB printer and USB scanner (and any other plugged in device) don't kick that error. (BTW, the scanner is not multifunction - I have separate USB devices for printer and flatbed scanner.) The USB printer has never given me any issues. Even got HPLIP status in Xfce so I can get ink levels. I was about to give up on the scanner and get a new one when it started working in a clean 13.1 install when slack 1st came out. I really don't have time to roll back all the updates since then - but i may try another clean install on another HD....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.