linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Yves-Alexis Perez <corsac@debian.org>,
	Matthew Garrett <mjg@redhat.com>,
	Richard Hughes <hughsient@gmail.com>,
	linux-acpi <linux-acpi@vger.kernel.org>,
	Peter Hutterer <peter.hutterer@redhat.com>,
	linux-input <linux-input@vger.kernel.org>,
	Matthias Clasen <mclasen@redhat.com>,
	aliov@xfce.org
Subject: Re: [PATCH] thinkpad-acpi: use correct key names for sleep states in driver
Date: Wed, 26 Aug 2009 23:18:01 -0700	[thread overview]
Message-ID: <20090827065011.10E78526EC9@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <20090826225111.GC23973@khazad-dum.debian.net>

On Wed, Aug 26, 2009 at 07:51:11PM -0300, Henrique de Moraes Holschuh wrote:
> On Wed, 26 Aug 2009, Yves-Alexis Perez wrote:
> > On mer, 2009-08-26 at 14:43 +0100, Matthew Garrett wrote:
> > > On Wed, Aug 26, 2009 at 01:36:14PM +0200, Yves-Alexis Perez wrote:
> > > > #define XF86XK_Suspend    0x1008FFA7   /* Sleep to RAM                */        
> > > > #define XF86XK_Hibernate  0x1008FFA8   /* Sleep to disk               */
> > > > 
> > > > So (some) userspace seems to have switched already?
> > > 
> > > Adding those keysyms was, with hindsight, an error.
> > 
> > Ok, so every userland app which began the transition should step back
> > until a correct migration plan is set up?
> 
> IMHO it would be both easier and faster to deploy a proper migration plan
> and keep going.  Nobody said the names used by X.org keysyms have to agree
> with the ones used by input devices, for example... and a mapping table is
> already used anyway.
> 
> So, userspace can use the X keysyms like the above. There's nothing wrong
> with it.  But the correct mapping for kernel input events to those keysyms
> is AND WILL REMAIN:
> 
> KEY_SLEEP -> XF86XK_Suspend
> KEY_SUSPEND -> XF86XK_Hibernate
> 
> If people want to define two new input events, say KEY_SUSPENDTORAM and
> KEY_SUSPENDTODISK, start migrating the kernel drivers to use these two, and
> after some time with no use of KEY_SLEEP in the kernel, reclaim it to
> be a generic "sleep the system in some unspecified way", I'd be fine with
> it.
> 
> So, you'd have:
> KEY_SLEEP -> XF86XK_Suspend
> KEY_SUSPENDTORAM -> XF86XK_Suspend
> KEY_SUSPEND -> XF86XK_Hibernate
> KEY_SUSPENDTODISK -> XF86XK_Hibernate
> 
> I'd guess the only thing that could make us break that ABI the way people
> wanted us to (i.e. change the meaning of KEY_SUSPEND and KEY_SLEEP, and add
> a new KEY_HIBERNATE), is a proof that we got the USB HID table wrong and
> that USB keyboards are doing the wrong thing because of it.
> 

Would not it be easier just to adjust HID in this case?

-- 
Dmitry

  reply	other threads:[~2009-08-27  6:18 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
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 [this message]
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=20090827065011.10E78526EC9@mailhub.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=aliov@xfce.org \
    --cc=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).