From: deraadt Date: Sat, 13 Dec 2014 05:29:50 +0000 (+0000) Subject: ThinkPad Edge E130, event 0x6060 is supposed to indicate toggle X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f84de5a31b0f68c0c4b03cb598d601b2b6033485;p=openbsd ThinkPad Edge E130, event 0x6060 is supposed to indicate toggle between default Fn and media Fn modes. We don't do that, so ignore the toggle. From Frederic Nowak --- diff --git a/sys/dev/acpi/acpithinkpad.c b/sys/dev/acpi/acpithinkpad.c index c190ecc380d..cf4d432e899 100644 --- a/sys/dev/acpi/acpithinkpad.c +++ b/sys/dev/acpi/acpithinkpad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpithinkpad.c,v 1.41 2014/10/08 14:30:32 dcoppa Exp $ */ +/* $OpenBSD: acpithinkpad.c,v 1.42 2014/12/13 05:29:50 deraadt Exp $ */ /* * Copyright (c) 2008 joshua stein * @@ -93,6 +93,7 @@ #define THINKPAD_THERMAL_TABLE_CHANGED 0x6030 #define THINKPAD_POWER_CHANGED 0x6040 #define THINKPAD_BACKLIGHT_CHANGED 0x6050 +#define THINKPAD_BUTTON_FN_TOGGLE 0x6060 #define THINKPAD_TABLET_SCREEN_CHANGED 0x60c0 #define THINKPAD_SWITCH_WIRELESS 0x7000 @@ -373,6 +374,7 @@ thinkpad_hotkey(struct aml_node *node, int notify_type, void *arg) case THINKPAD_BUTTON_FN_F1: case THINKPAD_BUTTON_FN_F6: case THINKPAD_BUTTON_FN_SPACE: + case THINKPAD_BUTTON_FN_TOGGLE: case THINKPAD_BUTTON_LOCK_SCREEN: case THINKPAD_BUTTON_POINTER_SWITCH: case THINKPAD_BUTTON_THINKLIGHT: