HOWTO setup "Hewlett-Packard SK-2511A Multimedia Keyboard" under SUSE. This configuration was tested under SuSE Linux 10.0
This keyboard has the following multimedia keys:
| 1/Mail | TopTools | www | ? | Lock |
| 2/Phone | 3 | 4 | 5 | i |
| | | | Mute |
| | | | RaiseVolume |
| | | | LowerVolume |
Under KDE Control Center --> Regional & Accessibility --> Keyboard Layout
Select the Hewlett-Packard SK-2501 Multimedia Keyboard Model.
Create a file /etc/init.d/keyboard.start which contains:
setkeycodes e01e 155
setkeycodes e012 157
setkeycodes e017 138
setkeycodes e023 169
setkeycodes e025 142
setkeycodes e026 141
Give it execute rights (chmod 755 /etc/init.d/keyboard.start)
insert:
/etc/init.d/keyboard.start
in the file /etc/init.d/earlykbd (before the exec line)
Create the file ~/.Xmodmap that contains:
keycode 158 =
keycode 146 =
keycode 166 =
keycode 163 =
keycode 165 =
keycode 151 =
keycode 236 = XF86Mail
keycode 235 = XF86Tools
keycode 178 = XF86WWW
keycode 245 = Help
keycode 190 = XF86Launch2
keycode 223 = XF86Standby
keycode 193 = XF86Search
In ~.kde/Autostart) create a file called Xmodmap that contains:
/usr/X11R6/bin/xmodmap ~/.Xmodmap
Give it execute rights (chmod 755 /etc/init.d/keyboard.start)
Reboot your computer, or run under root:
/etc/init.d/keyboard.start
and start your X session.
Now you can call the KDE Control Center --> Regional & Accessibility --> KHotKeys, and define your preferred keyboard mappings.
Have fun.