drix Posted January 31, 2014 Share Posted January 31, 2014 Good day forum members, Im trying to make Keyboard leds switch on and off, manualy, I have found script for switching leds from SSH session, but I need to switch them from keyboard button. It is too difficult for me to find a answer what I shall to do, but maybe you know how to bind on keyboard button led switching. that what I see, when I press button in KB event file. root@OpenWrt:/# cat /dev/input/event0 | hexdump 0000000 52e8 53c9 000e 4674 0004 0004 0007 0039 0000010 52e8 53c9 000e 467d 0001 003a 0000 0001 0000020 52e8 53c9 000e 4683 0000 0000 0000 0000 0000030 52e8 53ca 0000 f838 0004 0004 0007 0039 0000040 52e8 53ca 0000 f840 0001 003a 0000 0000 0000050 52e8 53ca 0000 f845 0000 0000 0000 0000 I was installed cmdpad, I think it can help, but cant do nothing again. cmdpad no command found for key 58, event PRESS no command found for key 58, event RELEASE I think that it would work if I add line in cmdpad (/etc/cmdpad.conf), does it will be work that way? ctlrelay - it is script that I found in the internet. I was trying but it is doesnt work :( command=58,P,/ctlrelay caps_off Or I need to modify that script (attached) to handle the event from that file. There is a question, what operations I need to make that button work. Sorry for my bad english and stupid questions, but Im really need that button. Thanks, Andrey. ctlrelay.zip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.