diff options
author | Richard Hartmann <richih.mailinglist@gmail.com> | 2012-12-29 16:51:49 -0500 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-02-27 08:30:41 -0500 |
commit | 6f62bc3e8d2410b538bde9677552270055f8595a (patch) | |
tree | 509dbc4ef584d713d2e30ee3ac2e4c79a2c4ae26 /drivers/platform | |
parent | e65a624b86241405b51cadc8e36944966b8c36b7 (diff) |
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@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>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 22d893654d28..be9379923a99 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -209,9 +209,8 @@ enum tpacpi_hkey_event_t { | |||
209 | TP_HKEY_EV_ALARM_SENSOR_XHOT = 0x6022, /* sensor critically hot */ | 209 | TP_HKEY_EV_ALARM_SENSOR_XHOT = 0x6022, /* sensor critically hot */ |
210 | TP_HKEY_EV_THM_TABLE_CHANGED = 0x6030, /* thermal table changed */ | 210 | TP_HKEY_EV_THM_TABLE_CHANGED = 0x6030, /* thermal table changed */ |
211 | 211 | ||
212 | TP_HKEY_EV_UNK_6040 = 0x6040, /* Related to AC change? | 212 | /* AC-related events */ |
213 | some sort of APM hint, | 213 | TP_HKEY_EV_AC_CHANGED = 0x6040, /* AC status changed */ |
214 | W520 */ | ||
215 | 214 | ||
216 | /* Misc */ | 215 | /* Misc */ |
217 | TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ | 216 | TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */ |
@@ -3629,6 +3628,12 @@ static bool hotkey_notify_6xxx(const u32 hkey, | |||
3629 | "a sensor reports something is extremely hot!\n"); | 3628 | "a sensor reports something is extremely hot!\n"); |
3630 | /* recommended action: immediate sleep/hibernate */ | 3629 | /* recommended action: immediate sleep/hibernate */ |
3631 | break; | 3630 | break; |
3631 | case TP_HKEY_EV_AC_CHANGED: | ||
3632 | /* X120e, X121e, X220, X220i, X220t, X230, T420, T420s, W520: | ||
3633 | * AC status changed; can be triggered by plugging or | ||
3634 | * unplugging AC adapter, docking or undocking. */ | ||
3635 | |||
3636 | /* fallthrough */ | ||
3632 | 3637 | ||
3633 | case TP_HKEY_EV_KEY_NUMLOCK: | 3638 | case TP_HKEY_EV_KEY_NUMLOCK: |
3634 | case TP_HKEY_EV_KEY_FN: | 3639 | case TP_HKEY_EV_KEY_FN: |