Hi all,
I have tried to set the keycode for some hotkeys in my laptop. I used showkey command to get the scancodes and then i assigned keycode to that scancodes by using the command setkeycodes. I placed them in a script called .setkeycodes in in the path /root. The contents of .setkeycodes script is as follows,
setkeycodes e022 92
setkeycodes e024 93
setkeycodes e010 94
setkeycodes e019 95
The keysym for that keycodes are set in .Xmodmap file in the path /root and the contents of that file is,
keycode 100 = XF86AudioPause
keycode 101 = XF86AudioStop
keycode 102 = XF86AudioPrev
keycode 103 = XF86AudioNext.
I called that script and file in /etc/rc.d/rc.local script by adding the following lines to that script,
cd /root
xmodmap .Xmodmap
/.setkeycodes
My problem is, when i tried to check the assigned keysyms, all the keys are working properly except the AudioStop key. I got the output without having keysym and keycode in xev when i pressed the AudioStop(Fn+F10) key.
But when i assigned the keysym for AudioStop key in command prompt it was working properly. I have removed the line 'keycode 101 = XF86AudioStop' from the .Xmodmap file and then i rebooted puppy. I got the output of having keysym as 'NoSymbol' and keycode as 101 when i pressed the Fn+F10 key. Can anyone tell me what is the problem here? How can i set the AudioStop key to work properly?
Regards,
Anitha..
Setting hotkeys
Discussion in 'Linux Compatibility and Software' started by anitha, Jan 2, 2008.