History

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

Kai-Heng Feng committed 6 years ago

Commit d60cd061 parent f8394f21 file · +2 −0Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/reboot.c+2−0
@@ -244,6 +244,8 @@ void migrate_to_reboot_cpu(void) · 243 unmodified lines
244void kernel_restart(char *cmd)244void kernel_restart(char *cmd)
245{245{
246 kernel_restart_prepare(cmd);246 kernel_restart_prepare(cmd);
247 if (pm_power_off_prepare)
248 pm_power_off_prepare();
247 migrate_to_reboot_cpu();249 migrate_to_reboot_cpu();
248 syscore_shutdown();250 syscore_shutdown();
249 if (!cmd)251 if (!cmd)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t