LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setkeycodes (https://www.linuxquestions.org/questions/linux-newbie-8/setkeycodes-4175453882/)

eeluve 03-13-2013 04:38 AM

setkeycodes
 
Ok, short story is - I want to assign key/scan-code to a non-functional for this moment button(s). The keyboard works trough 485 translating bytes to rs232 by "inputattach". Doing:
Code:

setkeycodes e046 121
for example, checked dumpkeys and 121 is still free. Then check "dmesg" again, and it recommends me to reassign once more. Are the changes I make not applied, how do I accomplish that? Yes, im pretty sure the scan is right, checked several times with different buttons logged to "dmesg", for working ones - both with "xev" and "showkey -s".

NevemTeve 03-13-2013 05:19 AM

Test it with showkey -k: what does it show when you press the key in question?

eeluve 03-13-2013 05:27 AM

Come on, nothing of course ;)
EDIT: this time I have read the "setkeycodes" manual more carefully, and it turns out that my keyboard is not really "slightly unusual" as they state there, cba checking their source .. honestly. But if someone might help still, I'd love it.

eeluve 03-14-2013 12:42 AM

some keys do not work rs485 debian5 inputattach
 
Sorry, I've got to copy the thread, maybe posted in wrong section. Really need assistance.

Ok, short story is - I want to assign key/scan-code to a non-functional for this moment button(s). The keyboard works trough 485 translating bytes to rs232 by "inputattach". Doing:
Code:

setkeycodes e046 121
for example, checked dumpkeys and 121 is still free. Then check "dmesg" again, and it recommends me to reassign once more. Are the changes I make not applied, how do I accomplish that? Yes, im pretty sure the scan is right, checked several times with different buttons logged to "dmesg", for working ones - both with "xev" and "showkey -s". Probably "setkeycodes" is not an utility for my situation, haven't seen source. But, considering system gives me the scan-codes to assign, how do I solve it then?

Code:

inputattach --daemon --always --noinit --baud 4800 -ps2ser /dev/ttyS№
EDIT: ok, I even wrote letter to Vojtech, considering he's author of both evdev and inputattach. don't really expect answer tho, kind of cba writing new driver for that.
EDIT2: just thinking, what exactly does log this "Use 'setkeycodes bla-bla" to the dmesg(because it actually reads my scan-code), as I have found nothing similar in driver. Ok I'm blind, its atkbd.c, also written by Vojtech of course;)

colucix 03-15-2013 11:21 AM

Quote:

Originally Posted by eeluve (Post 4911208)
Sorry, I've got to copy the thread, maybe posted in wrong section. Really need assistance.

Moderator note: please, the next time just edit (or post again in) your original thread to avoid duplicates and keep the discussion in one place. For any assistance, please consider to report your own thread/post and ask a moderator to take the proper action. In this case I have merged the two threads into this one and I bumped it to the top of the forum list, in order to let it gain more visibility for a while.


All times are GMT -5. The time now is 07:00 PM.