You are not logged in.

#1 2023-09-25 00:52:12

TheSuperGamer20578
Member
Registered: 2023-09-25
Posts: 6

Monitor momentarily disconnecting when launching certain applications

When I launch certain appilcations such as Steam, arandr, eww, or any Intellij based IDE or run xrandr my external monitor which is connected via HDMI to a USB-C dock momentarily disconnects. This is made more anoying by the fact that my monitor takes several seconds to wake up after it looses signal. Steam seems to do this multiple times and is the worst offender taking a minute to get a stable signal again. The built-in display on my laptop has no problems and back when I used to use windows or when I use my windows dual-boot once in a blue moon I have no display problems.

I suspect that the problem might have to do with querying display properties because most of the applications that cause the problem seem to have a reason to query display information weather it be to determine the size of my bar or to display it in some kind of system properties window (and probably collect telemetry) however neofetch which does show display resolutions doesn't trigger it. Iv'e tried Googleing to find a solution multiple times but all the results are for screen flickering which is not the problem I am experiencing and I don't know weather it's linux, xorg, drivers, or something else entirely.

My computer has hybrid graphics with Intel HD Graphics 630 as the intergrated GPU and NVIDIA GeForce GTX 1060 Mobile as the discrete GPU and I have the Intel and proprietary NVIDIA drivers installed. I use optimus-manager for hybrid graphics however I was also experiencing this issue before I set that up and was stuck with integrated graphics.

Offline

#2 2023-09-25 06:37:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,097

Re: Monitor momentarily disconnecting when launching certain applications

I use my windows dual-boot once in a blue moon

Probably not the cause of the issue at hand, but 3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Then please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General
Edit: and drop optiomus-manager and use https://wiki.archlinux.org/title/PRIME - on a multi-GPU/multi-output system you're probably not getting away w/ anything but the "hybrid" mode anyway.

Last edited by seth (2023-09-25 06:38:22)

Online

#3 2023-09-25 09:30:49

TheSuperGamer20578
Member
Registered: 2023-09-25
Posts: 6

Re: Monitor momentarily disconnecting when launching certain applications

Probably not the cause of the issue at hand, but 3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

I disabled fast-start and hibernation when I reinstalled windows. My windows installation also uses it's own EFI partition on a seperate drive because unless I missed something the windows installer doesn't let you reuse a partition.

Edit: and drop optiomus-manager and use https://wiki.archlinux.org/title/PRIME - on a multi-GPU/multi-output system you're probably not getting away w/ anything but the "hybrid" mode anyway.

I will look into doing that tomorrow but I know that isn't the cause because I was experiencing the problem before installing optimus-manager.

Here is my Xorg log: https://0x0.st/HVbO.txt
It appears that 90% of it is just these lines repeated:

