From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2)
Description of problem:
Gtkam reports an error when trying to add cameras.
Error message is "could not initialize camera"
Version-Release number of selected component (if applicable):
gtkam-0.1.12-2 using kernel-2.6.8-1.526
Steps to Reproduce:
1. As a non-root user launch Digital Camera Tool:
2. On the menu bar click "Camera" and then "Add Camera"
3. Click "Detect" (Camera is detected)
4. Click "Apply" or "OK"
Actual Results: gtkam returns error message
"Could not initialize camera"
Expected Results: Camera should have been to gtkam
Camera type: Canon 10D (using both PTP and Normal communication mode)
NOTE: Both cameras are detected and accessible when gtkam is launched
This is not a gtkam problem but one of device permissions. Which
device node does gtkam use for that camera? If you aren't sure, you
can use 'strace -eopen gtkam 2>log' as root to find out.
Created attachment 103025 [details]
Output from strace to detect device
Okay, it's a USB device. Please try this:
Unplug your camera
Log on as your own (non-root) user
Insert your camera
Does that work properly?
No the steps above produce the same error message.
"could not initialize camera"
What does 'rpm -V gphoto2' say?
rpm -V gphoto2 retuns no value
Are there any 'hotplug' messages added to /var/log/messages when you
unplug and re-insert the camera?
Created attachment 103027 [details]
hotplug syslog entries
This seems to be a hal problem then. The /etc/hotplug/usb/usbcam
script is being ignored.
This seems to me to be a hotplug problem.
Created attachment 103114 [details]
patch for hotplug to give console permissions on hotplug
This patch should fix the problems.
..and this file is provided by gphoto2, so it was a gphoto2 bug after
all. Thanks, forgot about the path change. :-(
Ah, my bad,
[david@laptop gnome-volume-manager]$ rpm -qf /etc/hotplug/usb/usbcam
[david@laptop gnome-volume-manager]$ rpm -qf
so both gphoto2 and sane-backends needs a bit of the patch each.
Fixed packages are:
Almost there, needs this patch against gphoto2
--- usbcam.orig 2004-08-31 18:31:54.763716496 +0200
+++ usbcam 2004-08-31 18:20:03.212888664 +0200
@@ -29,7 +29,6 @@
if [ -f /var/run/console/console.lock ]
- elif [ -f /var/lock/console.lock ]
elif [ -f /var/run/console.lock ]
Oops.. fixed in 2.1.4-6. Thanks.