You are not logged in.

#1 2023-03-27 05:15:51

UnhingedNW
Member
Registered: 2021-01-07
Posts: 21

[SOLVED] Monitor randomly flashes black as if changing resolution

Hello, I have been having an issue with my new Arch install where my monitor randomly will flash black, then come back on. It is acting as though I am changing resolutions because when it comes back on the "Display Port" monitor tooltip will appear on the top left.

I am running an NVIDIA 2070 Super and I believe the NVIDIA-LTS package with the 6.1.21-1-lts kernel.

The problem will not show its head for about ten minutes then it will happen again randomly a couple times in a few minutes.
I have tried messing with my monitors settings from it's menu, turning off adaptive sync, changing refresh to 120 on the monitor itself, changing color profiles.
I have the monitor set to 4k 120hz with xrandr, and the monitor itself and still have the issue.

Here is xrandr -q output:

[mike@arch ~]$ xrandr -q
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
DP-0 disconnected primary (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 1mm x 1mm
   3840x2160     60.00 + 120.00*  119.88    29.97
   2560x1440    120.00    59.95
   1920x1080    119.88    60.00    59.94
   1680x1050     59.95
   1600x900      60.00
   1440x900      59.89
   1280x1024     75.02    60.02
   1280x800      59.81
   1280x720      60.00    59.94
   1152x864      75.00
   1024x768      75.03    70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   720x480       59.94
   640x480       75.00    72.81    59.94
DP-5 disconnected (normal left inverted right x axis y axis)
USB-C-0 disconnected (normal left inverted right x axis y axis)

Here is everything pertaining to NVIDIA with lspci -v:

0d:00.0 VGA compatible controller: NVIDIA Corporation TU104 [GeForce RTX 2070 SUPER] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: eVga.com. Corp. Device 3173
	Flags: bus master, fast devsel, latency 0, IRQ 131
	Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at e0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

0d:00.1 Audio device: NVIDIA Corporation TU104 HD Audio Controller (rev a1)
	Subsystem: eVga.com. Corp. Device 3173
	Flags: bus master, fast devsel, latency 0, IRQ 106
	Memory at fc080000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

0d:00.2 USB controller: NVIDIA Corporation TU104 USB 3.1 Host Controller (rev a1) (prog-if 30 [XHCI])
	Subsystem: eVga.com. Corp. Device 3173
	Flags: fast devsel, IRQ 57
	Memory at e2000000 (64-bit, prefetchable) [size=256K]
	Memory at e2040000 (64-bit, prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci

0d:00.3 Serial bus controller: NVIDIA Corporation TU104 USB Type-C UCSI Controller (rev a1)
	Subsystem: eVga.com. Corp. Device 3173
	Flags: bus master, fast devsel, latency 0, IRQ 102
	Memory at fc084000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia-gpu
	Kernel modules: i2c_nvidia_gpu

This is journalctl -b
https://pastebin.com/4bgtWEyA

Last edited by UnhingedNW (2023-03-28 19:00:27)

Offline

#2 2023-03-27 13:56:59

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

UnhingedNW wrote:

monitor randomly will flash black, then come back on. It is acting as though I am changing resolutions because when it comes back on the "Display Port" monitor tooltip will appear on the top left.

Check GPU / monitor connector. Also, bad quality cable?

Can you give HDMI cable a try?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2023-03-27 14:12:04

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

Next to a cable/signal quality issue (does this happen at the preferred 60Hz?) this could be a bad response to dpms.
=> Do you get this when disabling dpms?

xset -dpms; xset -q | grep -i dpms # second call to confirm

Offline

#4 2023-03-28 03:45:05

UnhingedNW
Member
Registered: 2021-01-07
Posts: 21

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

seth wrote:

Next to a cable/signal quality issue (does this happen at the preferred 60Hz?) this could be a bad response to dpms.
=> Do you get this when disabling dpms?

I tried switching back to 60Hz and disabling dpms. Seems to be working better, only has happened once or twice since waking from sleep.

d.ALT wrote:

Check GPU / monitor connector. Also, bad quality cable?

Can you give HDMI cable a try?

Rebooting now to try with HDMI. I believe the cable is good but wont hurt to try. I will note that I dual boot Windows on this machine and have no issues on that OS with this problem. I also have a Mac that I occasionally swap too and no issues there so it seems to be linux specific. The problem has followed me across other distros. Currently trying to settle on Arch for a good while.

Offline

#5 2023-03-28 04:01:37

UnhingedNW
Member
Registered: 2021-01-07
Posts: 21

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

Rebooting now to try with HDMI

Seems like it is running as good with HDMI as it did with DP. Using 60Hz (Max 4k refresh rate on my GPU's HDMI port)
Small amount of flicker on the top of the screen that i forgot to mention in the last comment.

Offline

#6 2023-03-28 07:22:16

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

I dual boot Windows on this machine

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

flicker on the top of the screen

Audio?
Try to use "snd_hda_codec_hdmi.enable_silent_stream=0", "snd_hda_codec_hdmi.enable_silent_stream=1" or outright blacklist snd_hda_codec_hdmi, https://wiki.archlinux.org/title/Kernel … and_line_2

Offline

#7 2023-03-28 18:46:34

UnhingedNW
Member
Registered: 2021-01-07
Posts: 21

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

Went through all settings to ensure that both fast startup and hibernation were disabled. The options I believe were already disabled, they had disappeared from my Control Panel and settings menus. Went into powershell and sent the disable commands again to ensure they were off.

Audio?

Its a screen flicker at the top of the screen. I forgot to change the monitor's hardware refresh rate to 60Hz and it seems like that has done the trick.
I am going to try and switch back to DP now with 60Hz on monitor and 60Hz on xrandr.

Offline

#8 2023-03-28 18:54:57

UnhingedNW
Member
Registered: 2021-01-07
Posts: 21

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

It seems that Disabling dpms, and switching down to the 60Hz on both xrandr and my display's hardware has done the trick. Thank you for the help!

Offline

#9 2023-03-28 19:00:07

UnhingedNW
Member
Registered: 2021-01-07
Posts: 21

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

May have spoke too soon. Still receiving the flicker on the top 1/5th of the screen. I do believe this is now a separate issue from the original one though and will mark this issue solved.

Offline

#10 2023-03-28 19:27:58

IsItWashable
Member
Registered: 2021-10-12
Posts: 55

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

Hey, Just wanted to let you know that I am experiencing a similar problem. Has just started a couple of days ago. My GPU is a 1660 Super though. Will subscribe to this thread and let you know if i find a fix

Last edited by IsItWashable (2023-03-28 19:28:24)

Offline

#11 2023-03-28 19:35:11

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

seth wrote:

Audio

Its a screen flicker at the top of the screen.

Yes, i get that - the audio signal has a tendency to interfere in that area (though typically as green line), hence the idea to play w/ it and see whether that has usable impact.

Offline

#12 2023-03-28 20:27:49

UnhingedNW
Member
Registered: 2021-01-07
Posts: 21

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

Yes, i get that - the audio signal has a tendency to interfere in that area (though typically as green line), hence the idea to play w/ it and see whether that has usable impact.

Oh I hear you, I'll look into switching that later tonight when I have time.

Offline

#13 2023-03-28 21:52:09

IsItWashable
Member
Registered: 2021-10-12
Posts: 55

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

More info with about my experience with this:
My GPU is an NVIDIA 1660 Super
I do not use a window compositor.
It is definitely worse at 144hz. it still happens at 60hz, yet much less frequently and the effect is not as pronounced.
Mine also occupies the top 1/5th of the screen.

xrandr -q

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00 + 144.00*  119.98   119.88    99.93    59.94    50.00
   1680x1050     59.88
   1440x900      59.90
   1280x1024     75.02    60.02
   1280x720      60.00    59.94    50.00
   1024x768     119.99    99.97    75.03    70.07    60.00
   800x600      119.97    99.66    75.00    72.19    60.32    56.25
   720x576       50.00
   720x480       59.94
   640x480      119.52    99.77    75.00    72.81    59.94    59.93
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

lspci -v
https://pastebin.com/TPz5WyQq

journalctl -b
https://pastebin.com/dEvLh6DN

Last edited by IsItWashable (2023-03-28 22:29:52)

Offline

#14 2023-03-29 07:07:01

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

That's not your journal, but the first page. Don't copy and paste out of the pager.

sudo journalctl -b | curl -F 'file=@-' 0x0.st

"lspci -v" and xorg log might be more interesting, though.
https://wiki.archlinux.org/title/Xorg#General

Offline

#15 2023-03-29 09:56:43

IsItWashable
Member
Registered: 2021-10-12
Posts: 55

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

journalctl -b: http://0x0.st/HoDG.txt
lspci -v: http://0x0.st/HoDD.txt
Xorg Log: http://0x0.st/HoDR.txt

Last edited by IsItWashable (2023-03-29 10:00:25)

Offline

#16 2023-03-29 11:54:11

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

[   467.813] (**) NVIDIA(0): Option "MetaModes" "1920x1080_60 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"

I guess you're attempting https://wiki.archlinux.org/title/NVIDIA … en_tearing ?
I'll probably keep the GPU busy, but you could try to explicitly prefer the performance mode:
https://wiki.archlinux.org/title/NVIDIA … ot_working

Ftr, both of you have Turing chips, IsItWashable uses an "AOC 24G2W1G4"
See the suggestion in #6 and if you can, provide a recording of the artifact.

Offline

#17 2023-03-29 12:04:24

IsItWashable
Member
Registered: 2021-10-12
Posts: 55

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

I set "ForceFullCompositionPipeline=on" because I saw it suggested in another thread.

It just happened while recording with SimpleScreenRecorder, although in the recording you cannot see the artifact, would this indicate a hardware problem? If so, it's weird that two people would start experiencing this exact problem at the same time, right?
I will try to post a video recorded from my phone. In the meantime I will follow the steps you posted.

UPDATE: Just happened while filming on my phone, although it didn't capture it, I'm guessing because my phone only records at 30fps.

Last edited by IsItWashable (2023-03-29 12:11:18)

Offline

#18 2023-03-29 12:10:30

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

It only indicates that the problem is the signal, so cable/monitor/config related - not what's rendered into the framebuffer.
But that was also indicated by the relevance of the refresh rate.

Offline

#19 2023-03-29 12:32:22

IsItWashable
Member
Registered: 2021-10-12
Posts: 55

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

I checked suggestion #6 and went and opened /etc/modprobe.d/blacklist.conf

It seems I am blacklisting nouveau, is this okay?

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

Also is this the file where I should blacklist "snd_hda_codec_hdmi"?

Last edited by IsItWashable (2023-03-29 12:38:24)

Offline

#20 2023-03-29 12:38:21

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

It's ok to blacklist nouveau, nvidia-utils should actually add an explicit modprobe.d file for that as well.
The suggested approach would be to use the kernel commandline to
1. make the change transient
2. ensure it applies (eg. against your initramfs)

Offline

#21 2023-03-29 13:03:24

IsItWashable
Member
Registered: 2021-10-12
Posts: 55

Re: [SOLVED] Monitor randomly flashes black as if changing resolution

People experiencing similar problems in this thread here https://forums.developer.nvidia.com/t/5 … /242488/16
Changed my image settings to High Performance in nvidia-settings and it has been running smoothly so far.

UPDATE: Spoke too soon, still having the same issue

Last edited by IsItWashable (2023-03-29 14:39:38)

Offline

Board footer

Powered by FluxBB