I believe the disk state should not be there. It’s only there if you enable the hibernate or sleep then hibernate. By default I believe Fedora didn’t enable the hibernate. Also if we’re using default partition layout, the physical swap will not present and Fedora only using zram generator as swap.
Maybe when your system go to sleep after a while if there no trigger to wake up it will go to hibernate state. Since by default there’s no physical swap, when it’s wake up it failed to load saved session.
Could you give the result of cat /etc/systemd/sleep.conf and lsblk?
Your sleep.conf look ok. Other things we can check are systemctl status hibernate.target and systemctl status hybrid-sleep.target. Both of them should be inactive.
No, above only checking the status. I believe it will not resolve your problem. I mark it as unresolve again.
You need to run sudo systemctl mask hibernate.target hybrid-sleep.target and then enable secure boot on your BIOS to prevent any app on your system using disk state in /sys/power/state.
Then just use it as usual. If after some days the problem didn’t comeback, please back again to mark it as resolve.
Ok, I ran sudo systemctl mask hibernate.target hybrid-sleep.target, but after I select secure boot in BIOS, the computer does not boot. I recall when I remove Windows partitions, the legacy boot was left there.
I see. You could disable the secure boot then. Hopefully by masking only hibernate.target and hybrid-sleep.target are enough to prevent any apps to activate hibernate or hybrid-sleep by altering the disk state in your /sys/power/state.
Let see for some times. Hopefully the problem gone.
Update:
Maybe if you want, you could also change /etc/systemd/sleep.conf.
Running Fedora 35 with latest kernel 5.15, Wayland and Gnome 41.2. All commands suggested above (cat /sys/power/mem_sleep, cat /sys/power/mem_sleep, sudo grubby --info=ALL) result in same results.
Followed all above steps:
secure boot on (no problem with laptop not being able to boot)
run “sudo systemctl mask hibernate.target hybrid-sleep.target”
edited “/etc/systemd/sleep.conf” as suggested above
Suspend still does not work.
Temporary solution for me is to downgrade kernel to 5.14.10. Only doing this makes Suspend to work every time.
It is a laptop without an external monitor attached.
Never sent the sos report before.
How can I send it securely? There are two files (one tar, the other checksum file).
I enabled Caffeine to disable suspend.
I realize the difference between hibernate and suspend in a way the system manages swap.
I use a low memory (4GB) laptop.
I ran
/sbin/zramctl
Step 1. The system has been running for a few days without a restart.
I have lots of browser tabs open and other apps running in the background (DejaDup).
It shows a 2.9:1 ratio of ZRAM compression (Data 1.7G / Compression 587M). The compression ratio is close to the range of 2:1.
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo-rle 3.6G 1.7G 587M 614.7M 2 [SWAP]
Maybe let say your computer failed to waking up, the next boot (if you end up with hard reseting) you could save the journal with journalctl -b -1 > journal.txt (-b -1 option for previous boot and -b 0 for current boot). Then post the journal to pastebin.com and share the link here. Maybe someone can help.