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?
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.
Maybe if you want, you could also change /etc/systemd/sleep.conf.
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.
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]
Step 2. After a restart
Data 4K / Compression 80B
I’ll watch it from time to time and close the browser tabs when finished working.
I withheld creating a bug report.
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.