[    26.747] (II) modeset(0): EDID vendor "AUO", prod id 4253
[    26.747] (II) modeset(0): Printing DDC gathered Modelines:
[    26.747] (II) modeset(0): Modeline "1920x1080"x0.0  143.30  1920 1936 1952 2140  1080 1083 1097 1116 +hsync -vsync (67.0 kHz eP)
[    26.747] (II) modeset(0): Modeline "1920x1080"x0.0  114.80  1920 1936 1952 2140  1080 1083 1097 1116 +hsync -vsync (53.6 kHz e)
[    26.806] (--) modeset(0): HDMI max TMDS frequency 300000KHz
[    26.880] (II) modeset(0): EDID vendor "AUO", prod id 4253
[    26.880] (II) modeset(0): Printing DDC gathered Modelines:
[    26.880] (II) modeset(0): Modeline "1920x1080"x0.0  143.30  1920 1936 1952 2140  1080 1083 1097 1116 +hsync -vsync (67.0 kHz eP)
[    26.880] (II) modeset(0): Modeline "1920x1080"x0.0  114.80  1920 1936 1952 2140  1080 1083 1097 1116 +hsync -vsync (53.6 kHz e)
[    27.072] (--) modeset(0): HDMI max TMDS frequency 300000KHz
[    27.140] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    27.140] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[    27.140] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[    27.140] (--) NVIDIA(GPU-0): 
[    27.140] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    27.140] (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[    27.140] (--) NVIDIA(GPU-0): DFP-1: 1440.0 MHz maximum pixel clock
[    27.140] (--) NVIDIA(GPU-0): 
[    27.140] (--) NVIDIA(GPU-0): DFP-2: disconnected
[    27.140] (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
[    27.140] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[    27.140] (--) NVIDIA(GPU-0): 

Offline

#4 2023-09-25 13:37:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,097

Re: Monitor momentarily disconnecting when launching certain applications

The outputs get polled at that point, happens eg. when you run "xrandr -q" but in your case likely reflects the flickering.

[    12.125] (II) modeset(0): EDID for output eDP-1
[    12.125] (II) modeset(0): Manufacturer: AUO  Model: 109d  Serial#: 0
…
[    12.126] (II) modeset(0): Modeline "1920x1080"x60.0  143.30  1920 1936 1952 2140  1080 1083 1097 1116 +hsync -vsync (67.0 kHz eP)
[    12.126] (II) modeset(0): Modeline "1920x1080"x119.9  266.50  1920 1944 1960 2000  1080 1081 1084 1111 doublescan +hsync -vsync (133.2 kHz d)
…
[    12.186] (II) modeset(0): EDID for output DP-1
[    12.186] (II) modeset(0): Manufacturer: AUS  Model: 2789  Serial#: 0
[    12.186] (II) modeset(0): Year: 2020  Week: 45
…
[    12.187] (II) modeset(0): Modeline "1920x1080"x120.0  285.50  1920 1968 2000 2080  1080 1083 1088 1144 +hsync -vsync (137.3 kHz eP)
[    12.187] (II) modeset(0): Modeline "3840x2160"x30.0  297.00  3840 4016 4104 4400  2160 2168 2178 2250 +hsync +vsync (67.5 kHz e)

You're running the modesetting driver on the intel chip, nvidia is available for prime-run (ie. this is the hybrid setup which is basically the default prime)
There're two outputs and both are attached to the intel chip.
1x FullHD (internal panel) and 1x4k (displayport)
The nvidia GPU is actually irrelevant to the situation (or do you prime-run the games? Does this also happen if you don't?)

Can you cut out the dock and attach the HDMI monitor directly?
You could try to deacitvate https://wiki.archlinux.org/title/Power_ … utosuspend ("usbcore.autosuspend=-1", nb. that userspace power management tools can and will override that and you've to configure it there/as well)

Online

#5 2023-09-26 07:11:54

TheSuperGamer20578
Member
Registered: 2023-09-25
Posts: 6

Re: Monitor momentarily disconnecting when launching certain applications

You're running the modesetting driver on the intel chip

I have the xf86-video-intel driver installed, shouldn't it be using that? Appears that optimus-manager set it to use the modesetting driver in the xorg config https://0x0.st/HVu1.txt

or do you prime-run the games?

I don't do anything special to games. I have optimus-manager in hybrid mode but thats it.

You could try to deacitvate https://wiki.archlinux.org/title/Power_ … utosuspend ("usbcore.autosuspend=-1", nb. that userspace power management tools can and will override that and you've to configure it there/as well)

The kernel parameter has no noticable effect on it and I do not recall installing any power management tools.

Can you cut out the dock and attach the HDMI monitor directly?

That seems to work flawlessly smile however being able to use the dock would be preferable long-term, especially when I know that it's capably of doing it. It may also be worth noting that the HDMI port on my computer is connected to the discrete GPU.

Offline

#6 2023-09-26 07:18:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,097

Re: Monitor momentarily disconnecting when launching certain applications

You don't want to use xf86-video-intel at all and want to uninstall that package.

What dock is this specifically?

dmesg -W

and plug it.

Online

#7 2023-09-26 07:30:57

TheSuperGamer20578
Member
Registered: 2023-09-25
Posts: 6

Re: Monitor momentarily disconnecting when launching certain applications

The dock is a BONELK Long-Life 7-in-1 Multiport Hub Space Grey https://www.officeworks.com.au/shop/off … y-bk80028r
Here is the output of dmesg -W when I unplug and plug back in the dock: http://0x0.st/HVuy.txt

Last edited by TheSuperGamer20578 (2023-09-26 07:31:12)

Offline

#8 2023-09-26 12:15:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,097

Re: Monitor momentarily disconnecting when launching certain applications

[28851.302575] pcieport 0000:00:01.2: ASPM: current common clock configuration is inconsistent, reconfiguring

Add | pcie_aspm=off | to the kernel parameters and try the  dock w/o the other devices (keyboard/mouse) attached.
Does the output flicker get reflected by dock-related events in dmesg?

Online

#9 2023-09-27 00:59:20

TheSuperGamer20578
Member
Registered: 2023-09-25
Posts: 6

Re: Monitor momentarily disconnecting when launching certain applications

Adding that kernel parameter does get rid of the ASPM message however the problem persists. Here is my dmesg when I unplug and plug back in the dock with the kernel parameter: https://0x0.st/HV_o.txt
Nothing happens in dmesg related to the flicker when I run xrandr or pycharm, however when I start Steam I get this in dmesg which does not appear to happen without the dock:

[ 1551.871006] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 1552.039091] nvidia-uvm: Loaded the UVM driver, major device number 508.

Offline

#10 2023-09-27 07:35:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,097

Re: Monitor momentarily disconnecting when launching certain applications

That's because you're prime-running the game and the nvidia driver wakes up.

What re-introduces

seth wrote:

or do you prime-run the games?

and the answer is apparently "yes", can you check the render device in-game?
I guess that's steam? Maybe the games use vulkan and find the nvidia profile first, test the behavior w/ https://wiki.archlinux.org/title/Steam/ … _emulation

Also compare the behavior of

glxgears

and

prime-run glxgears

Online

#11 2023-09-28 02:32:10

TheSuperGamer20578
Member
Registered: 2023-09-25
Posts: 6

Re: Monitor momentarily disconnecting when launching certain applications

Those messages in dmesg appear when starting Steam itself not when starting games, it also appears that it only happens the first time I launch steam so it might have been a coincidence that it didn't happen when I wasn't using the dock.

The only game that comes to mind that shows the render device is Minecraft which says that it's using integrated graphics but it's not a Steam game and also doesn't trigger the flicker. I also didn't have the prime-run command installed until today so i could run glxgears with it.

When I run Zeepkist with PROTON_USE_WINED3D=1 %command% it doesn't have any noticable effect other than lowering my FPS to 20 from my normal 70-80 FPS.

glxgears runs the same both with and without prime-run at 120 FPS with no flickering issues.

Offline

Board footer

Powered by FluxBB