On Mon, Sep 10, 2012 at 2:29 PM, Siard <shiems...@kpnplanet.nl> wrote: > Op Mon, 10 Sep 2012 05:26 +0100, Sharon Kimble wrote: >> >> i'm trying to get udev rules for my usb phone, and they are ... >> SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce:2138", >> SYSFS{idProduct}=="*", MODE="0777" >> AND >> SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce", >> SYSFS{idProduct}=="*", MODE="0777" >> but neither work. >> lsusb shows .. Bus 001 Device 034: ID 0fce:2138 Sony Ericsson Mobile >> Communications AB Xperia X10 mini pro (Debug) >> >> Where am i going wrong please? the rules are saved to >> /etc/udev/rules.d/99-android.rules and also to >> /lib/udev/rules.d/99-android.rules > > If I have an udev rule like one of the above in Wheezy, then there is a > boot message complaining that SYSFS{idVendor} is an 'unknown key'. > In Wheezy's version of udev, you have to use ATTRS{idVendor} instead.
AFAIK, Squeeze's udev prefers ATTRS over SYSFS. You can get the udev properties of the Xperia with udevadm info --query=property --path=$(udevadm info --query=path --name=/dev/sdX) udevadm info --query=property --path=$(udevadm info --query=path --name=/dev/sdXY) in order to create an appropriate udev rule. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=sysbovv_uf1ewa05t+kntdflmzv98ckoq13ccoxnz9...@mail.gmail.com