I'm having trouble sleeping, wake ups are frozen

I have searched these forums and many other stack exchange, ask ubuntu, arch wiki.

If I issue the sleep command in sys power, I get a permission denied, even with sudo. As logged in via super user root shell, no output or sleep happens.

I would like to get this sorted out as I’m sure it is a common issue, and once the solution is found, this forum will also be in the mix of visitors searching for a solutoin for a pc that needs a nap.

My system shows

s2idle deep

I am on kernel 6.3, and have usually had issues with sleep on Linux so have just now started trying it again.

I realized that the opensource nouveau software is part of this issue, so I have install the proprietary nvidia software on fedora. Now the issue is the display will not wake from sleep, and the system still freezes. The keyboard lights do not respond either.

I have tried adding

acpi_osi=“Linux” and “Windows” with no difference. noapic and acpi=off also do not help.

Most helpful detail so far is abrt reporting

“Unexpected system error”

Name: kernel-core

Reported: cannot be

A kernel problem occured, but your kernel has been tainted. (flags=POE). Explanation:
P - Proprietary module has been loaded
O - Out of tree " "
E - Unsigned " "
Kernel maintainers are unable to diagnose tained reports. Tainted modules:
nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia.

Edit: Sleep turns off the PC, but on resume, the desktop is frozen. Switching tty and ctrl alt del also gives issues and if I try to log in via console again, the system freezes after about a minute

There are some specific steps reccomended to get suspend working:

From Howto/NVIDIA - RPM Fusion

Note sure if you’re on a EL flavor distro but the part about the tmp path below may be of interest to you.

sudo dnf install xorg-x11-drv-nvidia-power
sudo systemctl enable nvidia-{suspend,resume,hibernate}
# Optional: tweak "nvidia options NVreg_TemporaryFilePath=/var/tmp" from /etc/modprobe.d/nvidia.conf as needed if you have issue with /tmp as tmpfs with nvidia suspend )

I have tried with that service disabled and enabled. I do not have the file in the modprobe folder, nor yet sure if I should change it or how to see what is written to it.

When I resume from sleep, the screen is given a signal to turn on but says no signal and remains asleep. Also, I can twmporairly send something with the keyboard, but not sure what, because it doesn’t look like I can change tty console to do a reboot, although i/o led lihht blinks when some ctrl alt + F# keys are pressed but I can’t seem to log in or enter password. Finally, after about a minute, all keyboard activity seems to stop, with num lock etc not activating the led lights, forcing a power off by switch.

For hibernate, it acts like a normal shutdown, with no clear imdication of loading from a swap save. I have my swap partition in fstab and grub, with the resume=/dev/by/uuid/ or whatever exactly it is and previously had it set as

resume=UUID=

using blkid to get the string.

If I could just get either sleep or hibernate to work, I’d be content. It annoys me that such a “basic” or expected function is incredibly reliant on display software, which I don’t understand. If nouveau can work with suspend, I’ll switch back to that, whatever works. I just like to sleep the system to quickly get back in I am still using spinning disks so boot is at least two minutes. There doesn’t seems to be a whole lot of services I can turn off, it would be faster if I was using xfce or similar, but I choose the the big K.

Once I started going to the gym every day I started sleeping SO MUCH better.

2 Likes

Sleep is essential to a workout, helps recovery, lungs, heart everything! I think computers need sleep to help reduce coal burning.

The following article helped me get the system to standby.

I can resume the pc but the kde desktop freezes, so I switch to tty 3 and login ans start x again.

This loses my open programs, and I can also do sudo pkill x and switch back and log in again.

Hibernation reaches shutdown but the system doesn’t restore from the image file. Any suggestions on either of these, I’ve been looking around a while and I also have this sleep issue freezing the desktop on another pc as well. Maybe the fix is similar.