Excluding devices from udev rules?

Konstantin Svist fry.kun at gmail.com
Wed Oct 16 21:13:49 UTC 2013


I've been trying to set up rules suggested by powertop to be applied by
default.

Unfortunately, the wireless mouse receiver gets shut down randomly when
the usb powerdown rules are applied to it -- so I tried excluding it
from the udev rule:

ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}!="046d",
ATTRS{idProduct}!="c529", TEST=="power/control",    
ATTR{power/control}="auto"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}!="046d",
ATTRS{idProduct}!="c529", TEST=="power/autosuspend",
ATTR{power/autosuspend}="2"

For some reason that doesn't work.. udevadm test ... clearly shows that
the rule matches. I've tried matching only by idProduct and still same
result...
is != just broken?




More information about the users mailing list