You are not logged in.

#1 2024-10-07 11:06:02

ndavid
Member
Registered: 2021-04-24
Posts: 30

NVIDIA: Screens flickering on startup, Xorg conf not working

Kernel: `linux 6.11.2.arch1-1`
Driver: `nvidia-open 560.35.03-12`
GPU: `NVIDIA GeForce RTX 3060`
Using X11

Issues I noticed:
- I boot from the TTY, using xinit. Right after booting up both of my screens flicker several times until they flicker one last time after I enter my DE.
- Some font sizes are messed up: Dunst notifications got huge.
- I have `Force Composition Pipeline` on both my screens in `/etc/X11/xorg.conf.d/20-nvidia.conf` but it has stopped taking effect. I have tried saving the file over again but as soon as I reboot Force Composition Pipeline is off again.

I've had this setup for ages. Something definitely broke on the recent update, does anyone know if there were any breaking changes?

Last edited by ndavid (2024-10-07 11:14:30)

Offline

#2 2024-10-07 13:10:01

Wednesday
Member
Registered: 2010-05-05
Posts: 16

Re: NVIDIA: Screens flickering on startup, Xorg conf not working

Maybe related here, same kernel and driver. When X starts, I have just a bunch of awful lines with more or less the proper colors, but it all looks like some random garbage. I actually used an xbindkey binding to run the following command

xrandr --output HDMI-0 --mode 3840x2160 & sleep 5

that gives me the correct video output

Last edited by Wednesday (2024-10-07 13:19:15)

Offline

#3 2024-10-07 16:28:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 66,969

Re: NVIDIA: Screens flickering on startup, Xorg conf not working

Why do you sleep *after* the xrandr call?

Next to the "xrandr -q" output ante and post the fix, please also post your xorg logs,  https://wiki.archlinux.org/title/Xorg#General

Offline

#4 2024-10-09 17:27:38

Wednesday
Member
Registered: 2010-05-05
Posts: 16

Re: NVIDIA: Screens flickering on startup, Xorg conf not working

I don't sleep after, I actually typed my command wrong here, it's actually
>> xrandr --output HDMI-0 --mode 1920x1080 && sleep 2 && xrandr --output HDMI-0 --mode 3840x2160
this going back and forth solves my problem (whereas just asking xrandr --output HDMI-0 --mode 3840x2160 again does nothing since it's already in that mode).

Output of xrandr -q before and after are two times

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  

vimdiff finds absolutely no difference. I guess nvidia is at fault and seems to struggle to initialize x properly on a 4k monitor.

Last edited by Wednesday (2024-10-10 15:56:40)

Offline

#5 2024-10-09 19:03:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 66,969

Re: NVIDIA: Screens flickering on startup, Xorg conf not working

Please use [code][/code] tags. Edit your post in this regard.

The xrandr call is inert (by nature) - but will force a resize of eg. a  GL context from a compositor.
What's your X11 session?
Do you get away w/

 xrandr --output HDMI-0 --rate 30 && sleep 2 && xrandr --output HDMI-0 --rate 60

?

Offline

Board footer

Powered by FluxBB