Hardware: Pavilion 15-eh1000 (Ryzen 5000) Software: Ubuntu 21.10 (But should work on all recent Debian / Ubuntu versions)
Fixes the issue that the HP Pavilion 15-eh1000 (Ryzen 5000) doesnt go into S3 sleep under linux.
By default only S2Idle is working under linux on this laptop, which consumes way too much power (around 50% battery overnight) and with the latest kernels (5.13+) it even doenst come back from the S2Idle sleep and just hangs with a blank screen with a forced reboot as only option.
Issue: The HP Pavilion 15-eh1000 for some strange reason doent support S3 sleep. This script patches the ACPI table and adds the S3 mode.
Patch, basically add this block to the dsdt
- Name (_S3, Package (0x04) // S3: S3 System State
- {
-
0x03, -
0x03, -
Zero, -
Zero - })
Somehow all USB controllers are not responding anymore after wakeup from S3, so a small script in /lib/systemd/system-sleep/ fixes this by unbinding and binding the USB devices
Also adds mem_sleep_default=deep and pcie_aspm=force to grub (pcie_aspm=force is not needed for the S3 fix, but disabled without a good reason)
Update script is added to /etc/kernel/postinst.d/ so that it updates initrd again after a kernel update
Hardware: Zenbook UM3402YAR_UM3402YA (Ryzen 7000) Software: Ubuntu 24.04 (But should work on all recent Debian / Ubuntu versions)
Fixes the issue that the Zenbook UM3402YAR_UM3402YA (Ryzen 7000) doesnt go into S3 sleep under linux.
By default only S2Idle is working under linux on this laptop, which consumes way too much power (around 50% battery overnight) and with the latest kernels it even doenst come back from the S2Idle sleep and just hangs with a blank screen with a forced reboot as only option.
Issue: The Zenbook UM3402YAR_UM3402YA (Ryzen 7000) for some strange reason doent support S3 sleep. This script patches the ACPI table and adds the S3 mode.
Patch, basically add this block to the dsdt
- Name (_S3, Package (0x04) // S3: S3 System State
- {
-
0x03, -
0x03, -
Zero, -
Zero - })
Somehow all USB controllers are not responding anymore after wakeup from S3, so a small script in /lib/systemd/system-sleep/ fixes this by unbinding and binding the USB devices
Also adds mem_sleep_default=deep and pcie_aspm=force to grub (pcie_aspm=force is not needed for the S3 fix, but disabled without a good reason)
Update script is added to /etc/kernel/postinst.d/ so that it updates initrd again after a kernel update