Lines Matching +full:toggle +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/input/sparse-keymap.h>
19 #include "asus-wmi.h"
21 #define ASUS_NB_WMI_FILE "asus-nb-wmi"
27 #define ASUS_NB_WMI_EVENT_GUID "0B3CBB35-E3C2-45ED-91C2-4C5A6D195D1C"
40 static int wapf = -1;
44 static int tablet_mode_sw = -1;
46 MODULE_PARM_DESC(tablet_mode_sw, "Tablet mode detect: -1:auto 0:disable 1:kbd-dock 2:lid-flip 3:lid
82 * and have duplicate events(ACPI and WMI) for display toggle
126 pr_info("Identified laptop model '%s'\n", dmi->ident); in dmi_matched()
127 quirks = dmi->driver_data; in dmi_matched()
486 driver->quirks = quirks; in asus_nb_wmi_quirks()
487 driver->panel_power = FB_BLANK_UNBLANK; in asus_nb_wmi_quirks()
490 if (wapf != -1) in asus_nb_wmi_quirks()
491 quirks->wapf = wapf; in asus_nb_wmi_quirks()
493 wapf = quirks->wapf; in asus_nb_wmi_quirks()
495 if (tablet_mode_sw != -1) in asus_nb_wmi_quirks()
496 quirks->tablet_switch_mode = tablet_mode_sw; in asus_nb_wmi_quirks()
498 if (quirks->i8042_filter) { in asus_nb_wmi_quirks()
499 ret = i8042_install_filter(quirks->i8042_filter); in asus_nb_wmi_quirks()
524 { KE_IGNORE, 0x57, }, /* Battery mode */
525 { KE_IGNORE, 0x58, }, /* AC mode */
527 { KE_KEY, 0x5D, { KEY_WLAN } }, /* Wireless console Toggle */
540 { KE_KEY, 0x71, { KEY_F13 } }, /* General-purpose button */
542 { KE_KEY, 0x7a, { KEY_ALS_TOGGLE } }, /* Ambient Light Sensor Toggle */
548 { KE_KEY, 0x88, { KEY_RFKILL } }, /* Radio Toggle Key */
549 { KE_KEY, 0x8A, { KEY_PROG1 } }, /* Color enhancement mode */
559 { KE_KEY, 0x99, { KEY_PHONE } }, /* Conflicts with fan mode switch */
568 { KE_KEY, 0xAE, { KEY_FN_F5 } }, /* Fn+F5 fan mode on 2020+ */