Bug#442397: fails to set correct permissions for a digicam

2007-09-16 Thread Matthias Heinz
Am Samstag, 15. September 2007 schrieb Marco d'Itri:
 I have no reason to believe that this is an udev bug. You probably
 misconfigured your system in some way.

I haven't configured anything here. Its everything how it got installed.


 Please investigate this using e.g. udevinfo and udevtest.

I have no clue how to do this, but i played a bit around and maybe this can 
help you:

# lsusb
Bus 002 Device 009: ID 04a9:309a Canon, Inc. PowerShot A80


# udevinfo --name=/dev/bus/usb/002/009  --attribute-walk

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 '/devices/pci:00/:00:0a.0/usb2/2-6':
KERNEL==quot;2-6quot;
SUBSYSTEM==quot;usbquot;
DRIVER==quot;usbquot;
ATTR{product}==quot;Canon Digital Cameraquot;
ATTR{manufacturer}==quot;Canon Inc.quot;
ATTR{quirks}==quot;0x0quot;
ATTR{maxchild}==quot;0quot;
ATTR{version}==quot; 1.10quot;
ATTR{devnum}==quot;9quot;
ATTR{busnum}==quot;2quot;
ATTR{speed}==quot;12quot;
ATTR{bMaxPacketSize0}==quot;32quot;
ATTR{bNumConfigurations}==quot;1quot;
ATTR{bDeviceProtocol}==quot;00quot;
ATTR{bDeviceSubClass}==quot;00quot;
ATTR{bDeviceClass}==quot;00quot;
ATTR{bcdDevice}==quot;0001quot;
ATTR{idProduct}==quot;309aquot;
ATTR{idVendor}==quot;04a9quot;
ATTR{bMaxPower}==quot;100mAquot;
ATTR{bmAttributes}==quot;c0quot;
ATTR{bConfigurationValue}==quot;1quot;
ATTR{bNumInterfaces}==quot; 1quot;
ATTR{configuration}==quot;quot;
ATTR{dev}==quot;189:136quot;

  looking at parent device '/devices/pci:00/:00:0a.0/usb2':
KERNELS==quot;usb2quot;
SUBSYSTEMS==quot;usbquot;
DRIVERS==quot;usbquot;
ATTRS{serial}==quot;:00:0a.0quot;
ATTRS{product}==quot;OHCI Host Controllerquot;
ATTRS{manufacturer}==quot;Linux 2.6.22.6-11.09.2007 ohci_hcdquot;
ATTRS{quirks}==quot;0x0quot;
ATTRS{maxchild}==quot;10quot;
ATTRS{version}==quot; 1.10quot;
ATTRS{devnum}==quot;1quot;
ATTRS{busnum}==quot;2quot;
ATTRS{speed}==quot;12quot;
ATTRS{bMaxPacketSize0}==quot;64quot;
ATTRS{bNumConfigurations}==quot;1quot;
ATTRS{bDeviceProtocol}==quot;00quot;
ATTRS{bDeviceSubClass}==quot;00quot;
ATTRS{bDeviceClass}==quot;09quot;
ATTRS{bcdDevice}==quot;0206quot;
ATTRS{idProduct}==quot;quot;
ATTRS{idVendor}==quot;quot;
ATTRS{bMaxPower}==quot;  0mAquot;
ATTRS{bmAttributes}==quot;e0quot;
ATTRS{bConfigurationValue}==quot;1quot;
ATTRS{bNumInterfaces}==quot; 1quot;
ATTRS{configuration}==quot;quot;
ATTRS{dev}==quot;189:128quot;

  looking at parent device '/devices/pci:00/:00:0a.0':
KERNELS==quot;:00:0a.0quot;
SUBSYSTEMS==quot;pciquot;
DRIVERS==quot;ohci_hcdquot;
ATTRS{msi_bus}==quot;quot;
ATTRS{broken_parity_status}==quot;0quot;

ATTRS{modalias}==quot;pci:v10DEd036Csv1043sdCB84bc0Csc03i10quot;
ATTRS{local_cpus}==quot;3quot;
ATTRS{irq}==quot;21quot;
ATTRS{class}==quot;0x0c0310quot;
ATTRS{subsystem_device}==quot;0xcb84quot;
ATTRS{subsystem_vendor}==quot;0x1043quot;
ATTRS{device}==quot;0x036cquot;
ATTRS{vendor}==quot;0x10dequot;

  looking at parent device '/devices/pci:00':
KERNELS==quot;pci:00quot;
SUBSYSTEMS==quot;quot;
DRIVERS==quot;quot;
ATTRS{uevent}==quot;quot;

# udevtest /dev/bus/usb/002/009
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

parse_file: reading '/etc/udev/rules.d/020_permissions.rules' as rules file
parse_file: reading '/etc/udev/rules.d/025_libgphoto2.rules' as rules file
parse_file: reading '/etc/udev/rules.d/025_libsane.rules' as rules file
parse_file: reading '/etc/udev/rules.d/025_logitechmouse.rules' as rules file
parse_file: reading '/etc/udev/rules.d/035_kino.rules' as rules file
parse_file: reading '/etc/udev/rules.d/libmtp6.rules' as rules file
parse_file: reading '/etc/udev/rules.d/libnjb.rules' as rules file
parse_file: reading '/etc/udev/rules.d/udev.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z20_persistent-input.rules' as rules 
file
parse_file: reading '/etc/udev/rules.d/z20_persistent.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z25_persistent-cd.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z25_persistent-net.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z45_persistent-net-generator.rules' as 
rules file
parse_file: reading '/etc/udev/rules.d/z50_run.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z55_hotplug.rules' as rules file
parse_file: reading '/etc/udev/rules.d/z60_alsa-utils.rules' 

Bug#442397: fails to set correct permissions for a digicam

2007-09-15 Thread Marco d'Itri
tag 442397 unreproducible moreinfo
thanks

I have no reason to believe that this is an udev bug. You probably
misconfigured your system in some way.
Please investigate this using e.g. udevinfo and udevtest.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#442397: fails to set correct permissions for a digicam

2007-09-15 Thread Matthias Heinz
Package: udev
Version: 0.114-2
Severity: normal

--- Please enter the report below this line. ---

Hi,

I'v got a Canon Powershot A80 (ID 04a9:309a Canon, Inc. PowerShot A80) and if 
I connect it with my computer via USB the devices get created, but with the 
wrong permissions.

E.g.

output of lsusb:
Bus 002 Device 008: ID 04a9:309a Canon, Inc. PowerShot A80

and the corresponding device:
/dev/bus/usb/002# ls -la
crw-rw-r-- 1 root root 189, 135 2007-09-15 20:07 008

but - as i see in the libgphoto2.rules file - it should be belong to 
group plugdev.

I have no idea whats going wrong here, the rules file is properly linked in 
udev/rules.d and all...


Yours sincerely
Matthias


--- System information. ---
Architecture: amd64
Kernel:   Linux 2.6.22.6-11.09.2007

Debian Release: lenny/sid
  500 unstableftp.de.debian.org 
  500 unstabledebian-mirrors.sdinet.de 
1 experimentalftp.de.debian.org 

--- Package information. ---
Depends (Version) | Installed
=-+-
libc6  (= 2.6-1) | 2.6.1-4
libselinux1   (= 2.0.15) | 2.0.15-2+b1
libvolume-id0  (= 0.113) | 0.114-2
debconf (= 0.5)  | 1.5.14
 OR debconf-2.0   | 
lsb-base   (= 3.0-6) | 3.1-24




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]