You are not logged in.
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
hi, let's diagnose first
can you run `sudo systemctl hybrid-sleep`
Offline
Same thing happened as what I described here:
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
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