LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2010, 01:14 PM   #1
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Lost scanner (13.1)


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.
 
Old 09-14-2010, 03:30 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
If you run xsane on the command line, you should get a lot more errors. Or look in ~/.xsession-errors.
 
Old 09-14-2010, 07:18 PM   #3
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264

Original Poster
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Quote:
Originally Posted by Richard Cranium View Post
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"
 
Old 09-14-2010, 07:40 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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.)
 
Old 09-16-2010, 09:00 PM   #5
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264

Original Poster
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
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....
 
Old 09-16-2010, 11:41 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Aha. I should have read your first post more carefully.

Given your scanimage result, what does "ls -l /dev/bus/usb/002/004" give you?

On my machine, it gives....

Code:
# scanimage -L
device `hp5590:libusb:001:002' is a HP 5590 Workgroup scanner
# ls -al /dev/bus/usb/001/002 
crw-rw-r-- 1 root scanner 189, 1 2010-09-16 23:42 /dev/bus/usb/001/002
 
Old 09-18-2010, 12:05 AM   #7
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264

Original Poster
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Same here,

Code:
# scanimage -L
device `genesys:libusb:002:003' is a Visioneer OneTouch 7100 flatbed scanner
# ls -l /dev/bus/usb/002/003
crw-rw-r-- 1 root scanner 189, 130 2010-09-16 23:29 /dev/bus/usb/002/003
 
Old 09-18-2010, 01:27 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
Check the backend library. On my Slackware64 install 'ls -l /usr/lib64/sane/libsane-genesys*' gives:
Code:
-rwxr-xr-x 1 root root    890 2010-04-30 14:22 /usr/lib64/sane/libsane-genesys.la*
lrwxrwxrwx 1 root root     25 2010-05-02 01:56 /usr/lib64/sane/libsane-genesys.so -> libsane-genesys.so.1.0.21*
lrwxrwxrwx 1 root root     25 2010-05-02 01:56 /usr/lib64/sane/libsane-genesys.so.1 -> libsane-genesys.so.1.0.21*
-rwxr-xr-x 1 root root 245888 2010-04-30 14:22 /usr/lib64/sane/libsane-genesys.so.1.0.21*
Also 'man sane-genesys' may provide a clue.
 
Old 09-18-2010, 03:07 AM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by beowulf999 View Post
Same here,

Code:
# scanimage -L
device `genesys:libusb:002:003' is a Visioneer OneTouch 7100 flatbed scanner
# ls -l /dev/bus/usb/002/003
crw-rw-r-- 1 root scanner 189, 130 2010-09-16 23:29 /dev/bus/usb/002/003
Your user is in the scanner group, isn't it? Maybe you got the broken shadow update.
 
  


Reply

Tags
scanner


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanner not recognized in Ubuntu Epson Stylus NX510 printer/scanner all2473 Linux - Hardware 7 01-04-2011 09:16 PM
usb scanner premissions issue when running sane-find-scanner vlsd Linux - Hardware 4 08-20-2009 02:20 PM
Only low and high scanner resolutions displayed for epson V200 scanner liutabme Linux - Hardware 2 02-19-2008 01:11 PM
Scanner help.. failed to open device snapscan/dev/usb/scanner johnathan Linux - Hardware 2 10-12-2007 06:06 PM
xfce4: no scanner, noprinter, and I am Lost kak Slackware 3 08-07-2004 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration