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

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: asus-armoury: add panel_hd_mode attribute

Add panel_hd_mode to toggle the panel mode between single and high
definition modes.

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-4-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
628cb03b f99eb098

+6 -1
+5 -1
drivers/platform/x86/asus-armoury.c
··· 96 96 97 97 static bool asus_bios_requires_reboot(struct kobj_attribute *attr) 98 98 { 99 - return !strcmp(attr->attr.name, "gpu_mux_mode"); 99 + return !strcmp(attr->attr.name, "gpu_mux_mode") || 100 + !strcmp(attr->attr.name, "panel_hd_mode"); 100 101 } 101 102 102 103 /** ··· 608 607 "Set MCU powersaving mode"); 609 608 ASUS_ATTR_GROUP_BOOL_RW(panel_od, "panel_overdrive", ASUS_WMI_DEVID_PANEL_OD, 610 609 "Set the panel refresh overdrive"); 610 + ASUS_ATTR_GROUP_BOOL_RW(panel_hd_mode, "panel_hd_mode", ASUS_WMI_DEVID_PANEL_HD, 611 + "Set the panel HD mode to UHD<0> or FHD<1>"); 611 612 ASUS_ATTR_GROUP_BOOL_RO(egpu_connected, "egpu_connected", ASUS_WMI_DEVID_EGPU_CONNECTED, 612 613 "Show the eGPU connection status"); 613 614 ··· 623 620 { &boot_sound_attr_group, ASUS_WMI_DEVID_BOOT_SOUND }, 624 621 { &mcu_powersave_attr_group, ASUS_WMI_DEVID_MCU_POWERSAVE }, 625 622 { &panel_od_attr_group, ASUS_WMI_DEVID_PANEL_OD }, 623 + { &panel_hd_mode_attr_group, ASUS_WMI_DEVID_PANEL_HD }, 626 624 }; 627 625 628 626 static int asus_fw_attr_add(void)
+1
include/linux/platform_data/x86/asus-wmi.h
··· 75 75 #define ASUS_WMI_DEVID_THROTTLE_THERMAL_POLICY_VIVO 0x00110019 76 76 77 77 /* Misc */ 78 + #define ASUS_WMI_DEVID_PANEL_HD 0x0005001C 78 79 #define ASUS_WMI_DEVID_PANEL_OD 0x00050019 79 80 #define ASUS_WMI_DEVID_CAMERA 0x00060013 80 81 #define ASUS_WMI_DEVID_LID_FLIP 0x00060062