Skip to content

Commit d60cd06

Browse files
khfengrafaeljw
authored andcommitted
PM: ACPI: reboot: Use S5 for reboot
After reboot, it's not possible to use hotkeys to enter BIOS setup and boot menu on some HP laptops. BIOS folks identified the root cause is the missing _PTS call, and BIOS is expecting _PTS to do proper reset. Using S5 for reboot is default behavior under Windows, "A full shutdown (S5) occurs when a system restart is requested" [1], so let's do the same here. [1] https://docs.microsoft.com/en-us/windows/win32/power/system-power-states Signed-off-by: Kai-Heng Feng <[email protected]> [ rjw: Subject edit ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent f8394f2 commit d60cd06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/reboot.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ void migrate_to_reboot_cpu(void)
244244
void kernel_restart(char *cmd)
245245
{
246246
kernel_restart_prepare(cmd);
247+
if (pm_power_off_prepare)
248+
pm_power_off_prepare();
247249
migrate_to_reboot_cpu();
248250
syscore_shutdown();
249251
if (!cmd)

0 commit comments

Comments
 (0)