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]'
Last edited by sdfi; 10-22-2011 at 10:44 AM.
|