Second Monitor not working after Xubuntu 22.04.1 upgrade

Xubuntu upgrade from a perfectly stable and up-to-date 20.04 to 22.04.1 initially failed, but after resolving various networking issues, it was possible to complete the upgrade. All packages appear to be proper installed according to “apt install -f”.

I am on a desktop system (dual Xeon e5-2630 CPUs) and have an NVIDIA Quadro K4000 GPU with two LG 4K 27UK650-W monitors attached to DP-2 and DP-3 as reported by the NVIDIA Settings app. These were working perfectly in a left-right orientation under 20.04 as display 0.0. After the upgrade to 22.04 only the right monitor (DP3) is working. The cables have all been checked.

Past upgrades constantly replaced the driver package with the default Xorg driver which then had to be reset, but after this upgrade the system is using the:

NVIDIA driver metapackage from nvidia-driver-470 (proprietary, tested)

The Ubuntu Settings–>Display only see a single monitor.

Note: Somewhere during the the time between the failrd partial upgrade and the resumption of the upgrade days later to completion, the two screens started working as they had in 20.04 even though nothing had been intentionally done to any display-related settings. However, after a reboot they stopped again.

I don’t think that reverting to previous drivers (e.g., 450) would be sucessful as others have reported trying this step, but I’ll do it if there is reason to think it might work. I think there is a more fundamental problem and would greatly appreciate it if anyone has a suggestion for next steps. Could there be a Wayland incompatibility that has infected some software and stoped the Xserver from properly working?

Thanks.


NVIDIA Settings:
System Information:
Operating System: Linux-x86_64
NVIDIA Driver Version: 470.141.03
Display Name: dymaxion:0
Server Version Number: 11.0
Server Vendor Version: 1.21.1.3 (12101003)
NV-CONTROL Version: 1.29
Screens: 1

Xserver Display Configuration:
* Both screens are shown but only DP-3 is enabled as X screen 0
* The second screen (DP-2) is disabled. Any attempt to enable it
as “X screen 0” or “New X screen” fails as the Apply button is
inactive.
* The Detect Displays button does nothing

% xrandr
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-3 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
3840x2160 60.00*+ 30.00
2560x1440 59.95
1920x1080 60.00 59.94
1600x900 60.00
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94
1152x864 59.96
1024x768 60.00
800x600 60.32
720x480 59.94
640x480 59.94 59.93

% sus lshw -C display
*-display
description: VGA compatible controller
product: GK106GL [Quadro K4000]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:04:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:84 memory:b2000000-b2ffffff memory:a0000000-afffffff memory:b0000000-b1ffffff ioport:a000(size=128) memory:c0000-dffff
*-graphics
product: VESA VGA
physical id: 2
logical name: /dev/fb0
capabilities: fb
configuration: depth=32 resolution=1600,1200

%cat /etc/X11/xorg.conf

nvidia-settings: X configuration file generated by nvidia-settings

nvidia-settings: version 430.50

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0

Screen 1 “Screen1” LeftOf “Screen0”

InputDevice    "Keyboard0" "CoreKeyboard"
InputDevice    "Mouse0" "CorePointer"
Option         "Xinerama" "0"

EndSection

Section “Files”
EndSection

Section “InputDevice”
# generated from default
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/psaux”
Option “Emulate3Buttons” “no”
Option “ZAxisMapping” “4 5”
EndSection

Section “InputDevice”
# generated from default
Identifier “Keyboard0”
Driver “kbd”
EndSection

Section “Monitor”
# HorizSync source: edid, VertRefresh source: edid
Identifier “Monitor0”
VendorName “LG”
ModelName “27UK650-W”
HorizSync 30.0 - 135.0
VertRefresh 56.0 - 61.0
Option “DPMS”
EndSection

Section “Monitor”
# HorizSync source: edid, VertRefresh source: edid
Identifier “Monitor1”
VendorName “LG”
ModelName “27UK650-W”
HorizSync 30.0 - 135.0
VertRefresh 56.0 - 61.0
Option “DPMS”
EndSection

ection “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro K4000”
BusID “PCI:4:0:0”
Screen 0
EndSection

Section “Device”
Identifier “Device1”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro K4000”
BusID “PCI:4:0:0”
Screen 1
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “Stereo” “0”
Option “metamodes” “DP-3: 3840x2160_60 +0+0”
Option “SLI” “Off”
Option “MultiGPU” “Off”
Option “BaseMosaic” “off”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Section “Screen”
Identifier “Screen1”
Device “Device1”
Monitor “Monitor1”
DefaultDepth 24
Option “Stereo” “0”
Option “metamodes” “DP-2: 3840x2160_60 +0+0”
Option “SLI” “Off”
Option “MultiGPU” “Off”
Option “BaseMosaic” “off”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Please delete /etc/X11/xorg.conf

1 Like

Fantastic! That’s is all it took to get things back to normal. Now I’d like to ask why this is the case. Was I supposed to know that the config file was screwing things up? This was the same file that has been in place for the past two years without problem and modifying this file in the past was how I changed the NVIDIA parameters.

generix, thank you for your help!

1 Like

The xorg.conf was broken and rather a wonder it worked before.

1 Like

Hmmm. Well, I’m glad you were here to point me in the right direction. :-)