LinuxQuestions.org
Review your favorite Linux distribution.
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 10-25-2010, 02:22 PM   #1
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
xsane does not find scanner and libusb permission error


I am tired, and I simply can't find an easy answer.

So, today I need the scanner in slackware64 13.1, only to find that it does not work as user. I have an HP Deskjet F2180 and using CUPS it is identified as hp:/usb/Deskjet_F2100_series?serial=CN81H4S2SP04TK.

In the past the simple solution was to add oneself to the right groups, but it does not work this time.

As user I get:

Code:
bash-4.1$ sane-find-scanner 
...
  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

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/001: 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/002/001: Permission denied.
libusb requires write access to USB device nodes.
...
libusb couldn't open USB device /dev/bus/usb/008/001: Permission denied.
libusb requires write access to USB device nodes.
As root:

Code:
bash-4.1# sane-find-scanner 
...
found USB scanner (vendor=0x03f0 [HP], product=0x7d04 [Deskjet F2100 series]) at libusb:005:003
  ...
I can confirm scanning works as root, I tried it.

Now, for the strange part:

Code:
bash-4.1$ groups
users floppy audio video cdrom plugdev power netdev scanner
I can confirm that I belong to all these groups. Strangely tho, I ran groups earlier today with same output, then checked '/etc/groups' to find that I was actually not in the scanner group. I added myself and rebooted, it did not work.

Thanks for any help.

Oh, I do have a custom kernel, will post the config if you need it. I started with the slackware generic config, so it's not that far from the slackware kernel.

EDIT: Printing works fine.

Last edited by H_TeXMeX_H; 10-26-2010 at 03:36 AM. Reason: ... = insane comments from sane removed
 
Old 10-25-2010, 03:29 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Hello H_TeXMeX_H,

I'm running a HP Deskjet 1410 Printer/Scanner. I always ad the users to the lp group since this is necessary to get permissions to access the device. Without beeing member of lp one can print with cups but has no access to the scanner.
But this has nothing to do with your issue that root cannot find the scanner with the find-scanner command.
Afaik one has to configure the kernel for an usb-scanner. But I'm not sure where to find this.

Markus
 
1 members found this post helpful.
Old 10-26-2010, 03:35 AM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Original Poster
Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Thank you very much, you have solved it. All I did extra was:

Code:
usermod -a -G lp demonslayer
So now I get:

Code:
bash-4.1$ groups
users lp floppy audio video cdrom plugdev power netdev scanner
Also, the scanner was being detected as root, those comments are messy, that's all, here I've fixed it.

EDIT: I hope Alien Bob sees this, so that 'lp' will be one of the default extra groups.

Last edited by H_TeXMeX_H; 10-26-2010 at 03:37 AM.
 
  


Reply


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
Sane/Xsane can't find HP scanner Mark_in_Hollywood Linux - Newbie 4 04-19-2006 12:21 AM
configure: error: cannot find libusb support ??? pwhitey86 Linux - Newbie 1 03-29-2006 06:38 AM
libusb not available to sane-find-scanner Simon Bridge Ubuntu 2 10-10-2005 07:14 PM
gentoo kernel 2.6.9 +libusb+ xsane al1ta Linux - Distributions 0 12-17-2004 08:15 PM
sane/xsane can't find usb scanner walterbyrd Linux - Hardware 0 07-24-2004 10:39 AM


All times are GMT -5. The time now is 02:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration