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
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -244,6 +244,8 @@ void migrate_to_reboot_cpu(void) · 243 unmodified lines | |||
| 244 | void kernel_restart(char *cmd) | 244 | void 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) |