You are not logged in.

#1 2025-01-29 05:20:37

gerlesh
Member
Registered: 2024-10-28
Posts: 10

Hibernation not working on my Lenovo Legion Laptop

I installed Arch on my Lenovo Legion 16ARX8H laptop (Nvidia/AMD dual graphics) last September, and it has been mostly smooth sailing aside from some small issues. However, one thing that I've been struggling with the whole time was setting up hibernation/sleep.

There was a short period in September or October where hibernation worked for about a week, then it broke again, and at this point its been too long for me to remember what could have caused it. I believe there was a kernel update around that time, so there is a possibility that this is the cause. Regardless I would like some help figuring this out.

I have read through the wiki articles I felt might be related:
- https://wiki.archlinux.org/title/NVIDIA
- https://wiki.archlinux.org/title/NVIDIA_Optimus
- https://wiki.archlinux.org/title/Power_ … _hibernate
but none of the suggestions seem to resolve the issue.

When I try hibernating while connected to power, the screen turns off for a few seconds, then turns back on to the same screen (only laptop screen) and is unresponsive, with the fans blasting. The only way I've found to recover from this is holding the power button to force shutdown the laptop.

When I try sleeping while connected to power, it wakes up instantly. Checking the logs I do see the output described in the Power Management page (https://wiki.archlinux.org/title/Power_ … IA_drivers). However, I'm still not sure what to do about this, since it suggests enabling `NVreg_PreserveVideoMemoryAllocations` which I've already done.

Please let me know if there's any info you need that I haven't already added here, I'm still somewhat new to the Arch community so I may have missed something.

Last edited by gerlesh (2025-01-29 05:21:55)

Offline

#2 2025-01-29 07:49:23

ianomic
Member
Registered: 2025-01-28
Posts: 1

Re: Hibernation not working on my Lenovo Legion Laptop

hi, let's diagnose first
can you run `sudo systemctl hybrid-sleep`

Offline

#3 2025-01-29 19:35:44

gerlesh
Member
Registered: 2024-10-28
Posts: 10

Re: Hibernation not working on my Lenovo Legion Laptop

Same thing happened as what I described here:

gerlesh wrote:

When I try sleeping while connected to power, it wakes up instantly. Checking the logs I do see the output described in the Power Management page (https://wiki.archlinux.org/title/Power_ … IA_drivers). However, I'm still not sure what to do about this, since it suggests enabling `NVreg_PreserveVideoMemoryAllocations` which I've already done.

Here is an excerpt from the journal logs which seem related:

kernel: amdgpu 0000:05:00.0: amdgpu: Power consumption will be higher as BIOS has not been configured for suspend-to-idle.
        To use suspend-to-idle change the sleep mode in BIOS setup.
kernel: queueing ieee80211 work while going to suspend
kernel: NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted w>
kernel: nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend [nvidia] returns -5
kernel: nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend returns -5
kernel: nvidia 0000:01:00.0: PM: failed to suspend async: error -5
kernel: PM: Some devices failed to suspend, or early wake event detected
kernel: OOM killer enabled.
kernel: Restarting tasks ... done.
kernel: random: crng reseeded on system resumption
systemd-sleep[6271]: Failed to put system to sleep. System resumed again: Input/output error
kernel: PM: suspend exit
systemd[1]: systemd-hybrid-sleep.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: systemd-hybrid-sleep.service: Failed with result 'exit-code'.
systemd[1]: Failed to start System Hybrid Suspend+Hibernate.
systemd[1]: Dependency failed for Hybrid Suspend+Hibernate.
systemd[1]: hybrid-sleep.target: Job hybrid-sleep.target/start failed with result 'dependency'.

Offline

#4 2025-02-15 02:30:43

gerlesh
Member
Registered: 2024-10-28
Posts: 10

Re: Hibernation not working on my Lenovo Legion Laptop

I found this other issue which may be related to what I'm experiencing on the Mint forums.

https://forums.linuxmint.com/viewtopic.php?t=398551

I'm not seeing the same logs in the system journal as they show here, but the description of the issue is the same. They resolved it by disabling the discrete graphics card, but I would like to avoid this if possible, as I do use this laptop for gaming.

The other solution they suggest might work is downgrading the kernel, though I feel like there is likely a more "correct" way of going about it.

Offline

#5 2025-07-15 20:29:36

gerlesh
Member
Registered: 2024-10-28
Posts: 10

Re: Hibernation not working on my Lenovo Legion Laptop

Slightly more progress made:

acpi_osi="!Windows 2015"

allows suspend and hibernation to work as expected. However, it also prevents my trackpad from being detected for some reason. I've tried all of the troubleshooting tips in the wiki's Laptop/Touchpad section and I'm not super sure where to go from here.

Without this parameter, libinput shows

Device:                  ELAN06FA:00 04F3:327E Touchpad

but this device is not detected at all with the parameter set, even after following the wiki instructions.

Last edited by gerlesh (2025-07-15 20:37:55)

Offline

#6 2025-07-15 22:05:06

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,141

Re: Hibernation not working on my Lenovo Legion Laptop

kernel: NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted w>
kernel: nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend [nvidia] returns -5
kernel: nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend returns -5
kernel: nvidia 0000:01:00.0: PM: failed to suspend async: error -5
kernel: PM: Some devices failed to suspend, or early wake event detected

Please use [code][/code] tags, not "quote" tags and also don't copy and paste out of the pager (it truncates lines "w>")

Then make sure to enable the relevant userspace services, https://wiki.archlinux.org/title/NVIDIA … er_suspend
See https://bbs.archlinux.org/viewtopic.php?id=285508 and post an updated journal covering a failed sleep attempt, eg for the current boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

Board footer

Powered by FluxBB