diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2008-10-27 16:36:34 +1030 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-11-14 10:33:30 +1000 |
commit | 1e33337d4dd151da4f0898a86608a1ee67588163 (patch) | |
tree | 0c98f3d060d4c192a20889eca5260366b3232b50 /XF86keysym.h | |
parent | 2563153ed69d3d6f052ba275ff79df3cbe54b76d (diff) |
Add XF86XK_Suspend and XF86XK_Hibernate keysym defs.
At the moment, we have the following keysyms defined to put a computer into a
sleep state:
XF86XK_Standby 0x1008FF10 /* System into standby mode */
XF86XK_PowerDown 0x1008FF21 /* Deep sleep the system */
XF86XK_Sleep 0x1008FF2F /* Put system to sleep */
Proposed change by Richard Hughes:
"The nomenclature I've been trying to make stick
(most projects now use this) for a few years now is:
standby: high sleep state, nobody uses this any more
hibernate: sleep to disk - slow, but can remove power
suspend: sleep to ram - fast, but can't remove power
hybrid sleep: sleep to both, slow, and can remove power, but quick to
resume if you don't - most users don't use this"
This patch adds XF86XK_Suspend and XF86XK_Hibernate. The behaviour of
XF86XK_Sleep can then be configured on a per-session basis.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'XF86keysym.h')
-rw-r--r-- | XF86keysym.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/XF86keysym.h b/XF86keysym.h index 2a39f4e..072807e 100644 --- a/XF86keysym.h +++ b/XF86keysym.h @@ -206,6 +206,9 @@ #define XF86XK_Yellow 0x1008FFA5 /* Yellow button */ #define XF86XK_Blue 0x1008FFA6 /* Blue button */ +#define XF86XK_Suspend 0x1008FFA7 /* Sleep to RAM */ +#define XF86XK_Hibernate 0x1008FFA8 /* Sleep to disk */ + /* Keys for special action keys (hot keys) */ /* Virtual terminals on some operating systems */ #define XF86XK_Switch_VT_1 0x1008FE01 |