Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72631 - [nvidia] Only one out of 3 Monitors work

Attached to Project: Arch Linux
Opened by Christian Heusel (gromit) - Thursday, 04 November 2021, 16:07 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 12 November 2021, 01:10 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After the upgrade my display driver seems to have problems:
They are visible in xrandr but I cant display anything on them:

```
xrandr --output DP-0 --mode 1920x1080 --primary \
--output DP-2 --mode 1920x1080 --right-of DP-0 \
--output DVI-D-0 --mode 1920x1080 --left-of DP-0
```

```
chris@pioneer ~ ยป xrandr
Screen 0: minimum 8 x 8, current 5760 x 1080, maximum 32767 x 32767
DVI-D-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
1920x1080 60.00*+ 59.94 50.00
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
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
DP-3 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)
None-1-1 connected (normal left inverted right x axis y axis)
1920x1080 2004.69 +
```

Additional info:
* package versions:
* linux 5.15.arch1-1
* nvidia 495.44-4
* xorg-server 1.20.13-3
* i3-gaps-next-git 4.20.1.r26.g094f56aa-1

* config and/or log files etc.
* https://mathphys.info/~chris/Xorg.0.log
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 12 November 2021, 01:10 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 05 November 2021, 19:40 GMT
This doesn't really sound like a packaging problem to me. I run an unusual multidiplay configuration and everything works just fine for me.
Comment by Jonas Witschel (diabonas) - Thursday, 11 November 2021, 13:11 GMT
Do you have a custom Screen section in /etc/X11/xorg.conf, /etc/X11/xorg.conf.d/20-nvidia.conf or similar, and what does it look like?

I was facing a similar problem where my single monitor was not used by X.Org, instead it seemed to default to a spurious "None-1-1" monitor that shows up in your xrandr output as well. It turns out I had set up /etc/X11/xorg.conf.d/20-nvidia.conf according to https://wiki.archlinux.org/title/NVIDIA/Troubleshooting#Avoid_screen_tearing which the new driver version does not seem to like at all.

If was able to fix the issue by running nvidia-xconfig as suggested in the above Wiki page, and moving it from /etc/X11/xorg.conf to /etc/X11/xorg.conf.d/20-nvidia.conf (I only kept the Screen section and remove the rest of the configuration file, as suggested in the note). This made X.Org use my monitor again without further configuration changes, and the additional "None-1-1" monitor is gone from xrandr as well.

For reference, the Screen section generated by nvidia-xconfig for my system looks as follows (yours will probably be different, especially since you have multiple monitors):

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Comment by Jonas Witschel (diabonas) - Thursday, 11 November 2021, 13:25 GMT
Correction after playing around some more: it was not the Screen section that was responsible for my problems at all, but the missing Device section! So my minimal working /etc/X11/xorg.conf.d/20-nvidia.conf now looks as follows (as an alternative, the settings related to screen tearing from the Wiki work fine as well):

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Comment by Christian Heusel (gromit) - Friday, 12 November 2021, 00:12 GMT
re-running nvidia-xconfig fixed the problem for me! :)
Thank you a lot @diabonas <3
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 12 November 2021, 00:31 GMT
Should we consider this fixed?
Comment by Christian Heusel (gromit) - Friday, 12 November 2021, 00:34 GMT
Yes, I already requested task closure!

Loading...