LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-10-2005, 12:25 AM   #1
jclu
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
USB recognition in Debian, and Canon Powershot A510 help


Hi, I'm relatively new to linux, and am running Debian. I was wondering how I can check if a usb device is recognized or not? I found on another post that I can check the file /proc/bus/usb/devices, which is what I did. Here is the output ('cat devices'):

Code:
T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 4
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.11-1-k7 ehci_hcd
S:  Product=VIA Technologies, Inc. USB 2.0
S:  SerialNumber=0000:00:13.2
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

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
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.11-1-k7 uhci_hcd
S:  Product=VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)
S:  SerialNumber=0000:00:13.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=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
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.11-1-k7 uhci_hcd
S:  Product=VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
S:  SerialNumber=0000:00:13.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=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.11-1-k7 ohci_hcd
S:  Product=Silicon Integrated Systems [SiS] USB 1.0 Controller (#2)
S:  SerialNumber=0000:00:02.3
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=01 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.11-1-k7 ohci_hcd
S:  Product=Silicon Integrated Systems [SiS] USB 1.0 Controller
S:  SerialNumber=0000:00:02.2
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
Now, the weird thing is that I only have four usb slots on the back of my machine. I believe according to the mobo manual that there is a connector for two more usb slots on the mobo itself (I suppose for a case that has slots on the front), but I don't believe they are hooked up, as my case doesn't have front usb slots. Either way though that totals to 4 or 6 usb connections, not 5. So why is my system recognizing 5? And why are 2 of them using the SiS USB 1.0 Controller, 2 others are using the VIA Tech USB 1.1 Controller and the last 1 using the VIA Tech USB 2.0 Controller? Or more exactly, how do I determine which usb slot is hooked up to which controller (since apparently I have 2 usb 1.0, 2 usb 1.1, and 1 usb 2.0 slots).

Another weird point is that when I checked the devices file, I currently had two usb devices plugged in - a Sony Clie, and a Canon A510 camera.

In regard to the Sony Clie, I have no way of knowing if the system recognizes it, but apparently it does, or at least it does when I start up KPilot and try syncing. However, and I don't know if this matters, but when I first start up KPilot, it tries to open /dev/pilot and fails to. But then when I hit the sync button on the Clie, it starts syncing. I also confirmed this works with both of the usb cables currently attached.

In regard to the Canon A510, I cannot get this recognized. I installed libgphoto2-2__2.1.5-4, libgphoto2-port0__2.1.5-4, gphoto2__2.1.5-1, gtkam__0.1.12-2.1, and gtkam-gimp__0.1.12-2.1, yet when I run gtkam it doesn't recognize the camera (even when I try to detect it) and I tried with both the usb cables that are attached.

Lastly, if it matters, the back of my computer has two usb slots on one row and on the row below it has two more and the eth0 connection beside it. I have the two usb cables plugged into the top two usb slots.

Also, I first did a search for the Canon A510 on Linux, and found some infor on the archives section of this site - 18/2005/04/4/311809 (I can't post a URL since this is my first post) - go to westexe's reply near the bottom of the page.

Please help, and sorry for the long post. Basically, I'm first concerned with getting the Canon recognized so that I can transfer photos, but I am also curious about usb devices on linux and how they work (hence the bit about what my devices file contains, etc). I'm used to windoze where the systray shows an icon. I want to know how to connect usb devices in general in linux for future reference if I get a usb drive, or a friend has one and I want to transfer files, or I get any other usb device and need to connect it.

Thank you so much for any help you can give me.
 
Old 05-10-2005, 07:45 AM   #2
Zhou
LQ Newbie
 
Registered: May 2005
Distribution: Knoppix 3.6 / Debian
Posts: 8

Rep: Reputation: 0
First, you may want to try the usbview utility.. it is a little nicer for gathering information
apt-get install usbview

I am not sure about the rest and why gphoto would not recognize it, while your Clie is found. You could check the access privileges on the usb device files. (Or try again as root)

HTH a bit...
 
Old 05-10-2005, 11:06 AM   #3
jclu
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
HTH? Anyway, thanks for the info. I will try to run it as root and see.
 
Old 05-10-2005, 12:51 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
"HTH" is short for "hope that helps" -- J.W.
 
Old 05-14-2005, 08:43 PM   #5
RohitBhosale
Member
 
Registered: Jun 2004
Posts: 44

Rep: Reputation: 15
Hi,


I have Canon powershot a520 (pretty similar to a510). I am finding the same prolem while trying to connect it to RH Linux 9.

[root@Jakarta root]# cat /proc/bus/usb/devices| grep -i usb
S: Product=USB UHCI Root Hub
S: Product=Optical USB Mouse
S: Product=USB UHCI Root Hub
S: Product=Intel Corp. 82801DB USB EHCI Controller

I tried 'gtkam' to add the camera but this model was not listed there. Do I need to install something else to get this device listed there?

This works fine in windows... the moment I connect, it recognizes everything and on the next moment i find it ready to use. can this be possible in linux? ;-)


R
 
Old 05-21-2005, 11:49 AM   #6
kadejo
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
I did it, with debian sarge

Hi!

I was also fighting with my powershot a510 @ sarge, but finally was VERY easy.

software that you need is (install them with aptitude or whatever):

gphoto2
hotplug
gtkam

And their respective dependencies, of course.

As root, you can see that your camera is detected:
Code:
laptop1:/home/adacad# gphoto2 --auto-detect
Modelo                         Puerto
----------------------------------------------------------
USB PTP Class Camera           usb:
USB PTP Class Camera           usb:001,006
Just if you are in a hurry: you now even can download all from your camera
(always as root) with

gphoto2 -P

But you probably don't want to be root only to work with your camera, do you?

So, let's config it for a normal user. When you install gphoto2 it installs libgphoto2-2,
I suggest you to read

/usr/share/doc/libgphoto2-2/README.Debian

Briefly, what it says is that only root can access usb port where the camera
is plugged, so it kindly created a group named 'camera' and a script to configure
hotplug to achieve any user that belongs to that group can access the port (maybe
this is why you couldn't detect your camera), and that you'll need to add any user you
want to access to the camera to that group, how? with this simple command:

adduser myusername camera

Then you'll have to relogin the graphical environment, in order to reload group
configuration... then start gtkam, menu camera, detect it (it detects as USB PTP
Camera), then the rest is a matter of playing and PATIENCE!!! it is slow when
downloading thumbnails or even the directory structure.

Also you may want to install kde's kamera, once installed then you'd have to configure
it at the control center, peripherals, camera, add a camera (USB PTP Class camera)
and then at any konqueror window you can put as URL

camera:/

I feel kamera works faster than gtkam, even though it throws some errors.

HTH!!
 
  


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
Canon PowerShot A400 - does anyone use it? ditch* Linux - General 7 03-31-2006 09:41 PM
Digikam and canon a510 on FreeBSD melopll *BSD 2 11-29-2005 12:03 PM
Canon Powershot a510 linux drivers needed dmneoblade Linux - Hardware 8 05-23-2005 06:31 PM
Canon Powershot G5 - corruption? beebop Linux - Hardware 1 10-23-2004 02:15 PM
Canon PowerShot A60 - Usb mass storage atlesn Linux - Hardware 8 10-20-2004 11:48 PM

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

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