ACPI: PM: s2idle: Invert Microsoft UUID entry and exit
PATCH 1/1 ACPI: PM: s2idle: Invert Microsoft UUID entry and exit
It was reported by a user with a Dell m15 R5 (5800H) that the keyboard backlight was turning on when entering suspend and turning off when exiting (the opposite of how it should be).
The user bisected it back to commit 5dbf50997578 ("ACPI: PM:
s2idle: Add support for new Microsoft UUID"). Previous to that commit the LEDs didn't turn off at all. Confirming in the spec, these were reversed when introduced.
Fix them to match the spec.
--- drivers/acpi/x86/s2idle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/x86/s2idle.c +2 -2
@@ -452,7 +452,7 @@ int acpi_s2idle_prepare_late(void)if (lps0_dsm_func_mask_microsoft >0 ) {acpi_sleep_run_lps0_dsm (ACPI_LPS0_SCREEN_OFF , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft); -acpi_sleep_run_lps0_dsm (ACPI_LPS0_MS_EXIT , +acpi_sleep_run_lps0_dsm (ACPI_LPS0_MS_ENTRY , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);acpi_sleep_run_lps0_dsm (ACPI_LPS0_ENTRY , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);
@@ -479,7 +479,7 @@ void acpi_s2idle_restore_early(void)if (lps0_dsm_func_mask_microsoft >0 ) {acpi_sleep_run_lps0_dsm (ACPI_LPS0_EXIT , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft); -acpi_sleep_run_lps0_dsm (ACPI_LPS0_MS_ENTRY , +acpi_sleep_run_lps0_dsm (ACPI_LPS0_MS_EXIT , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);acpi_sleep_run_lps0_dsm (ACPI_LPS0_SCREEN_ON , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);
Signature · 1 line
2.25.1
Quoted 33 lines · Mario Limonciello
It was reported by a user with a Dell m15 R5 (5800H) that the keyboard backlight was turning on when entering suspend and turning off when exiting (the opposite of how it should be).
The user bisected it back to commit
5dbf50997578("ACPI: PM:
s2idle: Add support for new Microsoft UUID"). Previous to that commit the LEDs didn't turn off at all. Confirming in the spec, these were reversed when introduced.Fix them to match the spec.
Fixes 5dbf50997578 ("ACPI: PM: s2idle: Add support for new Microsoft UUID")Signed-off-by Mario Limonciello <[email protected]>--- drivers/acpi/x86/s2idle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/acpi/x86/s2idle.c +1
-1@@ -452,7 +452,7 @@ int acpi_s2idle_prepare_late(void)if (lps0_dsm_func_mask_microsoft >0 ) {acpi_sleep_run_lps0_dsm (ACPI_LPS0_SCREEN_OFF , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft); -acpi_sleep_run_lps0_dsm (ACPI_LPS0_MS_EXIT , +acpi_sleep_run_lps0_dsm (ACPI_LPS0_MS_ENTRY , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);acpi_sleep_run_lps0_dsm (ACPI_LPS0_ENTRY , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);
drivers/acpi/x86/s2idle.c void acpi_s2idle_restore_early(void)
Quoted 9 lines
drivers/acpi/x86/s2idle.c +1
-2@@ -479,7 +479,7 @@ void acpi_s2idle_restore_early(void)if (lps0_dsm_func_mask_microsoft >0 ) {acpi_sleep_run_lps0_dsm (ACPI_LPS0_EXIT , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft); -acpi_sleep_run_lps0_dsm (ACPI_LPS0_MS_ENTRY , +acpi_sleep_run_lps0_dsm (ACPI_LPS0_MS_EXIT , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);acpi_sleep_run_lps0_dsm (ACPI_LPS0_SCREEN_ON , lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft); --
Applied as 5.14-rc material, thanks!