Chapter 7. Keyboard

It is just a normal keyboard with some extra keys: Email, "World" orwhatever, "P1" and "P2" as well as some audio keys (Fn+Up/Down/F8). "P1" and "P2" don't generate any scancode. The other ones can be added to your personal .Xmodmap:

keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 160 = XF86AudioMute
keycode 236 = XF86Mail
keycode 178 = XF86WWW

Some words towards Acer: Although it's a relly nice laptop with a nice keyboard, the "<"-Key left to the RIGHT shift is a pain!

There is a driver called acerhk which gives you and me access to the buttons which don't generate scancodes. You just have to load the module and execute the following:

setkeycodes e074 89
setkeycodes e073 90
setkeycodes e025 91
setkeycodes e026 92
setkeycodes e027 93
setkeycodes e056 94
setkeycodes e055 95
setkeycodes e057 120
setkeycodes e058 121

When you have done this, you can extend the .Xmodmap file:

keycode 123 = XF86Launch1
keycode 128 = XF86Launch2
keycode 127 = XF86Support
keycode 129 = XF86Option
keycode 120 = XF86Standby
 keycode 225 = XF86Sleep
keycode 139 = XF86LaunchA
keycode 134 = XF86LaunchB
keycode 131 = XF86LaunchC
 keycode 229 = XF86LaunchD

I know that it looks weird that the keycodes don't match, but X somehow rewrites them. Note that the sleep button (Fn+F4) can't be used.