LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   setkeycodes (https://www.linuxquestions.org/questions/debian-26/setkeycodes-909543/)

sdfi 10-22-2011 10:40 AM

setkeycodes
 
So there are a couple of unused buttons on my laptop i'd like to make use of. when i press it it tells me use 'setkeycodes e0xx <keycode>' to make it known' (where e0xx is the scancode, i guess)

Running setkeycodes --help gives me an error which shows the usage;
'usage: setkeycode scancode keycode ...
(where scancode is either xx or e0xx, given in hexadecimal,
and keycode is given in decimal)'

So, if i am, for example, trying to set this key as F10, how would i go about getting (/what is) the correct keycode for this?

I have tried 'od -d <<< "[Ctrl+V then F10]"

which outputs '0000000 23323 12594 2686'

but 'setkeycodes xxxx 2686' returns 'Invalid arguement. failed to set scancode 84 to keycode 2686'.

same with every other comination of using these numbers so far.

same with using 'od -t u [etc]'

sdfi 10-23-2011 07:27 AM

OK, well it appears (here) that F10 is '68', F9 is '67' etc etc. But it seems to have little to do with any output i can get from 'od'. Perhaps just not what i thought. Any ideas on how to get the keycodes without just googling for them??


All times are GMT -5. The time now is 06:51 PM.