linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yves-Alexis Perez <corsac@debian.org>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Richard Hughes <hughsient@gmail.com>,
	linux-acpi <linux-acpi@vger.kernel.org>,
	Peter Hutterer <peter.hutterer@redhat.com>, mjg <mjg@redhat.com>,
	linux-input <linux-input@vger.kernel.org>,
	Matthias Clasen <mclasen@redhat.com>
Subject: Re: [PATCH] thinkpad-acpi: use correct key names for sleep states in driver
Date: Tue, 18 Aug 2009 22:02:10 +0200	[thread overview]
Message-ID: <1250625730.2257.11.camel@hidalgo> (raw)
In-Reply-To: <20090304120439.GA31850@khazad-dum.debian.net>

[-- Attachment #1: Type: text/plain, Size: 3114 bytes --]

On mer, 2009-03-04 at 09:04 -0300, Henrique de Moraes Holschuh wrote:
> On Wed, 04 Mar 2009, Richard Hughes wrote:
> > >From d3ce499f80ba7526e83e7b16f85124ccf77ac1f4 Mon Sep 17 00:00:00 2001
> > From: Richard Hughes <richard@hughsie.com>
> > Date: Wed, 4 Mar 2009 10:51:52 +0000
> > Subject: thinkpad-acpi: use correct key names for sleep keys in driver
> > 
> > Use the new key KEY_HIBERNATE and correct the use of KEY_SUSPEND.
> > 
> > KEY_HIBERNATE is used when the decal on the key indicates sleep to disk,
> > KEY_SUSPEND is used when the decal indicates sleep to memory, and
> > KEY_SLEEP is used when the sleep type is unknown or unspecified
> > 
> > We've already converted Xorg, HAL, and most of userspace to use the same names.
> > 
> > With this patch, the sleep keys can be labeled consistently all the way
> > through the stack. More patches to other device drivers are to follow.
> > 
> > Signed-off-by: Richard Hughes <hughsient@gmail.com>
> 
> Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>

It seems that this patch is still not in master?

Currently (on debian unstable), input-events reports on my T61:

KEY_SLEEP for Fn+F4
KEY_SUSPEND for Fn+F12

which kind-of breaks xfce4-power-manager, where SLEEP and SUSPEND both
suspend to ram, so I don't have any way to hibernate. Changing xfpm
doesn't seem like a good idea if the way to go is to use SUSPEND for
STR, HIBERNATE for STD and SLEEP for either.

So what's the status for this?

> 
> > ---
> >  drivers/platform/x86/thinkpad_acpi.c |    8 ++++----
> >  1 files changed, 4 insertions(+), 4 deletions(-)
> > 
> > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> > index bcbc051..d89015d 100644
> > --- a/drivers/platform/x86/thinkpad_acpi.c
> > +++ b/drivers/platform/x86/thinkpad_acpi.c
> > @@ -2241,9 +2241,9 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
> >  	 */
> >  	static u16 ibm_keycode_map[] __initdata = {
> >  		/* Scan Codes 0x00 to 0x0B: ACPI HKEY FN+F1..F12 */
> > -		KEY_FN_F1,	KEY_FN_F2,	KEY_COFFEE,	KEY_SLEEP,
> > +		KEY_FN_F1,	KEY_FN_F2,	KEY_COFFEE,	KEY_SUSPEND,
> >  		KEY_WLAN,	KEY_FN_F6, KEY_SWITCHVIDEOMODE, KEY_FN_F8,
> > -		KEY_FN_F9,	KEY_FN_F10,	KEY_FN_F11,	KEY_SUSPEND,
> > +		KEY_FN_F9,	KEY_FN_F10,	KEY_FN_F11,	KEY_HIBERNATE,
> >  
> >  		/* Scan codes 0x0C to 0x1F: Other ACPI HKEY hot keys */
> >  		KEY_UNKNOWN,	/* 0x0C: FN+BACKSPACE */
> > @@ -2277,9 +2277,9 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
> >  	};
> >  	static u16 lenovo_keycode_map[] __initdata = {
> >  		/* Scan Codes 0x00 to 0x0B: ACPI HKEY FN+F1..F12 */
> > -		KEY_FN_F1,	KEY_COFFEE,	KEY_BATTERY,	KEY_SLEEP,
> > +		KEY_FN_F1,	KEY_COFFEE,	KEY_BATTERY,	KEY_SUSPEND,
> >  		KEY_WLAN,	KEY_FN_F6, KEY_SWITCHVIDEOMODE, KEY_FN_F8,
> > -		KEY_FN_F9,	KEY_FN_F10,	KEY_FN_F11,	KEY_SUSPEND,
> > +		KEY_FN_F9,	KEY_FN_F10,	KEY_FN_F11,	KEY_HIBERNATE,
> >  
> >  		/* Scan codes 0x0C to 0x1F: Other ACPI HKEY hot keys */
> >  		KEY_UNKNOWN,	/* 0x0C: FN+BACKSPACE */
> 
> 
Cheers,
-- 
Yves-Alexis

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-08-18 20:02 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-02 11:13 suspend / hibernate nomenclature Richard Hughes
2009-03-02 11:24 ` Henrique de Moraes Holschuh
2009-03-02 12:11   ` Richard Hughes
2009-03-03 17:20     ` [patch] add KEY_HIBERNATE and clarify the uses of KEY_SUSPEND and KEY_SLEEP Richard Hughes
2009-03-03 19:53       ` Rafael J. Wysocki
2009-03-04  8:42         ` Dmitry Torokhov
2009-03-04 10:54   ` [PATCH] thinkpad-acpi: use correct key names for sleep states in driver Richard Hughes
2009-03-04 10:58     ` [PATCH] panasonic-laptop: " Richard Hughes
2009-03-04 23:58       ` Harald Welte
2009-03-05  9:09         ` Richard Hughes
2009-03-04 11:09     ` [PATCH] DVB-USB: correct the comment about KEY_SLEEP Richard Hughes
2009-03-10 10:31       ` Antti Palosaari
2009-03-04 12:04     ` [PATCH] thinkpad-acpi: use correct key names for sleep states in driver Henrique de Moraes Holschuh
2009-08-18 20:02       ` Yves-Alexis Perez [this message]
2009-08-18 20:10         ` Matthew Garrett
2009-08-18 20:27           ` Yves-Alexis Perez
2009-08-18 20:45             ` Matthew Garrett
2009-08-22 18:02               ` Henrique de Moraes Holschuh
2009-08-19  9:18             ` Ali Abdallah
2009-08-26 11:36           ` Yves-Alexis Perez
2009-08-26 13:43             ` Matthew Garrett
2009-08-26 17:52               ` Yves-Alexis Perez
2009-08-26 22:51                 ` Henrique de Moraes Holschuh
2009-08-27  6:18                   ` Dmitry Torokhov
2009-08-28  0:34                     ` Henrique de Moraes Holschuh
2009-03-07  8:37 ` suspend / hibernate nomenclature Andrey Borzenkov
2009-03-07 15:48 ` Matthew Garrett
2009-03-07 16:41   ` Henrique de Moraes Holschuh
2009-03-07 16:48     ` Matthew Garrett
2009-03-07 17:17       ` Henrique de Moraes Holschuh
2009-03-07 20:25       ` Richard Hughes
2009-03-07 20:39         ` Matthew Garrett
2009-03-08  8:45           ` Richard Hughes
2009-03-08 14:41             ` Matthew Garrett
2009-03-08 20:56               ` Rafael J. Wysocki
2009-03-08 23:07                 ` Dmitry Torokhov
2009-03-08 23:19                   ` Matthew Garrett
2009-03-09 13:52                     ` Ville Syrjälä
2009-03-09 14:00                       ` Matthew Garrett
2009-03-09 15:10                         ` Ville Syrjälä

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1250625730.2257.11.camel@hidalgo \
    --to=corsac@debian.org \
    --cc=hmh@hmh.eng.br \
    --cc=hughsient@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=mclasen@redhat.com \
    --cc=mjg@redhat.com \
    --cc=peter.hutterer@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).