LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS system - customizing keyboard - what scan codes..? (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-system-customizing-keyboard-what-scan-codes-277873/)

Yerp 01-14-2005 05:32 PM

LFS system - customizing keyboard - what scan codes..?
 
Finally got a stable version out...

I'm trying to figure out how to figure out the scan codes for all the extra buttons that come on these pre-built computers..

2-system I am playing with at the moment: IBM Thinkpad and Dell Inspiron.
I have noticed that the Thinkpad and Inspiron both have specific keyboard support in Xorg6.8.1.

Heres the questions:
1) I have extra buttons on my keyboards, how do I figure out what scan codes they send when pressed?
2) Once past that, is there a way to customize what they do when they are pressed. (I can also program so if that is the case, could you point me in the correct direction??)

I am using something loosely near LFS-5.1.1, only a little closer to bleeding edge.

Andrew Benton 01-14-2005 06:31 PM

If you open a shell and run xev it should tell you something about what key was pressed. Read man xev
I don't know how to make use of the information. Try reading man setkeycodes

Yerp 01-15-2005 07:22 PM

After also searching through LQ's forums for this problem. (and your help..) I came to this conclusion:

1) showkey fails to show my keycodes (only non-standard)
2) passing showkey -s revealed the following (touched up for easier reading):

Code:

kb mode was XLATE

-------------------------------------
| Press    | Release  | Button    |
-------------------------------------
| 0xe0 0x6c | 0xe0 0xec | e-mail    |
| 0xe0 0x32 | 0xe0 0xb2 | home      |
| 0xe0 0x65 | 0xe0 0xe5 | search    |
| 0xe0 0x66 | 0xe0 0xe6 | go        |
| 0xe0 0x67 | 0xe0 0xe7 | refresh  |
| 0xe0 0x68 | 0xe0 0xe8 | stop      |
| 0xe0 0x6a | 0xe0 0xea | backwards |
| 0xe0 0x69 | 0xe0 0xe9 | forwards  |
-------------------------------------|

3) It seems that when it sends the initial NULL, X and showkey (without -s paramater) assume that is the end of the keysequence and stop. Thus all the applications I try seem to only get 0 / Null / Nothing at all.

4) I am currently looking at this as a possile solution, further testing to come: http://hocwp.free.fr/xbindkeys/xbindkeys.html#download


All times are GMT -5. The time now is 03:02 AM.