I've got a Thinkpad and would like to use the ThinkLight (the white flash light above the screen designed to light up the keyboard) for notifications on incoming Jabber messages.
It is easy to realise as one only needs to change /sys/class/leds/tpacpi::thinklight/brightness
to 255. I'll do it with a simple Bash script, which will let the light blink for three times.
But to be able to do this, I need to change the permissions, that not only root is able to change this file.
And I do not want to sudo chmod o+w /sys/class/leds/tpacpi::thinklight/brightness
after each and every boot.
I think, the best solution is using udev
for this. However, I've never used udev
before and I'm quite confused by the tutorials I found online.
I tried this udev
rule:
KERNEL=="tpacpi::thinklight", MODE="0666"
as well as
KERNEL="thinklight", MODE="0666"
But it does not work. Though I'm not getting errors while running udevadm test /class/leds
Thanks for any help and hits. Or maybe other solutions.