Yesterday I had to force a reboot on my Fedora 42 workstation (MATE desktop) for the first time. I do have nVidia card but its older card and works very well with the stock open source driver (I don’t game).
I didn’t post yesterday after it happened because I think I know what caused it, and I just wanted to wait to make sure it didn’t happen again.
Way back in the dark ages when dinosaurs still roamed the earth and CentOS 7.1 was new, I built this system. Two SSDs (one for distro / and one for LFS /) and two platter drives (one for /home and one for misc stuff like /usr/local and /opt/teXlive)
That misc stuff drive has a 64GB swap partition. When I installed Fedora 42, I forgot to add the swap partition to /etc/fstab and yesterday noticed, so I added it. The Fedora 42 /etc/fstab file has a warning to run systemctl daemon-reload after editing it and I did that and was planning to reboot but got distracted first by life and did not reboot and forgot to.
Hours later, after taking a nap, the system would not come back from from sleep. When that has happened before (not sure if ever happened in F42) turning a monitor off and on fixes it—I get the login screen. No such luck. However the disk activity light on my PC cash was pulsating like mad. This continued for quite some time until I forced a reboot.
When it rebooted, all works well, my swap partition is being used, and the issue did not repeat.
I suspect that the command systemctl daemon-reload caused systemd to think the swap partition had been activated when it hadn’t actually been activated yet, I never ran swapon or rebooted, and I suspect that when the system then went to sleep it tried to use the swap partition to write memory to disk but it couldn’t because the swap partition had never been activated.
Anyway, if that sounds plausible to the gurus, maybe there’s a bug in the power management software where it fails to verify that a swap partition in /etc/fstab is actually active before it tries to use it. It should have continued to use the swap file instead of the swap partition—assuming that’s what actually happened.
Today, no problems whatsoever waking up from sleep.