[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem solved: Kodak DX6490 on Sarge/2.6/udev



Ron Johnson wrote:
The solution was simple: add my user to the 'camera' unix group.


That's very, very odd.  I don't need group "camera".  What
files/directories are "owned" by group "camera"?

Remember that I'm using Debian Sarge, so the particular scripts I have
set up by default might differ from yours.

In my case, the script /etc/hotplug/usb/libgphoto2 does the following
when a camera is plugged in:  The kernel has just created a file in
/proc/bus/usb/... for the camera.  The libgphoto2 script sets the owner
of that file to root:camera, and sets the permissions to 660.




The things that tripped me up were:

- I had the misconception that my camera supported both USB mass storage and the PTP protocol. The truth is it only supports PTP. So the fact that UDEV was never told about the kernel creating a device such as "/dev/sda1" for the camera wasn't a problem after all - no such device ought to be created for this camera model.

- I didn't realize that if you're going to access a camera via PTP, then that's (typically) accomplished via a user-space USB driver that the application (such as digikam) makes use of. So the fact that I never saw the kernel load a module for this camera isn't a problem. (BTW, the PTP library that many apps like digikam or gphoto use is 'libgphoto2'.)


But still, lsusb should have shown you the camera, like my DX4530.

On my system, hotplug automagically loads libgphoto2 and usbcam.
Nov 29 21:46:09 haggis usb.agent[30165]: libgphoto2: loaded successfully
Nov 29 21:46:10 haggis usb.agent[30165]: usbcam: loaded successfully


Good point about lsusb. I don't know why it doesn't show my camera.  But
in the end, at least most of the plumbing is working right, because I
was genuinely able to access the camera using digikam.



--
Christian Convey
Computer Scientist,
Naval Undersea Warfare Center
Newport, RI



Reply to: