this post was submitted on 30 Nov 2024
33 points (100.0% liked)

Linux

48677 readers
437 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm on the verge of completely giving up here, I've always had a few problems with sleep but for the last few months my system has no graphics output when I resume from suspend. Its not just outputting a black screen, my monitors go back into sleep mode as there is no video output at all. I'm assuming its something to do with my Nvidia GPU but none of the steps from here help: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend

I have tried suspending from the gui, systemctl suspend and directly writing to /sys/power/state. I have tried both s2idle and deep sleep (with s2idle it wouldn't even enter sleep properly and I still ended up with a blank screen). I have the same issue on Plasma X11 and XFCE on my main Arch system and also on the Ubuntu 24.04 live iso (which I couldn't even get to boot properly without choosing safe graphics mode), but interestingly I don't have the issue on Endeavour OS which I would have expected to be closer to my system. This was both on the Endeavor live iso and on a test install I did on a spare disk. On my main system if I use Plasma Wayland I do get a display but its glitched out and I still can't interact with anything. If I disable my DE and just suspend from the tty it works fine.

Despite having a black screen I can still access via SSH, and if I switch tty I usually then get a display output on that tty, but if I try switching back to my DE I get back to a black screen sometimes with a mouse cursor.

If its any use I have these log files from a recent attempt at troubleshooting, the only relevant thing I could see was the bit about SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false but changing it to true didn't help: https://upload.disroot.org/r/ZnLUas_m#CRJfgtZ4aMKNdh3ch3P6AY03VMS9XEPz8TDAVC0XaFE

Edit: I forgot to mention I’ve tried both the standard and LTS kernels, and the nvidia and nvidia-open driver

top 11 comments
sorted by: hot top controversial new old
[–] IcyToes@sh.itjust.works 6 points 3 weeks ago

I've been having the same issue on OpenSuse TW for past few months. I suspect it is SystemD changes. I changed flags similar to you, and after, sleep works, but hibernate is a guaranteed wake crash.

I'm on AMD hardware so I don't think it's specific to NVidia like they suspected.

[–] sgibson5150@slrpnk.net 4 points 3 weeks ago (1 children)

FWIW I had the same issue under Fedora 40 Bazzite. For a bit I was having to shut down to avoid the problem you describe, and then they changed something else and I couldn't even shut down cleanly from within the DE. Things have been sooo much better since the upgrade to 41.

[–] Infernal_pizza@lemmy.world 1 points 3 weeks ago (1 children)

Do you also have an Nvidia gpu?

[–] sgibson5150@slrpnk.net 2 points 3 weeks ago

Indeed I do.

[–] gaylord_fartmaster@lemmy.world 4 points 3 weeks ago* (last edited 2 weeks ago)

I occasionally get this same thing, or it'll render one frame of SDDM and then freeze on that frame, and I've also never been able to fix it. I'm on CachyOS with an RTX 2080.

I just bought a 7900 XTX that I'm waiting to be shipped, so I wonder if it'll go away with an AMD GPU.

Edit: Hasn't happened once with the AMD card, and another frequent issue I had with Vulkan was fixed too. I'm blaming nvidia.

[–] CaptDust@sh.itjust.works 3 points 3 weeks ago (1 children)

I have this same issue on arch with a 4080. It's frustrating as hell. Computer is still active just no video. Wishing you success.

[–] Hildegarde@lemmy.world 3 points 3 weeks ago

Me too. Arch 950. Not cared enough to research a fix. Changed my keybind for suspend to lock the screen instead. If there's a solution in this thread I'll try it probably.

[–] r00ty@kbin.life 3 points 3 weeks ago (1 children)

I'm on NVidia with blob driver, KDE Plasma on wayland on Arch. Yeah, standby to resume is like 50/50 the screen will come back. I just turned off stand-by and kept screen sleep only.

But I'm on desktop so less of a problem for me than it would be for a laptop user.

[–] Infernal_pizza@lemmy.world 1 points 3 weeks ago

It used to be about 50/50 now it fails 100% of the time

[–] Kualk@lemm.ee 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I use kvm switch and run into this issue.

I am currently on Fedora 41, Gnome. I’ve seen this issue when running Arch on the same hardware without kvm switch to the point that I disabled suspend.

The fix for me is Ctrl-Alt-F1. It simply brings display manager’s login screen. Gnome on Fedora 41 uses gdm.

The rationale here is simple: the display manager should be resetting screen to display login screen.

[–] Infernal_pizza@lemmy.world 1 points 2 weeks ago

Unfortunately that doesn't work, the best I can get is the screens wake up and I get a black screen with a mouse cursor. I then have to restart sddm for anything else to work