Re: problem with gphoto2 w/ FC5

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

 



Valentin Kuznetsov wrote:
Hi,
once upgrading to FC5 I lost my ability as a user to use my digital camera.
Everything works still fine if I use it as root. As a used, from gphoto2 --debug I got

0.339543 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x30ff)... found. 0.340134 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
0.340920 gphoto2-camera(2): Loading '/usr/lib/libgphoto2/2.1.99/ptp2'...
0.341949 gphoto2-port(2): Opening USB port...
0.342884 gphoto2-port(0): Could not query kernel driver of device.
0.343463 gphoto2-port(0): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device. 0.344500 context(0): An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.

and the relevant part from root account is:
0.299921 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x30ff)... found. 0.300637 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02,
 intep 83, class 06, subclass 01
0.301429 gphoto2-camera(2): Loading '/usr/lib/libgphoto2/2.1.99/ptp2'...
0.302492 gphoto2-port(2): Opening USB port...
0.303453 gphoto2-port(0): Could not query kernel driver of device.
0.304175 gphoto2-port(2): Setting timeout to 8000 millisecond(s)...
0.304804 ptp(2): PTP: Opening session
0.305369 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
0.305978 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
0000  10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00  ................

I'm confident that the problem with permission. In FC4 the hotplug was used which setup such permission. What's the equivalent in FC5. I read about udev and even was able to write two rules, one for my usb stick and another for my camera. The problem is that my camera is not mounted as USB drive, I need to use software in order to download my pictures. From past experience I have suspisious that it may be related to wrong SELinux settings, I may be wrong though.

The problem is most likely related to permissions for the device and may not have anything to do with SELinux.

The best way to eliminate SELinux from the "suspect list" is to run 'setenforce 0' in a root terminal. This will put SELinux in permissive and will log errors in the audit log or /var/log/messages. You should be able to access your pictures if it is SELinux.

The removal of hotplug effected several programs because of the needs udev (I am guessing) must do to do what hotplug was doing before.

I know that gnomad2 and some scanners were fixed. I don't recall if there were fixes for camera software. It would be good to look in bugzilla for bugs related to cameras since FC5 and no hotplug.

Jim

I would appreciate any feedback on this issue.
Valentin.



--
If he should ever change his faith, it'll be because he no longer thinks
he's God.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux