You are not logged in.

#1 2023-11-23 02:21:20

MartinStuwe
Member
Registered: 2023-11-23
Posts: 6

[SOLVED] Black Screen after resuming from suspend (sleep) Nvidia

Hello,

sometimes I get a black screen after I resume from sleep.

My PC turns on, but besides black I can't see shit.

Does anyone know potential solutions for this?

The only errors I get on my screen during going to sleep are some bluetooth unexpected opcode errors. But I don't think it's related to the black screens, because it currently works when I manually put my computer to sleep, besides getting these opcode errors.

There are also occasions, where my computer tries to go to sleep, but immediately turns back on and ends up in the User Login screen.
I'm currently trying to find out if the cause of this are just trackball movements.

I also have two monitors, one connected with DP and one with HDMI, and the cables are quite new, because before buying new cables
one of the monitors wouldn't show anything after resuming from sleep i.e. no signal.
Now my monitors get a signal, but sometimes after my PC wakes up both just display a black screen.

In most cases I can't even use ALT + CTRL + F2 or F3 to get into a terminal, but on the last black screen it worked.
Maybe, because I use a K860 for Business and it doesn't work due to the unexpected opcode stuff?
But the opcode error origin could also be my Bluetooth/WLAN card (K860 is connected via bluetooth over USB).

The PC also doesn't display the cursor, whenever there is a black screen.
My Kensington trackball is also connected via another Bluetooth USB device.

I will try a cable mouse the next time, I don't think I have a cable keyboard to test the terminal shortcuts without a bluetooth connection.

I read on the wiki to write acpi_osi=! "acpi_osi=version" to the boot loader config, but I don't know where to find the boot loader config.

I'm also using the proprietary Nvidia drivers for the EVGA RTX 3080.

The main problem for me is that I use LVM on LUKS and without KVM over IP I can't remotely restart my machine and enter my decryption key (restart fixes the black screen).

I use Rustdesk and Anydesk to remotely control this machine, and the last time I woke up the machine via my Alexa, I just got an unresponsive black screen over both. As far as I remember, controlling it via SSH worked.
Is there a command to restart xorg or KDE to try, if it fixes the display problem?
I tried the two kde5 commands to terminate and restart KDE, but they didn't work and I got an error: something like "could not connect to display, xcb not loading".

Maybe it's also related. After a working resume after a long enough sleep, applications like Brave are invisible for some time until they show up.

And sometimes my taskbar randomly reloads.

Hardware:
CPU: AMD Ryzen 5600x
GPU: EVGA RTX 3080 FTW3 Ultra
Mainboard: Aorus Elite X570
RAM: 4x 8GB Corsair Vengeance
Monitors: Samsung U28E590D, BenQ GL2760-b

I highly suspect something related to the Nvidia GPU i.e. drivers, hardware fault (used it for one year to mine ETH), bad seating (the GPU is too heavy and thus slightly gravitating down, at least it was till I fixed the positioning with screws, currently I don't see any bad positioning) or some config. And will probably buy an AMD GPU to have two and use the Nvidia GPU only for GPU passthrough and AI CUDA stuff.

I will also try if the same happens when I use hibernate instead of sleep.

Meanwhile thanks for any help to hopefully fix this or narrow it down to some culprit.

Last edited by MartinStuwe (2024-01-13 22:35:07)

Offline

#2 2023-11-23 11:05:31

obap74
Member
Registered: 2021-03-18
Posts: 99

Re: [SOLVED] Black Screen after resuming from suspend (sleep) Nvidia

Was it working before and broke recently? Other users and I are getting the same issue with NVIDIA 545 drivers, see this thread.
I had to downgrade to 535 and kernel 6.5.9 / 6.1.60 to get it working again.

Offline

#3 2023-11-23 11:26:29

MartinStuwe
Member
Registered: 2023-11-23
Posts: 6

Re: [SOLVED] Black Screen after resuming from suspend (sleep) Nvidia

I moved from Windows to Arch this year, I'm not sure, but I guess that it didn't occur, when I just moved from Arch in a VM to Arch as main OS.

Maybe the recent updates fixed it. I didn't have the issue today (till now).
I will consider a downgrade, when I encounter it again.

Thanks for the information w.r.t. the Nvidia driver and kernel version and for the link to the respective thread.

Last edited by MartinStuwe (2023-11-23 12:38:05)

Offline

#4 2024-01-13 18:03:45

MartinStuwe
Member
Registered: 2023-11-23
Posts: 6

Re: [SOLVED] Black Screen after resuming from suspend (sleep) Nvidia

So I let my Arch Linux system stay up to date.

Went away from home, came back to my not sleeping (should have been asleep) desktop PC, turned on one monitor and got a black screen.

I opened my MacBook and was able to SSH into my Arch PC.

Logged into my PiKVM, which also received a black screen, but was able to ping the Arch machine. I encountered this a few times this month.

I researched how to restart Xorg and found this link:
https://askubuntu.com/questions/1220/ho … mmand-line with the command:

sudo systemctl restart display-manager

And it resolved my black screen.
Still bad that the desktop PC sometimes isn't able to go to sleep.

Now I had to issue:

sudo systemctl suspend

two times, before it went into sleep mode.

Is there a way to get a trace for resume from sleep? The Arch machine goes into sleep mode, all LEDs are off and the CPU cooler stops spinning, but then immediately wakes up.
I want to find out what triggers this.

Last edited by MartinStuwe (2024-01-13 19:21:30)

Offline

#5 2024-01-13 21:13:33

MartinStuwe
Member
Registered: 2023-11-23
Posts: 6

Re: [SOLVED] Black Screen after resuming from suspend (sleep) Nvidia

I guess I found the culprit for the immediate wakeup.

With cat /proc/acpi/wakeup

I saw a couple of devices and disabled XHC0, which corresponds to some USB 3 related interface of AMD, with the AUR package wakeup-triggers.

Tried again:

sudo systemctl suspend

And finally it went to sleep without problems.

I put all my USB devices into the USB 2.0 ports and now it works. Still just got a black screen, restarted display-manager and had the problem that KDE wasn't able to start a plasma session.

But I can live with restarting the display-manager for now.

I also encountered: usb 3-2: device descriptor read/64, error -110 before this new fix for the current situation when I booted the system.

Edit:

Failed again and it seems like I also have to disable BXBR. Disabled BXBR, suspended and on intentional wakeup, black screen and display-manager restart, login, I got startkde: Could not start Plasma session. But worked now on the second display-manager restart.

Nevermind, just happened again that it woke up immediately even when every device in /proc/acpi/wakeup is disabled.
I tried: sudo dmidecode | grep Wake-up and got Wake-up Type: Other.

I tried sudo systemctl hibernate and this works without problems.

Edit2:

switched to nvidia-open, seems fixed for now.

Last edited by MartinStuwe (2024-02-24 01:25:15)

Offline

Board footer

Powered by FluxBB