Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: asus-armoury: add screen auto-brightness toggle

Add screen_auto_brightness toggle supported on some laptops.

Signed-off-by: Denis Benato <denis.benato@linux.dev>
Signed-off-by: Luke D. Jones <luke@ljones.dev>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://patch.msgid.link/20251102215319.3126879-7-denis.benato@linux.dev
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Luke D. Jones and committed by
Ilpo Järvinen
7725a2dc 9c7dacf5

+5
+4
drivers/platform/x86/asus-armoury.c
··· 707 707 "Set the panel refresh overdrive"); 708 708 ASUS_ATTR_GROUP_BOOL_RW(panel_hd_mode, "panel_hd_mode", ASUS_WMI_DEVID_PANEL_HD, 709 709 "Set the panel HD mode to UHD<0> or FHD<1>"); 710 + ASUS_ATTR_GROUP_BOOL_RW(screen_auto_brightness, "screen_auto_brightness", 711 + ASUS_WMI_DEVID_SCREEN_AUTO_BRIGHTNESS, 712 + "Set the panel brightness to Off<0> or On<1>"); 710 713 ASUS_ATTR_GROUP_BOOL_RO(egpu_connected, "egpu_connected", ASUS_WMI_DEVID_EGPU_CONNECTED, 711 714 "Show the eGPU connection status"); 712 715 ··· 725 722 { &mcu_powersave_attr_group, ASUS_WMI_DEVID_MCU_POWERSAVE }, 726 723 { &panel_od_attr_group, ASUS_WMI_DEVID_PANEL_OD }, 727 724 { &panel_hd_mode_attr_group, ASUS_WMI_DEVID_PANEL_HD }, 725 + { &screen_auto_brightness_attr_group, ASUS_WMI_DEVID_SCREEN_AUTO_BRIGHTNESS }, 728 726 }; 729 727 730 728 static int asus_fw_attr_add(void)
+1
include/linux/platform_data/x86/asus-wmi.h
··· 82 82 #define ASUS_WMI_DEVID_LID_FLIP_ROG 0x00060077 83 83 #define ASUS_WMI_DEVID_MINI_LED_MODE 0x0005001E 84 84 #define ASUS_WMI_DEVID_MINI_LED_MODE2 0x0005002E 85 + #define ASUS_WMI_DEVID_SCREEN_AUTO_BRIGHTNESS 0x0005002A 85 86 86 87 /* Storage */ 87 88 #define ASUS_WMI_DEVID_CARDREADER 0x00080013