The patch titled Subject: drivers/platform/x86/thinkpad_acpi.c: handle HKEY event 0x6040 has been added to the -mm tree. Its filename is drivers-platform-x86-thinkpad_acpic-handle-hkey-event-0x6040.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Richard Hartmann <richih.mailinglist@xxxxxxxxx> Subject: drivers/platform/x86/thinkpad_acpi.c: handle HKEY event 0x6040 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@xxxxxxxxxxxxxxxxxxxxx of people who saw this event when either plugging or unplugging the AC adapter or docking or undocking their laptop. X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ@xxxxxxxxxxxxxx X121e - 20120817143459.GB3462@xxxxxxxxxxxxxxx X220 - Confirmed by Richard Hartmann X220i - 4F406274.7070807@xxxxxxxxx X220t - 4F489F5B.9040705@xxxxxxxxxxxxxxx X230 - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w@xxxxxxxxxxxxxx T420 - 9c848ee30b006737d0534d906bab0cf6@xxxxxxxxxxxxxxxxxx T420s - 20120608080824.GS25324@xxxxxxxxxxxxx W520 - 20121008181050.GF2549@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Signed-off-by: Richard Hartmann <richih.mailinglist@xxxxxxxxx> Acked-by: Henrique de Moraes Holschuh <hmh@xxxxxxxxxx> Acked-by: Borislav Petkov <bp@xxxxxxxxx> Cc: Matthew Garrett <mjg@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/platform/x86/thinkpad_acpi.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff -puN drivers/platform/x86/thinkpad_acpi.c~drivers-platform-x86-thinkpad_acpic-handle-hkey-event-0x6040 drivers/platform/x86/thinkpad_acpi.c --- a/drivers/platform/x86/thinkpad_acpi.c~drivers-platform-x86-thinkpad_acpic-handle-hkey-event-0x6040 +++ a/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 "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: _ Patches currently in -mm which might be from richih.mailinglist@xxxxxxxxx are drivers-platform-x86-thinkpad_acpic-handle-hkey-event-0x6040.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html