LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-13-2007, 12:29 PM   #1
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Rep: Reputation: 15
Question Understanding dmesg output, and udevinfo...


Hey,

Just trying to get my digital camera working here, and have come across a couple of things I don't really understand.

Code:
usb 1-6: new high speed USB device using ehci_hcd and address 9
usb 1-6: configuration #1 chosen from 1 choice
So, I believe ehci is USB 2.0, but what does address 9 specify. On the second line, where abouts are these configuration choices it speaks of, and what are they for?

By seeing that output, I was under the impression that the device was indeed connected in some respect, however I can't find the device in
Code:
udevinfo -a -p /sys/class/scsi_generic/sg0'
or as a noticeable device under /dev.

What else needs to be done for something more useful to happen?

For you reference, the device is a Canon Digital Ixus 65.

Any advice you could offer would be most appreciated.

Thanks in advance,
James
 
Old 05-13-2007, 01:57 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

I'm not too familiar with the details of how USB works on Linux, but it shouldn't matter.

You'll have to use gphoto2 (or more likely a front-end like gthumb) to get your photos off the camera. Canon cameras (at least their consumer efforts anyway) don't appear as storage devices, so you won't get an sgX device.

Dave
 
Old 05-13-2007, 02:22 PM   #3
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
...

Hey,

Ah, well I guess that makes more sense.

I'm using digiKam as my front end (KDE), however I'm not quite sure how to configure it to find my Canon (auto-discover doesn't find anything, and no luck selecting my particular camera model with default settings either).

When I have this camera connected to a Windows machine, it seems to go into a kinda disk mode - screen blacks out and the activity light illuminates.

Attached to my Linux machine however, the screen remains as it is during normal photo viewing mode, and the activity light remains off. Perhaps this is of no significance, but then again perhaps it is.

Do you know how I can interface with the camera if it doesn't create a device node for somewhere?

Kind regards,
James
 
Old 05-13-2007, 02:35 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi again.

Few things to try:
Make sure the camera is in 'play' mode.
Try running digiKam as root (could be a permissions issue).
Post the output from
Code:
gphoto2 --list-cameras | grep "Canon Digital IXUS 65"
gphoto2 --auto-detect
with the camera plugged in (and as root if you don't get anything as a normal user).

Dave
 
Old 05-13-2007, 03:11 PM   #5
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
...

Hi,

I ran digiKam as root as you suggested, and my Canon was auto-detected (woo!). No idea how to change the device permissions though.

gphoto2 doesn't have my camera in the list (only goes as far as the IXUS 60), and when I try and auto detect as non-root I get:

Code:
james@grapefruit ~ $ gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
And then as root:

Code:
grapefruit james # gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
PTP/IP Camera                  usb:
PTP/IP Camera                  usb:001,009
This output reflects that from digiKam when ran as root, and the specified 'usb:001,009' corisponds with:

Code:
usb 1-4: new high speed USB device using ehci_hcd and address 9
Thanks for your help thus far.

Kind regards,
James
 
Old 05-13-2007, 03:32 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
On Fedora, the permissions are set up by a script which HAL calls when it sees the new camera device. I don't think this is set up in Gentoo. This page shows how it's done:
http://www.gphoto.org/doc/manual/permissions-usb.html
It's pretty horrific, though, as I'm sure you'll agree.

Probably easier just to do
Code:
find /dev/bus/usb -type c -cmin -2
just after you've plugged in the camera. This finds device nodes which have been changed in the last 2 minutes. Hopefully your camera should be the only device found. 'chown yourusername:root' the device found (as root), and you should be good to go.

Hopefully.

Dave

Last edited by ilikejam; 05-13-2007 at 03:33 PM.
 
Old 05-13-2007, 03:37 PM   #7
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Actually, scratch that. The output from 'gphoto2 --auto-detect' tells you where the device is. e.g. /dev/bus/usb/001/009 from the output above (usb:001,009). Just 'chmod yourusername:root' that file, and you should be OK.

Dave
 
Old 05-14-2007, 12:08 AM   #8
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
Talking ...

Hey,

I had a quick look at the udev rule sets last night, as I had just had a brain wave, and I noticed '99-libgphoto2.rules'. Had a look inside, and sure enough there were rules there for lots of products from different vendors.

Upon examining the implications of these rules, and the interface /dev/bus/usb/001/xxx, it became apparent that my camera was indeed being detected and effected by them.

Turns out that the interface's group was set to 'plugdev' by udev, and that my non-root user wasn't in that group. I added myself to it, and hey presto I have access !

Thanks for a big push in the right direction there, it probably would have taken me forever to figure this out otherwise :P.

Thanks again,
James
 
  


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
dmesg output cranium2004 Linux - Newbie 1 01-27-2005 02:03 AM
understanding dmesg shanenin Linux - Software 2 12-13-2003 03:00 PM
Weird Dmesg Output raid517 Linux - Hardware 2 09-22-2003 10:14 PM
dmesg output full of yocompia Slackware 10 09-09-2003 02:03 PM
dmesg output safrout Slackware 6 05-18-2003 11:43 AM

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

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