Bug#427963: libgphoto2-2: version 2.3.1-5 fails to set permissions on when Canon IXUS V plugged in
Arthur Marsh wrote: I've rebuilt kernel 2.6.22-rc4 with CONFIG_USB_DEVICE_CLASS=y and successfully used gthumb to access a Canon IXUS V camera. The udev rules for libgphoto2-2 in this case changed the permissions for /dev/bus/usb/003/004 to allow group plugdev to access the camera: /dev/bus/usb/003$ ls -al total 0 drwxr-xr-x 2 root root 80 2007-06-09 08:54 . drwxr-xr-x 6 root root 120 2007-06-09 18:02 .. crw-rw-r-- 1 root root189, 256 2007-06-09 18:02 001 crw-rw 1 root plugdev 189, 259 2007-06-09 08:54 004 It appears that further work is needed on the udev rules for libgphoto2-2 in order for them to work with 2.6.22-rc4 and later kernels built that don't have CONFIG_USB_DEVICE_CLASS=y set. Thanks so much for your investigation in this matter; hopefully that option will be set by default http://lkml.org/lkml/2007/5/27/71 for some time. Nevertheless I will try to get working rules for 2.6.22 kernels without that option before those kernels are released. Regards, Frederic -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#427963: libgphoto2-2: version 2.3.1-5 fails to set permissions on when Canon IXUS V plugged in
Arthur Marsh wrote, on 08/06/07 04:38: Please see: http://readlist.com/lists/vger.kernel.org/linux-kernel/70/351707.html Greg KH's message in lkml: [quote] Subject:Re: usb-scanner-cameras kernel-2.6.22 and udev-095 problem Group:Linux-kernel From:Greg KH Date:7 Jun 2007 On Wed, Jun 06, 2007 at 10:11:20PM -0500, art wrote: greg with CONFIG_USB_DEVICE_CLASS=y scanner /dev/scanner- show up xsane is working now SCANNER PROBLEM SOLVED Great, thanks for verifying this. This config option is by default enabled, so you need to work hard to disable it :) thanks, greg k-h [end quote] It appears that the test kernels from kernel-archive.buildserver.net had CONFIG_USB_DEVICE_CLASS not defined. I'm rebuilding 2.6.22-rc4 with CONFIG_USB_DEVICE_CLASS=y (will not have time to test it until about 24 hours from now). It appears that the udev in Debian unstable still requires the backward compatibility provided by CONFIG_USB_DEVICE_CLASS=y Arthur. I've rebuilt kernel 2.6.22-rc4 with CONFIG_USB_DEVICE_CLASS=y and successfully used gthumb to access a Canon IXUS V camera. The udev rules for libgphoto2-2 in this case changed the permissions for /dev/bus/usb/003/004 to allow group plugdev to access the camera: /dev/bus/usb/003$ ls -al total 0 drwxr-xr-x 2 root root 80 2007-06-09 08:54 . drwxr-xr-x 6 root root 120 2007-06-09 18:02 .. crw-rw-r-- 1 root root189, 256 2007-06-09 18:02 001 crw-rw 1 root plugdev 189, 259 2007-06-09 08:54 004 It appears that further work is needed on the udev rules for libgphoto2-2 in order for them to work with 2.6.22-rc4 and later kernels built that don't have CONFIG_USB_DEVICE_CLASS=y set. Regards, Arthur. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#427963: libgphoto2-2: version 2.3.1-5 fails to set permissions on when Canon IXUS V plugged in
Package: libgphoto2-2 Version: 2.3.1-5 Severity: important After upgrading to version 2.3.1-5 (normal sid updates), I no longer have the permissions for the /proc/bus/usb/003/nnn file changed from root,root for a Canon IXUS V digital still camera being plugged in. udevmonitor reports: UEVENT[1181230282.243082] add@/devices/pci:00/:00:0a.1/usb3/3-1 ACTION=add DEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1 SUBSYSTEM=usb SEQNUM=1147 MAJOR=189 MINOR=271 DEVTYPE=usb_device PHYSDEVBUS=usb DEVICE=/proc/bus/usb/003/016 PRODUCT=4a9/3052/1 TYPE=255/255/255 BUSNUM=003 DEVNUM=016 UEVENT[1181230282.243576] add@/class/usb_endpoint/usbdev3.16_ep00 ACTION=add DEVPATH=/class/usb_endpoint/usbdev3.16_ep00 SUBSYSTEM=usb_endpoint SEQNUM=1148 MAJOR=254 MINOR=10 PHYSDEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1 PHYSDEVBUS=usb PHYSDEVDRIVER=usb UEVENT[1181230282.257285] add@/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 ACTION=add DEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 SUBSYSTEM=usb SEQNUM=1149 DEVTYPE=usb_interface PHYSDEVBUS=usb INTERFACE=255/255/255 MODALIAS=usb:v04A9p3052d0001dcFFdscFFdpFFicFFiscFFipFF UEVENT[1181230282.257554] add@/class/usb_endpoint/usbdev3.16_ep81 ACTION=add DEVPATH=/class/usb_endpoint/usbdev3.16_ep81 SUBSYSTEM=usb_endpoint SEQNUM=1150 MAJOR=254 MINOR=11 PHYSDEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 PHYSDEVBUS=usb UEVENT[1181230282.257760] add@/class/usb_endpoint/usbdev3.16_ep02 ACTION=add DEVPATH=/class/usb_endpoint/usbdev3.16_ep02 SUBSYSTEM=usb_endpoint SEQNUM=1151 MAJOR=254 MINOR=12 PHYSDEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 PHYSDEVBUS=usb UEVENT[1181230282.257964] add@/class/usb_endpoint/usbdev3.16_ep83 ACTION=add DEVPATH=/class/usb_endpoint/usbdev3.16_ep83 SUBSYSTEM=usb_endpoint SEQNUM=1152 MAJOR=254 MINOR=13 PHYSDEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 PHYSDEVBUS=usb UDEV [1181230282.468194] add@/devices/pci:00/:00:0a.1/usb3/3-1 UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1 SUBSYSTEM=usb SEQNUM=1147 MAJOR=189 MINOR=271 DEVTYPE=usb_device PHYSDEVBUS=usb DEVICE=/proc/bus/usb/003/016 PRODUCT=4a9/3052/1 TYPE=255/255/255 BUSNUM=003 DEVNUM=016 UDEVD_EVENT=1 DEVNAME=/dev/3-1 UDEV [1181230282.703745] add@/class/usb_endpoint/usbdev3.16_ep00 UDEV_LOG=3 ACTION=add DEVPATH=/class/usb_endpoint/usbdev3.16_ep00 SUBSYSTEM=usb_endpoint SEQNUM=1148 MAJOR=254 MINOR=10 PHYSDEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1 PHYSDEVBUS=usb PHYSDEVDRIVER=usb UDEVD_EVENT=1 DEVNAME=/dev/usbdev3.16_ep00 UDEV [1181230282.716355] add@/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 SUBSYSTEM=usb SEQNUM=1149 DEVTYPE=usb_interface PHYSDEVBUS=usb INTERFACE=255/255/255 MODALIAS=usb:v04A9p3052d0001dcFFdscFFdpFFicFFiscFFipFF UDEVD_EVENT=1 UDEV [1181230283.221778] add@/class/usb_endpoint/usbdev3.16_ep81 UDEV_LOG=3 ACTION=add DEVPATH=/class/usb_endpoint/usbdev3.16_ep81 SUBSYSTEM=usb_endpoint SEQNUM=1150 MAJOR=254 MINOR=11 PHYSDEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 PHYSDEVBUS=usb UDEVD_EVENT=1 DEVNAME=/dev/usbdev3.16_ep81 UDEV [1181230283.662056] add@/class/usb_endpoint/usbdev3.16_ep02 UDEV_LOG=3 ACTION=add DEVPATH=/class/usb_endpoint/usbdev3.16_ep02 SUBSYSTEM=usb_endpoint SEQNUM=1151 MAJOR=254 MINOR=12 PHYSDEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 PHYSDEVBUS=usb UDEVD_EVENT=1 DEVNAME=/dev/usbdev3.16_ep02 UDEV [1181230283.773783] add@/class/usb_endpoint/usbdev3.16_ep83 UDEV_LOG=3 ACTION=add DEVPATH=/class/usb_endpoint/usbdev3.16_ep83 SUBSYSTEM=usb_endpoint SEQNUM=1152 MAJOR=254 MINOR=13 PHYSDEVPATH=/devices/pci:00/:00:0a.1/usb3/3-1/3-1:1.0 PHYSDEVBUS=usb UDEVD_EVENT=1 DEVNAME=/dev/usbdev3.16_ep83 -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.22-rc4 (SMP w/1 CPU core; PREEMPT) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash I've had a similar problem about a year ago, but following suggestions after that bug report in this situation didn't seem to help much. Any suggestions? Regards, Arthur. Versions of packages libgphoto2-2 depends on: ii adduser 3.102 Add and remove users and groups ii libc6 2.5-10 GNU C Library: Shared libraries ii libexif12 0.6.15-1 library to parse EXIF files ii libgphoto2-port0 2.3.1-5gphoto2 digital camera port librar ii libjpeg62 6b-13 The Independent JPEG Group's JPEG ii libltdl3 1.5.22-4 A system independent dlopen wrappe Versions of packages libgphoto2-2 recommends: ii udev 0.105-4/dev/ and hotplug management daemo -- debconf-show failed -- To UNSUBSCRIBE, email to
Bug#427963: libgphoto2-2: version 2.3.1-5 fails to set permissions on when Canon IXUS V plugged in
Hello, Arthur Marsh wrote: Package: libgphoto2-2 Version: 2.3.1-5 Severity: important After upgrading to version 2.3.1-5 (normal sid updates), I no longer have the permissions for the /proc/bus/usb/003/nnn file changed from root,root for a Canon IXUS V digital still camera being plugged in. Do you have any memory of latest working version ? (was it a 2.3 serie ?) Thanks, Frederic -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#427963: libgphoto2-2: version 2.3.1-5 fails to set permissions on when Canon IXUS V plugged in
Frederic Peters wrote, on 08/06/07 02:33: Hello, Arthur Marsh wrote: Package: libgphoto2-2 Version: 2.3.1-5 Severity: important After upgrading to version 2.3.1-5 (normal sid updates), I no longer have the permissions for the /proc/bus/usb/003/nnn file changed from root,root for a Canon IXUS V digital still camera being plugged in. Do you have any memory of latest working version ? (was it a 2.3 serie ?) I checked my dpkg logs and my last photo imports - 18 May 2007 worked but tonight didn't until I manually set permissions. libgphoto2-2 didn't get upgraded in that period, but gthumb did. I was also running kernel 2.6.21 on 18 May 2007, now running 2.6.22-rc4. I downgraded gthumb to testing 3:2.8.0-1, but still had the error message: 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. ls -al /proc/bus/usb/003 total 0 dr-xr-xr-x 2 root root 0 2007-06-07 19:02 . drwxr-xr-x 6 root root 0 2007-06-07 19:01 .. -rw-r--r-- 1 root root 43 2007-06-07 19:02 001 -rw-r--r-- 1 root root 57 2007-06-08 03:07 021 /proc/bus/usb/devices reports: T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 21 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS=32 #Cfgs= 1 P: Vendor=04a9 ProdID=3052 Rev= 0.01 S: Manufacturer=Canon Inc. S: Product=DIGITAL IXUS v C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=96ms and lsusb reports: Bus 004 Device 001: ID : Bus 003 Device 021: ID 04a9:3052 Canon, Inc. Digital IXUS V Bus 003 Device 001: ID : Bus 002 Device 003: ID 062a: Creative Labs Bus 002 Device 001: ID : Bus 001 Device 001: ID : I'll try rebooting to an earlier kernel and see if that helps. [back after a few reboots] I don't have many kernels installed at the moment: /boot/config-2.6.21-1-686 /boot/config-2.6.22-rc3-686 /boot/config-2.6.22-rc3/boot/config-2.6.22-rc4 but kernel 2.6.21-1-686 (stock Debian unstable) allowed gthumb to work, but later kernels didn't. This underscores a problem earlier that it appeared that the udev scripts for the camera weren't being called at all with the later kernels. If you have any suggestions to pinpoint what is different between 2.6.21 and later kernels, or even to verify what scripts are being run or not run, I'm prepared to run some more tests. It's just bad having this kind of thing breaking relatively frequently without having some automated test procedure to catch when things break. Regards, Arthur. Arthur. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#427963: libgphoto2-2: version 2.3.1-5 fails to set permissions on when Canon IXUS V plugged in
Frederic Peters wrote, on 08/06/07 02:33: Hello, Arthur Marsh wrote: Package: libgphoto2-2 Version: 2.3.1-5 Severity: important After upgrading to version 2.3.1-5 (normal sid updates), I no longer have the permissions for the /proc/bus/usb/003/nnn file changed from root,root for a Canon IXUS V digital still camera being plugged in. Do you have any memory of latest working version ? (was it a 2.3 serie ?) Please see: http://readlist.com/lists/vger.kernel.org/linux-kernel/70/351707.html Greg KH's message in lkml: [quote] Subject:Re: usb-scanner-cameras kernel-2.6.22 and udev-095 problem Group: Linux-kernel From: Greg KH Date: 7 Jun 2007 On Wed, Jun 06, 2007 at 10:11:20PM -0500, art wrote: greg with CONFIG_USB_DEVICE_CLASS=y scanner /dev/scanner- show up xsane is working now SCANNER PROBLEM SOLVED Great, thanks for verifying this. This config option is by default enabled, so you need to work hard to disable it :) thanks, greg k-h [end quote] It appears that the test kernels from kernel-archive.buildserver.net had CONFIG_USB_DEVICE_CLASS not defined. I'm rebuilding 2.6.22-rc4 with CONFIG_USB_DEVICE_CLASS=y (will not have time to test it until about 24 hours from now). It appears that the udev in Debian unstable still requires the backward compatibility provided by CONFIG_USB_DEVICE_CLASS=y Arthur. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]