Red Hat Bugzilla – Bug 24227
gphoto - trouble when selecting device
Last modified: 2008-05-01 11:37:59 EDT
I have kamera kodak dc280, and I use it with usb (dc2xx module -
After some trouble with selecting device in beta1 and beta2,(bug
#23213) I upgraded to gphoto-4.3-10 (rawhide, recompiled src-rpm).
I still have problem. When I first time select camera and device,
everything is OK, and next time I open gphoto it works - if I don't try to
look at the configuration again and press "save". Looks like gphoto then
will try to open the device once again, and get the "please chech the
permissions" and "failed to open /dev/usb/dc2xx0" error.
Now with "strace -eopen gphoto", everything looks OK so far, the last lines:
open("/root/.gphoto/gphotorc", O_RDONLY) = 4
open("/dev/usb/dc2xx0", O_RDWR|O_NONBLOCK) = 4
state_machine_set_baud: tcgetattr: Inappropriate ioctl for device
Assuming USB connection.
Then I try "configuration" - and "save" - and I get:
open("/dev/usb/dc2xx0", O_RDWR) = -1 EBUSY (Device or resource busy)
open("/dev/usb/dc2xx0", O_RDWR|O_NONBLOCK) = -1 EBUSY (Device or resource busy)
state_machine_construct: open: Device or resource busy
kdc240_initialize: could not create state machine!
Maybe it is nok the right thing to do to press "save" when the
configuration is OK already, but anyway, I don't think I like the way
gphoto is doing this.
I've had a look at this, and it's basically a bit of a headache to fix. I've reported it to the upstream maintainers.
This is working OK in gphoto-4.3-8 in RH7.
With a USB camera?
Yes. I have not seen _this_ bug before... But gphoto is not very stable.
It may appear to be working in -8, but I expect it will fail if you try it
several times in a row.
Really, the solution will be to switch over to gphoto2 when it is released.