[ltp] Head's up: KEY_SLEEP/SUSPEND/HIBERNATE changes

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Wed, 4 Mar 2009 09:13:07 -0300


It has been defined by the core userspace UI people (X.org, HAL,
desktop.org, etc) that:

KEY_SLEEP - Maps to any of the sleep modes, by asking the user what
should be done.  Used when the platform doesn't have a preference for
that key (e.g. moon icon on normal keyboards).

KEY_SUSPEND - Sleep to RAM  (thinkpad fn+f4)

KEY_HIBERNATE (new) - Sleep to disk, or RediSafe (disk+ram).
(thinkpad fn+f12).

And thinkpad-acpi, as well as the rest of the kernel laptop drivers
are going to change their default mappings to implement it, probably
for 2.6.30.  In thinkpad-acpi's case, I will change it on the next
development/backport version as well.

This is just a head's up, so that you know what is happening if
suddenly your keys start doing something different.

There are NO CHANGES to the ACPI events.

You can, of course, restore the old key mappings using any of the
possible ways to reprogram an input device's keymap (such as HAL .fdi
files).

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh