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

Unified · Split

kernel/reboot.c+2−0
@@ -244,6 +244,8 @@ void migrate_to_reboot_cpu(void) · 243 unmodified lines
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)

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