2021-07-08 21:39:21 +00:00
|
|
|
# disable tm2-touchkey leds by default
|
2021-07-24 10:24:49 +00:00
|
|
|
# To change the default, copy the file to /etc/udev/rules.d, increase the file name number and change brightness to 1.
|
|
|
|
ACTION=="add", SUBSYSTEM=="leds", KERNEL=="tm2-touchkey", ATTR{brightness}="0"
|
|
|
|
|
|
|
|
# allow users in group "input" to control the tm2-touchkey leds
|
|
|
|
ACTION=="add", SUBSYSTEM=="leds", KERNEL=="tm2-touchkey", RUN+="/bin/chgrp -R input /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
|
|
|
|
ACTION=="change", SUBSYSTEM=="leds", KERNEL=="tm2-touchkey", ENV{TRIGGER}!="none", RUN+="/bin/chgrp -R input /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
|