[MPlayer-dev-eng] [PATCH] Support for multimedia keys on internet keyboards

Kolbe Kegel kolbe at kolbekegel.com
Tue Jan 29 19:36:43 CET 2002


Basically, it just involves creating a file to run through xmodmap. For 
my Logitech Cordless Desktop Pro it looks like this:

keycode 178 = XF86HomePage
keycode 236 = XF86Mail
keycode 229 = XF86Search
keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext


you'll need to run xev to find out which keycodes correspond to the 
multimedia keys on your keyboard. this is simple: just open an xterm and 
run xev. with focus on the xev applicaiton window that comes up, press 
each multimedia key and note the keycode that's printed in the console. 
(note: if you happen to be running xmms with the 'iTouch Keyboard 
Control' plugin (or maybe anything else like this), it will intercept 
these events and you won't see any keycode in the console. thus, i 
imagine that it would prevent these keys doing anything in mplayer anyway).

so after you get the file set up, just save it in your home directory 
and run xmodmap $filename
you can put that in your .xinitrc so that it's automatically processed 
each time you start X.

i hope that helps.

--Kolbe

Stephen Davies wrote:

>
>On Tue, 29 Jan 2002, Gwendal Stevanazzi wrote:
>
>>I've only tried this patch with my own keyboard but it should work with
>>any well configured multimedia keyboard.
>>
>
>Mine's not well configured...  Could you point at some "how to" info...?
>
>Thanks,
>Steve
>
>
>_______________________________________________
>MPlayer-dev-eng mailing list
>MPlayer-dev-eng at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>





More information about the MPlayer-dev-eng mailing list