Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@nightshadow:/proc/bus# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 04a9:309a Canon, Inc. PowerShot A80
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
I've Googled for a while, and found out that, since USB devices somehow "go through" (?) SCSI (this requires the generic SCSI and SCSI Disk drivers in the kernel), the device should also appear in /proc/scsi/scsi.
After more Googling, I found out about something called "gphoto2". Let's take a look:
Code:
thomas@nightshadow:/proc/bus$ gphoto2 --auto-detect
Model Port
----------------------------------------------------------
Canon PowerShot A80 (normal mode) usb:
Aha!
Let's try something else:
Code:
thomas@nightshadow:/proc/bus$ gphoto2 --auto-detect -P
Model Port
----------------------------------------------------------
Canon PowerShot A80 (normal mode) usb:
*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --auto-detect -P
Please make sure there is sufficient quoting around the arguments.
Not permitted?
Code:
root@nightshadow:/proc/bus# gphoto2 --auto-detect -P
Model Port
----------------------------------------------------------
Canon PowerShot A80 (normal mode) usb:
Detected a 'Canon:PowerShot A80 (normal mode)'.
*** Error ***
canon_usb_lock_keys: Unexpected return of 0 bytes (expected 820) from "get picture abilities."
*** Error ***
lock keys failed.
*** Error (-102: 'Corrupted data') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --auto-detect -P
Please make sure there is sufficient quoting around the arguments.
And in dmesg:
Code:
usb 2-2: usbfs: interface 0 claimed while 'gphoto2' sets config #1
usb 2-2: usbfs: USBDEVFS_BULK failed ep 0x81 len 4 ret -75
... and that's about how far I've come. I've tried to be as specific as I can - bear with me if it's not sufficient. Any help is appreciated - thanks in advance!
It looks like usbfs is barfing, that's a kernel issue. Offhand it doesn't look like anything wrong in userland, so I figure a different kernel with usbfs compiled out and it should do the normal usb emulated as scsi direct access and skip that libusb nuttiness. Also, might want to see if you can get any mileage out of the scsi rescan script that slackware has started to ship:
Thanks for the reply. Running the script didn't show reveals nothing usable - no devices detected. If no other suggestions show up, I might try a different kernel (even 2.4) as a last resort.
Its kernel. If you're feeling spunky, a hand compile of 2.6.10 and removing that usbfs option under the USB section under Device Drivers, will sort the problem.... or should rather.
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
Hi,
I'd be tempted to try the default Slack 10.1 2.4 series kernel - 2.4.29 I think. You should find it right there on your slack install cd.
Personally, although I'm sure this is just me, I've had real hassle with usb anything with 2.6.x kernels in the past. But with the 2.4 series, my usb camera works perfectly with my laptop and this machine, and my printer works great with cups (after foomatic-beta messiness mind) so I'd be tempted to give that a try and see what happens.
Hi. I have this problem too, I use Slckware-current and the 2.6.12.1 kernel, i tryied it with the 2.4.2 slackware kernel, but there was this problem too.so i now really dont know what to do, if i may add older kernel 2.6 or older program gphoto2, because i used the new release from 26th of june 2005.
Anyone has this problem again? I really dont know what to do.
Okay I write here some informations about my configuration and outputs.
So when I connect the camera to the PC from the dmesg I get:
Code:
usb 2-2: new full speed USB device using uhci_hcd and address 2
when I try to:# gphoto2 --auto-detect I get:
Code:
root@depi:/home/depi# gphoto2 --auto-detect
Model Port
----------------------------------------------------------
Canon PowerShot S1 IS (normal mode) usb:
So now I try to:# gphoto2 --summary and I get:
Code:
root@depi:/home/depi# gphoto2 --summary
Detected a 'Canon:PowerShot S1 IS (normal mode)'.
*** Error ***
lock keys failed.
*** Error (-114: 'OS error in camera communication') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --summary
Please make sure there is sufficient quoting around the arguments.
I had the same problem with getting pics from my Ricoh RDC-4200 Digicam (serial port) with gphoto2 on a Debian System. Then I tried to change the IRQ's, but it didn't work, just the time I could download changed a little bit. I solved the problem by stopping gdm and logging into tty1. So after stopping the X- Server it worked. In fact I've no clue why... I just wanted to post that, because I searched for a solution a long time and found nothing...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.