-   Slackware (
-   -   Multimedia keys, kde 4.2.x (

manwichmakesameal 07-25-2009 01:04 PM

Multimedia keys, kde 4.2.x
I just noticed that under -current64 that my volume keys on my multimedia keyboard actually work without xbindkeys, etc. Anyone know what is making that work and how I can add my other keys? So far, the volume ones are the only ones working without external apps. I have xbindkeys installed, but no .xbindkeysrc. Is it possible that it's working without the rc file?

Edit: Found out that the new X is likely the culprit. It is reporting the keys differently than on the old X. This is just from xbindkeys. E.g.:

For Play on Old X:

m:0x10 + c:162
On new X:

m:0x10 + c:172
Mod2 + XF86AudioPlay

David the H. 07-26-2009 11:03 AM

Xorg is in the process of moving away from the old xorg.conf configuration system to a dynamic one based on hal policies and other automatic techniques, and I believe it now uses the evdev driver for most input devices. My new xorg.conf on one of my systems contains only three active lines, in fact.

I also noticed that evdev generates different key codes than the older drivers. I couldn't tell you what is defining the actions bound to yours, but I'd assume it's kde, either through hotkeys or input actions. It probably has actions predefined for some of the more common multimedia keys, such as the sound controls.

If all the buttons are defined with keysyms (names like "xf86AudioMute", xev will show you) then you should be able to use them the same as any other key in your kde hotkey definitions and such, or you can always continue to use xbindkeys.

If any of them don't have keysyms (but do have keycodes), then you can use xmodmap to assign keysyms to them.

mattydee 07-26-2009 12:40 PM

You can also use the keyboard layout in the kde system settings to select the keyboard model. For example, I have selected the Logitech Media Elite keyboard and all my media keys work except for a couple.

I think you can specify the keyboard model directly in the xorg.conf file as well.

All times are GMT -5. The time now is 01:26 AM.