Troubleshooting a desktop that does not go into sleep mode/suspend
Hello all, for a few weeks/months now, my computer has stopped going into suspend mode. Here is what happens when putting it to sleep (using GNOME's power menu) or using systemctl suspend:
Display turns off, peripherals turn off (keyboard lights off etc), fans spin up before sleep as usual
Fans go back to idle speed, computer stays on
Have to press the keyboard, wake the display up and go in the power menu again to suspend it (from the lock screen), and it works every time like this.
I have no idea what could be preventing suspend and what I could find online did not really help a lot. I don't think it is a USB device because I tried unplugging most of them except my mouse or my keyboard and it still did not work, and the second time on the lock screen it always suspends like intended
Distro: Fedora 40
DE: Gnome 46
GPU: NVIDIA GTX 1080Ti (Wayland)
CPU: Intel 10850K
MB: Gigabyte Z590 Gaming X
(everything is up to date)
Hello, I'm far from an expert but I had a similar issue on my desktop, running mint and an Nvidia GPU. After looking at a lot of places for an answer one that did work for me was below
Ust/bin/Nvidia_sleep.sh. (off the top of my head it is something like this, can confirm later if you can't find it.)
At the top put in "exit 0"
See if it works for you. But it seems when I get an update it does at times get overwritten.
Hmm, it's definitely doing something, so it could be worth investigating, but instead of going to sleep mode it simply turns off the monitor and on its own 1s later turns back on
I'm running Manjaro and I was having this exact problem for several weeks, up until about two weeks ago when a new update fixed everything. I would just not worry about it until your next major OS update.