ACPI/ThinkPad-special-buttons

.

Preparation
We need to have functional ACPI, and kernel support for thinkpad_acpi.

To check what names ACPI uses on a specific button, start acpi_listen and press Fn+buttons and see output

Collect those names.

By default, system store key assignment in

By default some buttons are mapped to keycodes that X can't handle or has no keysym for. So the following might be useful. It modifies the udev defaults slightly to fix the key combinations that otherwise wouldn't work in X:

Now create an event for each button in, I named them by the location-function, but it's up to you. than create corresponding action for the event in. See examples below.

Battery button
Source: ThinkWiki.org

Brightness Down
Source: forums.gentoo.org

CD control
Instead of CD I would like to control.

Initially I start mocp manually to populate playlist, quit qui and than use special keys to control mocp.

Troubleshooting
To see output when you press a key


 * bug report on bugzilla.kernel.org

Questions

 * Do I need to place all events in the same file, something like and make it downloadable?

Another option is to use ScrLk key to lock console with, or it can be done through the same acpi action? dunno
 * How to choose vlock vs slimlock screenlock action depending on console vs Xorg or for both altogether?