Re: [PATCH] RFC: Add XF86XK_Suspend and XF86XK_Hibernate keysym defs.

2008-11-18 Thread Peter Hutterer
On Tue, Nov 18, 2008 at 10:03:57AM +, Richard Hughes wrote:
 On Mon, 2008-10-27 at 16:36 +1030, Peter Hutterer wrote:
  At the moment, we have the following keysyms defined to put a computer into 
  a
  sleep state:
  
  XF86XK_Standby0x1008FF10   /* 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.

[...]
 
 If there are no objections, could this patch please be merged? If the
 patch is pushed, then we can de-insane some of the XOrg-session
 mappings and then the only crazy thing left to patch is the kernel.

already pushed.
http://cgit.freedesktop.org/xorg/proto/x11proto/commit/?id=1e7d4dd151da4f0898a86608a1ee67588163

I'll put that and the matching libX11 patch into Fedora tomorrow.

Cheers,
  Peter
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


[PATCH] RFC: Add XF86XK_Suspend and XF86XK_Hibernate keysym defs.

2008-10-27 Thread Peter Hutterer
At the moment, we have the following keysyms defined to put a computer into a
sleep state:

XF86XK_Standby0x1008FF10   /* 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.
---
 XF86keysym.h |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/XF86keysym.h b/XF86keysym.h
index 2a39f4e..88cef67 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 0x1009FFA7   /* Sleep to RAM  ` */
+#define XF86XK_Hibernate   0x1009FFA8   /* Sleep to disk   */
+
 /* Keys for special action keys (hot keys) */
 /* Virtual terminals on some operating systems */
 #define XF86XK_Switch_VT_1 0x1008FE01
-- 
1.5.4.3

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [PATCH] RFC: Add XF86XK_Suspend and XF86XK_Hibernate keysym defs.

2008-10-27 Thread Alan Coopersmith
I thought that since we were X.Org, not XFree86, we were going to stop
defining new keysyms with XF86 and stop using the vendor space, since
we can just define them in the standard space, as the X Standards Body.

-alan-

Peter Hutterer wrote:
 At the moment, we have the following keysyms defined to put a computer into a
 sleep state:
 
 XF86XK_Standby0x1008FF10   /* 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.
 ---
  XF86keysym.h |3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)
 
 diff --git a/XF86keysym.h b/XF86keysym.h
 index 2a39f4e..88cef67 100644
 --- a/XF86keysym.h
 +++ b/XF86keysym.h
 @@ -206,6 +206,9 @@
  #define XF86XK_Yellow0x1008FFA5   /* Yellow button   
 */
  #define XF86XK_Blue 0x1008FFA6   /* Blue button 
 */
  
 +#define XF86XK_Suspend   0x1009FFA7   /* Sleep to RAM  ` 
 */
 +#define XF86XK_Hibernate 0x1009FFA8   /* Sleep to disk   */
 +
  /* Keys for special action keys (hot keys) */
  /* Virtual terminals on some operating systems */
  #define XF86XK_Switch_VT_1   0x1008FE01

-- 
-Alan Coopersmith-   [EMAIL PROTECTED]
 Sun Microsystems, Inc. - X Window System Engineering

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg