* [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040
@ 2012-12-26 17:46 ` Richard Hartmann
0 siblings, 0 replies; 14+ messages in thread
From: Richard Hartmann @ 2012-12-26 17:46 UTC (permalink / raw)
To: ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
ibm-acpi-N3TV7GIv+o9fyO9Q7EP/yw,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
platform-driver-x86-u79uwXL29TY76Z2rM5mHXA
Cc: Richard Hartmann
Handle HKEY event generated on AC power change. The current message
asks users to submit data related to this event which leads to
a lot of confusion and noise on the mailing list.
The following is a list of causes, affected models, and 'message-id'
from ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org :
AC plug/unplug:
X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
x121e - 20120817143459.GB3462-eWLsEhkZJs/kLsZ8J5Uweg@public.gmane.org
X220 - Confirmed by Richard Hartmann
X220i - 4F406274.7070807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
X220t - 4F489F5B.9040705-CFLBMwTPW48UNGrzBIF7/Q@public.gmane.org
X230 - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
T420 - 9c848ee30b006737d0534d906bab0cf6-l1rQmuElw4w5vnOj3qJKwaxOck334EZe@public.gmane.org
T420s - 20120608080824.GS25324-3HqRAUrWAWyGglJvpFV4uA@public.gmane.org
W520 - 20121008181050.GF2549-7RcLWEz+wg2OywUUTrYc/mD+nLXbzpJg6Rye4aHWhBBzbRFIqnYvSA@public.gmane.org
Lid closed/openend:
X220 - 4F4124DF.5030205-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Could not be confirmed by author
Signed-off-by: Richard Hartmann <richih.mailinglist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/platform/x86/thinkpad_acpi.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 75dd651..2645084 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -209,9 +209,8 @@ enum tpacpi_hkey_event_t {
TP_HKEY_EV_ALARM_SENSOR_XHOT = 0x6022, /* sensor critically hot */
TP_HKEY_EV_THM_TABLE_CHANGED = 0x6030, /* thermal table changed */
- TP_HKEY_EV_UNK_6040 = 0x6040, /* Related to AC change?
- some sort of APM hint,
- W520 */
+ /* AC-related events */
+ TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */
/* Misc */
TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */
@@ -3629,6 +3628,13 @@ static bool hotkey_notify_6xxx(const u32 hkey,
"a sensor reports something is extremely hot!\n");
/* recommended action: immediate sleep/hibernate */
break;
+ case TP_HKEY_EV_AC_CHANGED:
+ pr_info("AC status has changed\n");
+ /* X120e, x121e, X220, X220i, X220t, X230, T420, T420s, W520:
+ * AC status changed; can be triggered by plugging or
+ * unplugging AC adapter, docking or undocking, or closing
+ * or opening the lid. */
+ break;
case TP_HKEY_EV_KEY_NUMLOCK:
case TP_HKEY_EV_KEY_FN:
--
1.7.10.4
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 @ 2012-12-26 17:46 ` Richard Hartmann 0 siblings, 0 replies; 14+ messages in thread From: Richard Hartmann @ 2012-12-26 17:46 UTC (permalink / raw) To: ibm-acpi-devel, ibm-acpi, linux-kernel, platform-driver-x86 Cc: Richard Hartmann Handle HKEY event generated on AC power change. The current message asks users to submit data related to this event which leads to a lot of confusion and noise on the mailing list. The following is a list of causes, affected models, and 'message-id' from ibm-acpi-devel@lists.sourceforge.net : AC plug/unplug: X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ@mail.gmail.com x121e - 20120817143459.GB3462@x1.osrc.amd.com X220 - Confirmed by Richard Hartmann X220i - 4F406274.7070807@gmail.com X220t - 4F489F5B.9040705@cs.tu-berlin.de X230 - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w@mail.gmail.com T420 - 9c848ee30b006737d0534d906bab0cf6@niklaas-baudet.net T420s - 20120608080824.GS25324@hexapodia.org W520 - 20121008181050.GF2549@ericlaptop.home.christensenplace.us Lid closed/openend: X220 - 4F4124DF.5030205@gmail.com Could not be confirmed by author Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> --- drivers/platform/x86/thinkpad_acpi.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 75dd651..2645084 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -209,9 +209,8 @@ enum tpacpi_hkey_event_t { TP_HKEY_EV_ALARM_SENSOR_XHOT = 0x6022, /* sensor critically hot */ TP_HKEY_EV_THM_TABLE_CHANGED = 0x6030, /* thermal table changed */ - TP_HKEY_EV_UNK_6040 = 0x6040, /* Related to AC change? - some sort of APM hint, - W520 */ + /* AC-related events */ + TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */ /* Misc */ TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ @@ -3629,6 +3628,13 @@ static bool hotkey_notify_6xxx(const u32 hkey, "a sensor reports something is extremely hot!\n"); /* recommended action: immediate sleep/hibernate */ break; + case TP_HKEY_EV_AC_CHANGED: + pr_info("AC status has changed\n"); + /* X120e, x121e, X220, X220i, X220t, X230, T420, T420s, W520: + * AC status changed; can be triggered by plugging or + * unplugging AC adapter, docking or undocking, or closing + * or opening the lid. */ + break; case TP_HKEY_EV_KEY_NUMLOCK: case TP_HKEY_EV_KEY_FN: -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2012-12-26 17:46 ` Richard Hartmann (?) @ 2012-12-27 5:51 ` Borislav Petkov -1 siblings, 0 replies; 14+ messages in thread From: Borislav Petkov @ 2012-12-27 5:51 UTC (permalink / raw) To: Richard Hartmann Cc: ibm-acpi-devel, ibm-acpi, linux-kernel, platform-driver-x86 On Wed, Dec 26, 2012 at 06:46:13PM +0100, Richard Hartmann wrote: > Handle HKEY event generated on AC power change. The current message > asks users to submit data related to this event which leads to > a lot of confusion and noise on the mailing list. > > The following is a list of causes, affected models, and 'message-id' > from ibm-acpi-devel@lists.sourceforge.net : > > AC plug/unplug: > > X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ@mail.gmail.com > x121e - 20120817143459.GB3462@x1.osrc.amd.com > X220 - Confirmed by Richard Hartmann > X220i - 4F406274.7070807@gmail.com > X220t - 4F489F5B.9040705@cs.tu-berlin.de > X230 - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w@mail.gmail.com > T420 - 9c848ee30b006737d0534d906bab0cf6@niklaas-baudet.net > T420s - 20120608080824.GS25324@hexapodia.org > W520 - 20121008181050.GF2549@ericlaptop.home.christensenplace.us > > Lid closed/openend: > > X220 - 4F4124DF.5030205@gmail.com > Could not be confirmed by author > > Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> > --- > drivers/platform/x86/thinkpad_acpi.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c > index 75dd651..2645084 100644 > --- a/drivers/platform/x86/thinkpad_acpi.c > +++ b/drivers/platform/x86/thinkpad_acpi.c > @@ -209,9 +209,8 @@ enum tpacpi_hkey_event_t { > TP_HKEY_EV_ALARM_SENSOR_XHOT = 0x6022, /* sensor critically hot */ > TP_HKEY_EV_THM_TABLE_CHANGED = 0x6030, /* thermal table changed */ > > - TP_HKEY_EV_UNK_6040 = 0x6040, /* Related to AC change? > - some sort of APM hint, > - W520 */ > + /* AC-related events */ > + TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */ > > /* Misc */ > TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ > @@ -3629,6 +3628,13 @@ static bool hotkey_notify_6xxx(const u32 hkey, > "a sensor reports something is extremely hot!\n"); > /* recommended action: immediate sleep/hibernate */ > break; > + case TP_HKEY_EV_AC_CHANGED: > + pr_info("AC status has changed\n"); > + /* X120e, x121e, X220, X220i, X220t, X230, T420, T420s, W520: > + * AC status changed; can be triggered by plugging or > + * unplugging AC adapter, docking or undocking, or closing > + * or opening the lid. */ > + break; It looks like a pretty useless message to me, AFAICT. If it is only an APM hint, then we probably shouldn't say anything in dmesg but simply ignore it. I mean, do I additionally want to know that I just connected to AC after I just plugged the cable in? There's this green lamp on the side, doh! :-) Thanks. -- Regards/Gruss, Boris. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2012-12-26 17:46 ` Richard Hartmann (?) (?) @ 2012-12-27 10:38 ` Henrique de Moraes Holschuh [not found] ` <20121227103843.GB7894-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org> -1 siblings, 1 reply; 14+ messages in thread From: Henrique de Moraes Holschuh @ 2012-12-27 10:38 UTC (permalink / raw) To: Richard Hartmann Cc: ibm-acpi-devel, ibm-acpi, linux-kernel, platform-driver-x86 On Wed, 26 Dec 2012, Richard Hartmann wrote: > + case TP_HKEY_EV_AC_CHANGED: > + pr_info("AC status has changed\n"); > + /* X120e, x121e, X220, X220i, X220t, X230, T420, T420s, W520: > + * AC status changed; can be triggered by plugging or > + * unplugging AC adapter, docking or undocking, or closing > + * or opening the lid. */ > + break; > > case TP_HKEY_EV_KEY_NUMLOCK: > case TP_HKEY_EV_KEY_FN: I guess we can drop that pr_info, and please block the issuing of the event to userspace, like this: case TP_HKEY_EV_AC_CHANGED: /* X120e, x121e, X220, X220i, X220t, X230, T420, T420s, W520: * AC status changed; can be triggered by plugging or * unplugging AC adapter, docking or undocking, or closing * or opening the lid. */ /* fallthrough */ and letting it proceed to the TP_HKEY_EV_KEY_NUMLOCK block. Also, do we have any confirmed reports about the lid switch causing event 0x6040? It doesn't look right... the comment might need to be updated. -- "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 ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <20121227103843.GB7894-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>]
* Re: [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 [not found] ` <20121227103843.GB7894-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org> @ 2012-12-27 13:14 ` Richard Hartmann 2012-12-28 10:10 ` [ibm-acpi-devel] " Henrique de Moraes Holschuh 0 siblings, 1 reply; 14+ messages in thread From: Richard Hartmann @ 2012-12-27 13:14 UTC (permalink / raw) To: Henrique de Moraes Holschuh Cc: ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, ibm-acpi-N3TV7GIv+o9fyO9Q7EP/yw, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, platform-driver-x86-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1.1: Type: text/plain, Size: 493 bytes --] On Thu, Dec 27, 2012 at 11:38 AM, Henrique de Moraes Holschuh < hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org> wrote: > /* fallthrough */ > [...] > and letting it proceed to the TP_HKEY_EV_KEY_NUMLOCK block. > OK. Also, do we have any confirmed reports about the lid switch > causing event 0x6040? It doesn't look right... the comment > might need to be updated. > I could not reproduce it on my X220. Would you prefer even stronger wording or should I get of it entirely? -- Richard [-- Attachment #1.2: Type: text/html, Size: 1396 bytes --] [-- Attachment #2: Type: text/plain, Size: 383 bytes --] ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 [-- Attachment #3: Type: text/plain, Size: 201 bytes --] _______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ibm-acpi-devel] [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2012-12-27 13:14 ` Richard Hartmann @ 2012-12-28 10:10 ` Henrique de Moraes Holschuh [not found] ` <20121228101013.GA15327-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Henrique de Moraes Holschuh @ 2012-12-28 10:10 UTC (permalink / raw) To: Richard Hartmann Cc: ibm-acpi-devel, ibm-acpi, linux-kernel@vger.kernel.org, platform-driver-x86 On Thu, 27 Dec 2012, Richard Hartmann wrote: > On Thu, Dec 27, 2012 at 11:38 AM, Henrique de Moraes Holschuh < > hmh@hmh.eng.br> wrote: > > > /* fallthrough */ > > > [...] > > > and letting it proceed to the TP_HKEY_EV_KEY_NUMLOCK block. > > > > OK. > > > Also, do we have any confirmed reports about the lid switch > > causing event 0x6040? It doesn't look right... the comment > > might need to be updated. > > > > I could not reproduce it on my X220. Would you prefer even stronger wording > or should I get of it entirely? If you cannot reproduce it, we can shalk it up to user error or to corrected firmware bug, so you can remove any mention of lid open/close to event 6040... -- "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 ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <20121228101013.GA15327-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>]
* Re: [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 [not found] ` <20121228101013.GA15327-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org> @ 2012-12-28 11:44 ` Richard Hartmann [not found] ` <CAD77+gROUfVX=9LPZc6_jf=2Bc_iaf5FW5Z2efwESzORNrq9dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Richard Hartmann @ 2012-12-28 11:44 UTC (permalink / raw) To: Henrique de Moraes Holschuh Cc: ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, ibm-acpi-N3TV7GIv+o9fyO9Q7EP/yw, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, platform-driver-x86-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1.1: Type: text/plain, Size: 393 bytes --] On Fri, Dec 28, 2012 at 11:10 AM, Henrique de Moraes Holschuh < hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org> wrote: > If you cannot reproduce it, we can shalk it up to user error or to > corrected > firmware bug, so you can remove any mention of lid open/close to event > 6040... > OK, great. After some more testing, I suspect he closed the lid and then (un)plugged/docked. -- Richard [-- Attachment #1.2: Type: text/html, Size: 833 bytes --] [-- Attachment #2: Type: text/plain, Size: 361 bytes --] ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 [-- Attachment #3: Type: text/plain, Size: 201 bytes --] _______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <CAD77+gROUfVX=9LPZc6_jf=2Bc_iaf5FW5Z2efwESzORNrq9dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2012-12-28 11:44 ` Richard Hartmann @ 2012-12-29 21:51 ` Richard Hartmann 0 siblings, 0 replies; 14+ messages in thread From: Richard Hartmann @ 2012-12-29 21:51 UTC (permalink / raw) To: ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, ibm-acpi-N3TV7GIv+o9fyO9Q7EP/yw, linux-kernel-u79uwXL29TY76Z2rM5mHXA, platform-driver-x86-u79uwXL29TY76Z2rM5mHXA Cc: Richard Hartmann Handle HKEY event generated on AC power change. The current message asks users to submit data related to this event which leads to a lot of confusion and noise on the mailing list. The following is a list affected models and 'Message-Id' from ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org of people who saw this event when either plugging or unplugging the AC adapter or docking or undocking their laptop. X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org X121e - 20120817143459.GB3462-eWLsEhkZJs/kLsZ8J5Uweg@public.gmane.org X220 - Confirmed by Richard Hartmann X220i - 4F406274.7070807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X220t - 4F489F5B.9040705-CFLBMwTPW48UNGrzBIF7/Q@public.gmane.org X230 - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org T420 - 9c848ee30b006737d0534d906bab0cf6-l1rQmuElw4w5vnOj3qJKwaxOck334EZe@public.gmane.org T420s - 20120608080824.GS25324-3HqRAUrWAWyGglJvpFV4uA@public.gmane.org W520 - 20121008181050.GF2549-7RcLWEz+wg2OywUUTrYc/mD+nLXbzpJg6Rye4aHWhBBzbRFIqnYvSA@public.gmane.org Signed-off-by: Richard Hartmann <richih.mailinglist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> --- drivers/platform/x86/thinkpad_acpi.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 75dd651..15e2bba 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -209,9 +209,8 @@ enum tpacpi_hkey_event_t { TP_HKEY_EV_ALARM_SENSOR_XHOT = 0x6022, /* sensor critically hot */ TP_HKEY_EV_THM_TABLE_CHANGED = 0x6030, /* thermal table changed */ - TP_HKEY_EV_UNK_6040 = 0x6040, /* Related to AC change? - some sort of APM hint, - W520 */ + /* AC-related events */ + TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */ /* Misc */ TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ @@ -3629,6 +3628,12 @@ static bool hotkey_notify_6xxx(const u32 hkey, "a sensor reports something is extremely hot!\n"); /* recommended action: immediate sleep/hibernate */ break; + case TP_HKEY_EV_AC_CHANGED: + /* X120e, X121e, X220, X220i, X220t, X230, T420, T420s, W520: + * AC status changed; can be triggered by plugging or + * unplugging AC adapter, docking or undocking. */ + + /* fallthrough */ case TP_HKEY_EV_KEY_NUMLOCK: case TP_HKEY_EV_KEY_FN: -- 1.7.10.4 ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 @ 2012-12-29 21:51 ` Richard Hartmann 0 siblings, 0 replies; 14+ messages in thread From: Richard Hartmann @ 2012-12-29 21:51 UTC (permalink / raw) To: ibm-acpi-devel, ibm-acpi, linux-kernel, platform-driver-x86 Cc: Richard Hartmann Handle HKEY event generated on AC power change. The current message asks users to submit data related to this event which leads to a lot of confusion and noise on the mailing list. The following is a list affected models and 'Message-Id' from ibm-acpi-devel@lists.sourceforge.net of people who saw this event when either plugging or unplugging the AC adapter or docking or undocking their laptop. X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ@mail.gmail.com X121e - 20120817143459.GB3462@x1.osrc.amd.com X220 - Confirmed by Richard Hartmann X220i - 4F406274.7070807@gmail.com X220t - 4F489F5B.9040705@cs.tu-berlin.de X230 - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w@mail.gmail.com T420 - 9c848ee30b006737d0534d906bab0cf6@niklaas-baudet.net T420s - 20120608080824.GS25324@hexapodia.org W520 - 20121008181050.GF2549@ericlaptop.home.christensenplace.us Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> --- drivers/platform/x86/thinkpad_acpi.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 75dd651..15e2bba 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -209,9 +209,8 @@ enum tpacpi_hkey_event_t { TP_HKEY_EV_ALARM_SENSOR_XHOT = 0x6022, /* sensor critically hot */ TP_HKEY_EV_THM_TABLE_CHANGED = 0x6030, /* thermal table changed */ - TP_HKEY_EV_UNK_6040 = 0x6040, /* Related to AC change? - some sort of APM hint, - W520 */ + /* AC-related events */ + TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */ /* Misc */ TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ @@ -3629,6 +3628,12 @@ static bool hotkey_notify_6xxx(const u32 hkey, "a sensor reports something is extremely hot!\n"); /* recommended action: immediate sleep/hibernate */ break; + case TP_HKEY_EV_AC_CHANGED: + /* X120e, X121e, X220, X220i, X220t, X230, T420, T420s, W520: + * AC status changed; can be triggered by plugging or + * unplugging AC adapter, docking or undocking. */ + + /* fallthrough */ case TP_HKEY_EV_KEY_NUMLOCK: case TP_HKEY_EV_KEY_FN: -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [ibm-acpi-devel] [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2012-12-29 21:51 ` Richard Hartmann (?) @ 2012-12-30 2:00 ` Henrique de Moraes Holschuh [not found] ` <20121230020008.GA24121-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org> -1 siblings, 1 reply; 14+ messages in thread From: Henrique de Moraes Holschuh @ 2012-12-30 2:00 UTC (permalink / raw) To: Richard Hartmann Cc: ibm-acpi-devel, ibm-acpi, linux-kernel, platform-driver-x86 On Sat, 29 Dec 2012, Richard Hartmann wrote: > Handle HKEY event generated on AC power change. The current message > asks users to submit data related to this event which leads to > a lot of confusion and noise on the mailing list. > > The following is a list affected models and 'Message-Id' > from ibm-acpi-devel@lists.sourceforge.net of people who saw this > event when either plugging or unplugging the AC adapter or > docking or undocking their laptop. > > X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ@mail.gmail.com > X121e - 20120817143459.GB3462@x1.osrc.amd.com > X220 - Confirmed by Richard Hartmann > X220i - 4F406274.7070807@gmail.com > X220t - 4F489F5B.9040705@cs.tu-berlin.de > X230 - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w@mail.gmail.com > T420 - 9c848ee30b006737d0534d906bab0cf6@niklaas-baudet.net > T420s - 20120608080824.GS25324@hexapodia.org > W520 - 20121008181050.GF2549@ericlaptop.home.christensenplace.us > > Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> > --- > drivers/platform/x86/thinkpad_acpi.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c > index 75dd651..15e2bba 100644 > --- a/drivers/platform/x86/thinkpad_acpi.c > +++ b/drivers/platform/x86/thinkpad_acpi.c > @@ -209,9 +209,8 @@ enum tpacpi_hkey_event_t { > TP_HKEY_EV_ALARM_SENSOR_XHOT = 0x6022, /* sensor critically hot */ > TP_HKEY_EV_THM_TABLE_CHANGED = 0x6030, /* thermal table changed */ > > - TP_HKEY_EV_UNK_6040 = 0x6040, /* Related to AC change? > - some sort of APM hint, > - W520 */ > + /* AC-related events */ > + TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */ > > /* Misc */ > TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ > @@ -3629,6 +3628,12 @@ static bool hotkey_notify_6xxx(const u32 hkey, > "a sensor reports something is extremely hot!\n"); > /* recommended action: immediate sleep/hibernate */ > break; > + case TP_HKEY_EV_AC_CHANGED: > + /* X120e, X121e, X220, X220i, X220t, X230, T420, T420s, W520: > + * AC status changed; can be triggered by plugging or > + * unplugging AC adapter, docking or undocking. */ > + > + /* fallthrough */ > > case TP_HKEY_EV_KEY_NUMLOCK: > case TP_HKEY_EV_KEY_FN: -- "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 ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <20121230020008.GA24121-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>]
* Re: [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 [not found] ` <20121230020008.GA24121-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org> @ 2012-12-30 16:25 ` Richard Hartmann 2012-12-31 1:45 ` [ibm-acpi-devel] " Henrique de Moraes Holschuh 0 siblings, 1 reply; 14+ messages in thread From: Richard Hartmann @ 2012-12-30 16:25 UTC (permalink / raw) To: Henrique de Moraes Holschuh Cc: ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, ibm-acpi-N3TV7GIv+o9fyO9Q7EP/yw, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, platform-driver-x86-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1.1: Type: text/plain, Size: 477 bytes --] On Sun, Dec 30, 2012 at 3:00 AM, Henrique de Moraes Holschuh <hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org > wrote: > Acked-by: Henrique de Moraes Holschuh <hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org> > Thanks for the two ACKs. Just to make sure: From how I read the (outdated) Copyright section, you are the maintainer of thinkpad_acpi and thus will copy over the ACKs into my commit message, merge, and forward into what will become 3.9 at some point, correct? Richard [-- Attachment #1.2: Type: text/html, Size: 975 bytes --] [-- Attachment #2: Type: text/plain, Size: 383 bytes --] ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 [-- Attachment #3: Type: text/plain, Size: 201 bytes --] _______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ibm-acpi-devel] [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2012-12-30 16:25 ` Richard Hartmann @ 2012-12-31 1:45 ` Henrique de Moraes Holschuh 2013-02-25 11:57 ` Richard Hartmann 0 siblings, 1 reply; 14+ messages in thread From: Henrique de Moraes Holschuh @ 2012-12-31 1:45 UTC (permalink / raw) To: Richard Hartmann Cc: ibm-acpi-devel, ibm-acpi, linux-kernel@vger.kernel.org, platform-driver-x86 On Sun, 30 Dec 2012, Richard Hartmann wrote: > On Sun, Dec 30, 2012 at 3:00 AM, Henrique de Moraes Holschuh <hmh@hmh.eng.br > > wrote: > > > Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> > > > > Thanks for the two ACKs. > > Just to make sure: From how I read the (outdated) Copyright section, you > are the maintainer of thinkpad_acpi and thus will copy over the ACKs into > my commit message, merge, and forward into what will become 3.9 at some > point, correct? Usually the subsystem maintainer picks such simple patches and ACKs directly from the platform-driver-x86 list email, adds his signed-of-by, and eventually sends it to Linus. For this "obviously correct" single-code-line fix, we might even lucky out and it could make it to 3.8, depends on his judgment. -- "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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ibm-acpi-devel] [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2012-12-31 1:45 ` [ibm-acpi-devel] " Henrique de Moraes Holschuh @ 2013-02-25 11:57 ` Richard Hartmann 0 siblings, 0 replies; 14+ messages in thread From: Richard Hartmann @ 2013-02-25 11:57 UTC (permalink / raw) To: Henrique de Moraes Holschuh Cc: ibm-acpi-devel, ibm-acpi, linux-kernel@vger.kernel.org, platform-driver-x86 On Mon, Dec 31, 2012 at 2:45 AM, Henrique de Moraes Holschuh <hmh@hmh.eng.br> wrote: > Usually the subsystem maintainer picks such simple patches and ACKs directly > from the platform-driver-x86 list email, adds his signed-of-by, and > eventually sends it to Linus. Just so this does not get lost, neither Linus' tree nor [1] carry this patch, yet. Is there anything more I can/should do? > For this "obviously correct" single-code-line fix, we might even lucky > out and it could make it to 3.8, depends on his judgment. Sadly, no. Thanks, Richard [1] git://cavan.codon.org.uk/platform-drivers-x86.git ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2012-12-29 21:51 ` Richard Hartmann (?) (?) @ 2012-12-30 9:50 ` Borislav Petkov -1 siblings, 0 replies; 14+ messages in thread From: Borislav Petkov @ 2012-12-30 9:50 UTC (permalink / raw) To: Richard Hartmann Cc: ibm-acpi-devel, ibm-acpi, linux-kernel, platform-driver-x86 On Sat, Dec 29, 2012 at 10:51:49PM +0100, Richard Hartmann wrote: > Handle HKEY event generated on AC power change. The current message > asks users to submit data related to this event which leads to > a lot of confusion and noise on the mailing list. > > The following is a list affected models and 'Message-Id' > from ibm-acpi-devel@lists.sourceforge.net of people who saw this > event when either plugging or unplugging the AC adapter or > docking or undocking their laptop. > > X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ@mail.gmail.com > X121e - 20120817143459.GB3462@x1.osrc.amd.com > X220 - Confirmed by Richard Hartmann > X220i - 4F406274.7070807@gmail.com > X220t - 4F489F5B.9040705@cs.tu-berlin.de > X230 - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w@mail.gmail.com > T420 - 9c848ee30b006737d0534d906bab0cf6@niklaas-baudet.net > T420s - 20120608080824.GS25324@hexapodia.org > W520 - 20121008181050.GF2549@ericlaptop.home.christensenplace.us > > Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> Acked-by: Borislav Petkov <bp@alien8.de> -- Regards/Gruss, Boris. ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-02-25 11:57 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-26 17:46 [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 Richard Hartmann
2012-12-26 17:46 ` Richard Hartmann
2012-12-27 5:51 ` Borislav Petkov
2012-12-27 10:38 ` Henrique de Moraes Holschuh
[not found] ` <20121227103843.GB7894-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2012-12-27 13:14 ` Richard Hartmann
2012-12-28 10:10 ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
[not found] ` <20121228101013.GA15327-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2012-12-28 11:44 ` Richard Hartmann
[not found] ` <CAD77+gROUfVX=9LPZc6_jf=2Bc_iaf5FW5Z2efwESzORNrq9dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-12-29 21:51 ` Richard Hartmann
2012-12-29 21:51 ` Richard Hartmann
2012-12-30 2:00 ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
[not found] ` <20121230020008.GA24121-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2012-12-30 16:25 ` Richard Hartmann
2012-12-31 1:45 ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
2013-02-25 11:57 ` Richard Hartmann
2012-12-30 9:50 ` Borislav Petkov
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.