diff options
author | joshua stein <jcs@cvs.openbsd.org> | 2008-09-22 21:35:49 +0000 |
---|---|---|
committer | joshua stein <jcs@cvs.openbsd.org> | 2008-09-22 21:35:49 +0000 |
commit | 8a68ca413b39f6ea18c3edf66166d9a31999c165 (patch) | |
tree | e922a2c62b6f69c6aeca668eca7b13ebaa1c0456 | |
parent | eb741e994350a06fe0686f53c95a7536a745d409 (diff) |
ignore a type 6 event seen on my x200 when the ac adapter is
plugged in and removed
-rw-r--r-- | sys/dev/acpi/acpithinkpad.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpithinkpad.c b/sys/dev/acpi/acpithinkpad.c index 26801a65c2e..bc2500bed14 100644 --- a/sys/dev/acpi/acpithinkpad.c +++ b/sys/dev/acpi/acpithinkpad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpithinkpad.c,v 1.11 2008/06/11 04:42:09 marco Exp $ */ +/* $OpenBSD: acpithinkpad.c,v 1.12 2008/09/22 21:35:48 jcs Exp $ */ /* * Copyright (c) 2008 joshua stein <jcs@openbsd.org> * @@ -69,6 +69,9 @@ #define THINKPAD_TABLET_PEN_INSERTED 0x00b #define THINKPAD_TABLET_PEN_REMOVED 0x00c +/* type 6 events */ +#define THINKPAD_POWER_CHANGED 0x030 + /* type 7 events */ #define THINKPAD_SWITCH_WIRELESS 0x000 @@ -274,6 +277,13 @@ thinkpad_hotkey(struct aml_node *node, int notify_type, void *arg) break; } break; + case 6: + switch (event) { + case THINKPAD_POWER_CHANGED: + handled = 1; + break; + } + break; case 7: switch (event) { case THINKPAD_SWITCH_WIRELESS: |