At times my screen stays black after the screensaver comes back out of DPMS, what could be the cause?
https://askubuntu.com/questions/1565025/at-times-my-screen-stays-black-after-the-screensaver-comes-back-out-of-dpms-wha
Once in a while, my screensaver doesn't come back out. The screen stays black. I think it's out of DPMS because the blinking light is off which means the monitor is ON. But I see nothing on the screen, as if the video card was not sending anything (because it's not lightly lit, like if I don't have DPMS).
I had an issue when the VGA-1-1 (at times called None-1-1) screen and since I disabled that screen, it worked again for one week straight. But today, black screen again. I could come out of it by going through the three inputs on the monitors (HDMI2 → DP → HDMI1 → HDMI2). As if the video board was detecting the signal anew. But looking at the X11 logs, there is nothing about the screen that looks suspicious. It says connected like so after it wakes up:
[778083.399] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): connected
[778083.399] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): Internal TMDS
[778083.399] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): 600.0 MHz maximum pixel clock
But still doesn't show anything until I go through all the monitor's inputs.
Anyone else experienced such and found a solution to avoid the situation?
I'm on Ubuntu 24.04, fresh install (not an upgrade from older versions).
I use the NVidia proprietary drivers.
And the card is an NVIDIA GeForce RTX 2060.
To disable the VGA-1-1, I use the following:
$ cat /etc/X11/xorg.conf.d/10-disable-vga.conf
# Get rid of the VGA-1-1 monitor
Section "Monitor"
Identifier "VGA-1-1"
Option "Ignore" "true"
EndSection
and once I had that, checking the xrandr output clearly did not include that monitor:
$ xrandr
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 697mm x 392mm
3840x2160 60.00*+ 59.94 50.00 30.00 29.97 25.00 23.98
2560x1440 59.95
1920x1080 60.00 59.94 50.00 29.97 23.98
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
X11 waking up logs from this morning (a time when it worked). I find these logs in this file:
~/.local/share/xorg/Xorg.1.log
First the strange mouse event, possibly the wake up call:
[834497.248] (II) event8 - Logitech G203 Prodigy Gaming Mouse: SYN_DROPPED event - some input events have been lost.
Then, the NVidia driver cycle through all the monitors (DFP-0 to DFP-3) and detect them as disconnected. DFP-1 is where my monitor is connected.
[834498.656] (--) NVIDIA(GPU-0): DFP-1: disconnected
[834498.656] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[834498.656] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
I see 5 messages saying "disconnected" and then this message:
[834498.704] (II) NVIDIA(0): Setting mode "NULL"
The "disconnected" message appear another 3 times and finally, the monitor is detected:
[834500.091] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): connected
[834500.091] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): Internal TMDS
[834500.091] (--) NVIDIA(GPU-0): Samsung U32J59x (DFP-1): 600.0 MHz maximum pixel clock
The message above (and the other disconnected DFPs) appear another 4 times before the following message:
[834500.395] (II) NVIDIA(0): Setting mode "HDMI-0: nvidia-auto-select @3840x2160 +0+0 {ViewPortIn=3840x2160, ViewPortOut=3840x2160+0+0}"
Then the "connected" message (and the other disconnected DFP) repeats yet another 5 times. Since it generally takes about 2 or 3 seconds for the screen to appear, I think those are checks to make sure that the screen is stable. The logs stop after that, but timing wise, it feels like the "Setting mode ..." message is the time when the screen is shown again.