Jump to content

KB leds switch off from KB button


Recommended Posts

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.

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.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...