You are not logged in.
So this issue has been happening for over a week (even with updates). When putting my Lenovo Ideapad 5 laptop to sleep by either, leaving it, closing the lid, pressing the suspend button, or typing systemctl suspend in the terminal, it always boots up from nothing, with no errors popping up. I have no idea on where to start for solving this issue, but I appreciate all the help.
Neofetch: https://imgur.com/a/rYRPRM3
Offline
I think this page can help you to troubleshoot your problem.
Also to restore state after suspend which powers machine off (hibernate) you need to use swap space.
You can check if use have it by:
swapon --show or
free -h Offline
This is my output for those commands:
┌──(luca@lenovo-ideapad-14are05)-[~]
└─$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 16G 0B 100
┌──(luca@lenovo-ideapad-14are05)-[~]
└─$ free -h
total used free shared buff/cache available
Mem: 14Gi 6.9Gi 6.0Gi 320Mi 2.7Gi 8.0Gi
Swap: 15Gi 0B 15Gi
Haven't done anything but update my lapotp.
Offline
If it isn't swap, maybe you have just unconfigured initramfs (check for 'resume' hook). https://wiki.archlinux.org/title/Power_ … _initramfs
I would also check for status of these services for any warnings/errors: *link*
systemctl status systemd-hibernate-resume.service
systemctl status systemd-hibernate-clear.serviceIf there is output something like below - you need just to add hook to initramfs and regenerate them:
Assertion failed for Resume from hibernation
To regenerate after you added the 'resume' hook:
mkinitcpio -PI also had problems with hibernation because of no resume hook and laptop got rebooted after
systemctl hibernateOffline
Added resume to the initramfs since for some reason it wasn't there. Didn't change anything. Checking the services. I got the following.
┌──(luca@lenovo-ideapad-14are05)-[~]
└─$ systemctl status systemd-hibernate-resume.service
○ systemd-hibernate-resume.service - Resume from hibernation
Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate-resume.service; static)
Active: inactive (dead)
Docs: man:systemd-hibernate-resume.service(8)
┌──(luca@lenovo-ideapad-14are05)-[~]
└─$ systemctl status systemd-hibernate-clear.service
○ systemd-hibernate-clear.service - Clear Stale Hibernate Storage Info
Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate-clear.service; static)
Active: inactive (dead)
Condition: start condition unmet at Tue 2024-09-24 18:47:18 PDT; 4min 28s ago
└─ ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d8760>
Docs: man:systemd-hibernate-clear.service(8)
Sep 24 18:47:18 lenovo-ideapad-14are05 systemd[1]: Clear Stale Hibernate Storage Info was skipped because of a>
...skipping...
○ systemd-hibernate-clear.service - Clear Stale Hibernate Storage Info
Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate-clear.service; static)
Active: inactive (dead)
Condition: start condition unmet at Tue 2024-09-24 18:47:18 PDT; 4min 28s ago
└─ ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d8760>
Docs: man:systemd-hibernate-clear.service(8)
Sep 24 18:47:18 lenovo-ideapad-14are05 systemd[1]: Clear Stale Hibernate Storage Info was skipped because of a>Offline
Sep 24 18:47:18 lenovo-ideapad-14are05 systemd[1]: Clear Stale Hibernate Storage Info was skipped because of a>
...skipping...
This seems like efivars don't see your swap. The output is cutted, it would be good to see logs.
sudo journalctl -b | grep hibernateDid you regenerated initramfs?
sudo mkinitcpio -PBut which one type of suspend do you want to use? https://wiki.archlinux.org/title/Power_ … hibernate#
If you want only classic suspend to RAM after closing the lid - you don't need configure or fix hibernation and even 'resume' hook.
There you can check available suspend methods for you hardware https://wiki.archlinux.org/title/Power_ … end_method
cat /sys/power/mem_sleepIf you want also to use hibernate (fully turning off laptop with saved state) you need to get to know why it doesn't let you to use it. Check journalctl with command above.
Also I saw your swap partition is zram type. And after update config maybe got deleted, idk. https://wiki.archlinux.org/title/Power_ … _with_zram
https://wiki.archlinux.org/title/Zram
Offline
sudo mkinitcpio -PDidn't seem to change anything.
sudo journalctl -b | grep hibernateOutputs nothing.
cat /sys/power/mem_sleepReturns [s2idle]
Offline
So I have able to fix the issue by changing from kernel from linux-zen to linux-lts. I had this problem like a 2 years ago with linux-lts and switching to zen fixed it. I guess its the other way around now. If someone can change this thread to solved to tell me how, I would appreciate it.
Last edited by godpraisearch (2024-10-04 00:21:20)
Offline