You are not logged in.
Pages: 1
Hello, I'm writing plugin for pidgin to activated LEDS (Num, Caps, Lock) when new messages are received.
First time I used function for emulating key events from file 'X11/extensions/XTest.h'. But It won't set caps and scroll (num only).
I found 'setleds' tool but it requires root access for '/dev/ttyN'
The example is:
setleds -L +scroll < /dev/tty0
bash: /dev/tty0: Permission denied
Are there any ways to get acces for /dev/tty0 with regular user or maybe you know another way to activate leds?
Offline
Why don't you just change the rights to access this device? When coding ICs you need to do the same for parport/serial connection. Using chmod will help a lot, I guess.
Offline
I'm not sure that's right way to change /dev/ttyX permissions
Offline
Pages: 1