Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166492 - media-libs/libgphoto2-2.3.1-r3: udev-rules does not work for some cameras
Summary: media-libs/libgphoto2-2.3.1-r3: udev-rules does not work for some cameras
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Matthias Schwarzott
URL: http://www.gphoto.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-12 12:17 UTC by Kalidarn
Modified: 2007-02-26 10:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalidarn 2007-02-12 12:17:13 UTC
A small edit to the eeinfo. Since udev 104 you need to be in the "usb" group as well.

pkg_postinst() {
    elog "Don't forget to add yourself to the plugdev and usb groups "
    elog "if you want to be able to access your camera."
}


Reproducible: Always

Steps to Reproduce:
Comment 1 Matthias Schwarzott gentoo-dev 2007-02-12 12:19:50 UTC
Strange?
For me it is enough to be in plugdev.

Just an Idea: "plugdev" can be replaced with a group with a more speaking name? Scanner also get group "scanner".
Comment 2 Kalidarn 2007-02-12 14:02:29 UTC
Recently I found when UDEV updated from 103 to 104 my camera stopped working.

We found that: ATTR{idVendor}=="04a9", ATTR{idProduct}=="3126", MODE="0660", GROUP="plugdev" causes the camera not to work when the user is in the plugdev group

It also causes # find /dev/bus/usb -ls to show up in the USB group:

399542    0 crw-rw-r--   1 root     usb               Feb 13 00:16 /dev/bus/usb/001/030


--------

Now what's supposed to happen and is the camera is in the plugdev group. When editing ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="3126", MODE="0660", GROUP="plugdev" (note the S) It fixed the group issue showing the camera in the Plugdev group.


PALANTHAS rules.d # lsusb
Bus 003 Device 001: ID 0000:0000  
Bus 001 Device 029: ID 04a9:3126 Canon, Inc. 
Bus 001 Device 001: ID 0000:0000  
Bus 002 Device 002: ID 045e:0047 Microsoft Corp. IntelliMouse Explorer 3.0
Bus 002 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
PALANTHAS rules.d # udevcontrol reload_rules
PALANTHAS rules.d # udevtrigger
PALANTHAS rules.d # find /dev/bus/usb -ls
  1882    0 drwxr-xr-x   6 root     root          120 Feb 13  2007 /dev/bus/usb
  2181    0 drwxr-xr-x   2 root     root           60 Feb 13  2007 /dev/bus/usb/003
  2182    0 crw-rw-r--   1 root     usb               Feb 13  2007 /dev/bus/usb/003/001
  1915    0 drwxr-xr-x   2 root     root           80 Feb 13 00:20 /dev/bus/usb/001
403112    0 crw-rw----   1 root     plugdev           Feb 13 00:20 /dev/bus/usb/001/030
  1916    0 crw-rw-r--   1 root     usb               Feb 13  2007 /dev/bus/usb/001/001
  1902    0 drwxr-xr-x   2 root     root           80 Feb 13  2007 /dev/bus/usb/002
  2244    0 crw-rw-r--   1 root     usb               Feb 13  2007 /dev/bus/usb/002/002
  1903    0 crw-rw-r--   1 root     usb               Feb 13  2007 /dev/bus/usb/002/001
  1883    0 drwxr-xr-x   2 root     root           60 Feb 13  2007 /dev/bus/usb/004
  1884    0 crw-rw-r--   1 root     usb               Feb 13  2007 /dev/bus/usb/004/001
PALANTHAS rules.d # udevinfo -a -p /sys/class/usb_device/usbdev1.30/
 
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
 
  looking at device '/class/usb_device/usbdev1.30':
    KERNEL=="usbdev1.30"
    SUBSYSTEM=="usb_device"
    DRIVER==""
    ATTR{dev}=="189:29"
 
  looking at parent device '/devices/pci0000:00/0000:00:10.3/usb1/1-2':
    KERNELS=="1-2"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{product}=="Canon Digital Camera"
    ATTRS{manufacturer}=="Canon Inc."
    ATTRS{maxchild}=="0"
    ATTRS{version}==" 2.00"
    ATTRS{devnum}=="30"
    ATTRS{speed}=="480"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bcdDevice}=="0002"
    ATTRS{idProduct}=="3126"
    ATTRS{idVendor}=="04a9"
    ATTRS{bMaxPower}=="  2mA"
    ATTRS{bmAttributes}=="c0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{configuration}==""
 
  looking at parent device '/devices/pci0000:00/0000:00:10.3/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{serial}=="0000:00:10.3"
    ATTRS{product}=="EHCI Host Controller"
    ATTRS{manufacturer}=="Linux 2.6.20-gentoo ehci_hcd"
    ATTRS{maxchild}=="6"
    ATTRS{version}==" 2.00"
    ATTRS{devnum}=="1"
    ATTRS{speed}=="480"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bcdDevice}=="0206"
    ATTRS{idProduct}=="0000"
    ATTRS{idVendor}=="0000"
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{configuration}==""
 
  looking at parent device '/devices/pci0000:00/0000:00:10.3':
    KERNELS=="0000:00:10.3"
    SUBSYSTEMS=="pci"
    DRIVERS=="ehci_hcd"
    ATTRS{msi_bus}==""
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="1"
    ATTRS{modalias}=="pci:v00001106d00003104sv00001462sd00007120bc0Csc03i20"
    ATTRS{local_cpus}=="1"
    ATTRS{irq}=="16"
    ATTRS{class}=="0x0c0320"
    ATTRS{subsystem_device}=="0x7120"
    ATTRS{subsystem_vendor}=="0x1462"
    ATTRS{device}=="0x3104"
    ATTRS{vendor}=="0x1106"
 
  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
Comment 3 Kalidarn 2007-02-12 14:07:03 UTC
Correction:

Was not UDEV 103-104 it was actually the last revison of media-libs/libgphoto2-2.3.1-r3
Comment 4 Matthias Schwarzott gentoo-dev 2007-02-26 10:15:49 UTC
Fixed in libgphoto2-2.3.1-r4.