LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-09-2005, 02:22 AM   #1
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
libusb not available to sane-find-scanner


I initially had a problem where sane-find-scanner would correctly find my scanner but scanimage -L didn't. However, after the initial trial, sane-find-scanner finds no scanners at all!

I did sane-find-scanner -v to see what was going on... and got the following at the end of the probe:
Code:
checking /dev/usbscanner15... failed to open (Invalid argument)
libusb not available
  # No USB scanners found.
... and so on.
Now the 1st line says "invalid argument" because /dev/usbscanner15 (and all the lesser numbers) dosn't exist: fair enough. It is the second line that is the surprise. Since libusb is not available, it is no surprise to get the last line.

lsusb shows the scanner correctly
libusb seems to be installed

this is an unmodified install of Ubuntu 5.04

Last edited by Simon Bridge; 10-10-2005 at 07:17 PM.
 
Old 10-10-2005, 08:30 AM   #2
ChrisTheGeek
LQ Newbie
 
Registered: Apr 2005
Location: London, UK
Distribution: Ubuntu
Posts: 12

Rep: Reputation: 0
Do you get the same result when running the programs as root?

If your scanner re-appears when you're root, you may need to sort out the permissions so your regular user can access the scanner. The following thread may help:

http://www.linuxquestions.org/questi...5&pagenumber=2
 
Old 10-10-2005, 07:14 PM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 198Reputation: 198
<sigh> yes - the same thing happens when running sane-find-scanner as root. Good attempt though - that is the most common reason something cannot be got. Normally, though, it is reported as access denied or "locked" when I check. Then I go "DOH!" and sudo...

I should have mentioned: I have read the man pages. There is a neat howto in there - which dosn't deal with the situation that libusb is not available.

I have also read through the faq and the mini-howto in www.sane-project.org

I have successfully helped other people with permissions and so on and so forth ... including getting the correct driver. However, I have not found any situation where libusb is "not available" when it is in fact installed.

I figured I may just have the wrong version - and upgraded everything with usb in it I could find. Also looked to see if there were usb packages to install. But it appears I have everything. (However I don't know what sane is expecting here.)

Perhaps libusb is in a different place - anyone with ubuntu experiencing this problem? Or perhaps there is an app which is hogging libusb so nothing else can use it?

Note: this works fine in Fedora Core 4.

Interestingly, it did work the first time I tried it - no idea what is different this time ... only thing that happened betweentimes is that my battery went flat unexpectedly. So perhaps there is a cache somewhere remembering that san-find-scanner is using libusb from the previous attempt. (In the previous attempt - sane-find-scanner detected the scanner correctly but scanimage -L didn't. Once I've got this figured out I can figure out that )
 
  


Reply



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 usb scanner walterbyrd Linux - Hardware 0 07-24-2004 10:39 AM
sane over network - can't find scanner Smerk Linux - Networking 1 07-18-2004 03:56 AM
device file for scanner with libusb fredgt Linux - Hardware 0 04-08-2004 10:47 AM
libusb usage / HP3570c scanner slightcrazed Linux - General 0 04-04-2004 10:16 AM
Slack 9.1, kernel 2.6.3-r3, Epson Scanner and libusb no worky for Joe user. finegan Slackware 1 02-16-2004 12:49 AM

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

All times are GMT -5. The time now is 07:12 PM.

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