LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-16-2005, 01:45 PM   #1
Shadewalker
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware 10.1
Posts: 3

Rep: Reputation: 0
USB, Digicam, Trouble


Now, where to start...

I can't seem to connect my digicam, a Canon Powershot A80. It HAS worked before, so I assume the problem is solvable.

I run:

Slackware 10.1
Kernel 2.6.10

My portable MP3 player works fine. I plug it in, a message is spit out in dmesg, an entry appears in /dev (sda*), and I can mount it. Fine, just fine.

Now, plugging in the Canon toy is a whole different story. Let's take a look in dmesg:

Code:
usb 2-2: new full speed USB device using ohci_hcd and address 3
... but there is no sda* in /dev/.

Code:
thomas@nightshadow:/$ cat /proc/bus/usb/devices

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.10 ohci_hcd
S:  Product=Silicon Integrated Systems [SiS] USB 1.0 Controller (#2)
S:  SerialNumber=0000:00:03.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.10 ohci_hcd
S:  Product=Silicon Integrated Systems [SiS] USB 1.0 Controller
S:  SerialNumber=0000:00:03.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs=  1
P:  Vendor=04a9 ProdID=309a Rev= 0.01
S:  Manufacturer=Canon Inc.
S:  Product=Canon Digital Camera
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=96ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.10 ehci_hcd
S:  Product=Silicon Integrated Systems [SiS] USB 2.0 Controller
S:  SerialNumber=0000:00:03.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms
Seems it shows up!

And here:

Code:
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.

Code:
thomas@nightshadow:/proc/scsi$ cat scsi
Attached devices:
Nothing.

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!
 
Old 02-16-2005, 03:35 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
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:

rescan-scsi-bus

Cheers,

Finegan
 
Old 02-17-2005, 08:47 AM   #3
Shadewalker
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware 10.1
Posts: 3

Original Poster
Rep: Reputation: 0
finegan,

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.

Cheers.
 
Old 02-17-2005, 09:36 AM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
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.

Cheers,

Finegan
 
Old 02-17-2005, 11:22 AM   #5
Shadewalker
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware 10.1
Posts: 3

Original Poster
Rep: Reputation: 0
No luck. Unless we aren't talking about the same 'usbfs' ?

Quote:
USB device filesystem (USB_DEVICEFS)
That is what I disabled.
 
Old 02-18-2005, 06:33 AM   #6
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
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.

Cheers,

Steve
 
Old 07-04-2005, 03:43 AM   #7
depi
LQ Newbie
 
Registered: Apr 2005
Location: EU - Slovakia
Posts: 12

Rep: Reputation: 0
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.
 
Old 07-04-2005, 03:55 AM   #8
depi
LQ Newbie
 
Registered: Apr 2005
Location: EU - Slovakia
Posts: 12

Rep: Reputation: 0
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.
and from: gphoto2 --debug --summary I get this: http://pokusy.depi.sk/linux/gphoto2-summary-debug.txt

I hope that will helps.
 
Old 08-08-2005, 05:20 PM   #9
kossi
LQ Newbie
 
Registered: Aug 2005
Location: Dresden, Germany
Distribution: Ubuntu, Debian
Posts: 10

Rep: Reputation: 0
Hello,

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...

Greets,

Markus
 
Old 08-09-2005, 05:58 PM   #10
buaku
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2 (2.4.31)
Posts: 119

Rep: Reputation: 15
Have y'all tried running gphoto2 as root?
I could run it ok as root, but as a normal user it dind't work.

It was a permissions problem for me, I found a link to set up a hotplug script to sort things out, I just have to remember where the link is.
 
Old 08-09-2005, 06:02 PM   #11
buaku
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2 (2.4.31)
Posts: 119

Rep: Reputation: 15
http://www.gphoto.org/doc/manual/FAQ...-not-claim-USB
Here's the link....
Section 3.2.2
which then directs you to
http://www.gphoto.org/doc/manual/permissions-usb.html
 
  


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
digicam is not recognized doralsoral Linux - Hardware 2 10-25-2005 07:37 AM
USB digicam supported, but ignored GL1800 Linux - Software 2 07-31-2005 06:34 AM
using usb digicam as webcam matt_w_lambert Linux - Hardware 0 10-23-2004 08:26 PM
Automounting my Digicam DrD Linux - Newbie 5 02-14-2004 09:24 AM
Connecting Olympus DigiCam to USB shakitcali Linux - Newbie 7 02-08-2004 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:49 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