LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   who had ever worked with khotkeys? (https://www.linuxquestions.org/questions/linux-hardware-18/who-had-ever-worked-with-khotkeys-234631/)

phoenix7 09-24-2004 02:55 AM

who had ever worked with khotkeys?
 
Hi
here are my questions:
1. How can I know which keyboard model is matches with my keyboard? my keyboard model is Genius KB-16e. I chose Microsoft Natural Keyboard Pro / Microsoft Internet Keyboard Pro. Unfortunately for example it didn't recognize Word & Excel keys.

2. How can I configure Audio (Play/Pause) and Audio (Stop) and etc keys for using them with xmms or mplayer? I know one way is using DCOP function call. but as I see these programs don't provide any DCOP function to call.

3. If there is anyone who can work with its "Keyboard Shortcut -> Keyboard Input" correctly please tell me how can he/she do this?

Cheers,
Mohammad

Menestrel 10-25-2004 05:25 AM

any luck on your keyboard problems? because I have the same problems :(

phoenix7 10-25-2004 06:13 AM

any idea?

caleb 04-05-2005 09:23 PM

same keyboard in here ...
any idea is really welcome ...

no, xev won't detect any of they extra keys ...

nbd 10-03-2007 04:09 PM

unknown keys howto
 
Press the unknown key and type 'dmesg' to console to see what kernel says.

For me it says:

atkbd.c: Unknown key pressed (translated set 2, code 0xbb on isa0060/serio0).
atkbd.c: Use 'setkeycodes e03b <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xbb on isa0060/serio0).
atkbd.c: Use 'setkeycodes e03b <keycode>' to make it known.


So at least kernel recognizes them. The next step is to find free keycode:

dumpkeys |egrep '=$'

Select your favourite keycode from the list and assign it to the key. I did:

sudo setkeycodes e03b 120

Then use xev to see what X event the key creates. For me it gives:

KeyPress event, serial 31, synthetic NO, window 0x2a00001,
root 0x5c, subw 0x0, time 88366743, (165,-317), root:(168,277),
state 0x10, keycode 139 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

From there I read 'keycode 139', so I can assign eg:

xmodmap -e "keycode 139 = XF86Calculator"

Now my key gives XF86Calculator event, which I can bind to whatever I like with khotkeys.


If you ask me, all this should be done automatically; after all, kernel recognized the 'unknown' key and the rest could be automated. There could be a 'hotkey detect'-mode in which the system would find these unmapped keys and asked user to assign a X event for it.


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