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. This udev rule works well with my SE Xperia X8: SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666", GROUP="plugdev" (Not sure whether 'GROUP="plugdev"' is really necessary.) Note that, AFAIK, it should be saved to /etc/udev/rules.d/50-android.rules, not 99-android.rules. -- 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/20120910202931.267b1ee1.shiems...@kpnplanet.nl