5

I have a System76 Thelio with an NVidia RTX 3060 video card. I was running Ubuntu 20.04 with no issues.

I upgraded to 22.04, and now get an error message "Could not switch the monitor configuration" popup before logging in. If I dismiss the popup, everything seems to work as expected.

In trying to track this down, I noticed that xrandr -q displays a mysterious 3rd output. This also shows up in the Display section of System Settings.

I do have a third output on the video card, but nothing is plugged in, and I did not have this problem with 20.04.

Here is what is displayed by xrandr --verbose (just the ghost output, which shows up at the end):

None-1-1 connected (normal left inverted right x axis y axis)
    Identifier: 0x204
    Timestamp:  14563613
    Subpixel:   unknown
    Clones:    
    CRTCs:      4
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    PRIME Synchronization: 1 
        supported: 0, 1
    link-status: Good 
        supported: Good, Bad
    CONNECTOR_ID: 35 
        supported: 35
    non-desktop: 0 
        range: (0, 1)
  1920x1200 (0x206) 138.240MHz +preferred
        h: width  1920 start 1920 end 1920 total 1920 skew    0 clock  72.00KHz
        v: height 1200 start 1200 end 1200 total 1200           clock  60.00Hz

I have tried xrandr --auto, and xrandr --output None-1-1 --off in an effort to "disconnect" this output.

The nvidia-settings program only displays the two outputs that are connected (HDMI-0 and DP-0).

I don't have an xorg.conf file. ~/.config/monitors.xml looked "reasonable" to me, but I haven't tried removing it yet.

Here is xrandr --current:

Screen 0: minimum 8 x 8, current 5760 x 2160, maximum 32767 x 32767
HDMI-0 connected 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  
   2048x1280     60.00  
   2048x1080     24.00  
   1920x1080     60.00    59.94    50.00    25.00    23.98  
   1600x1200     60.00  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x720      59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-0 connected primary 1920x1200+3840+389 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+  59.88  
   1920x1080     60.00    59.94    50.00    23.98  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    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)
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)
   1920x1200     60.00 +

I would like to "disconnect" this output so that I don't get the error.

Any ideas?

2 Answers2

7

Just ran into this recently (I had wrongly assumed this was caused by trying out potentially-beta nvidia drivers with the lowlatency kernel, but it's happening on the main branch series too now..) and seems to be due to a change around the simpledrm driver, making it either always enabled by default or such that just nvidia_drm.modeset=1 is no longer sufficient to disable it (presumably set by some nvidia package)

From https://bbs.archlinux.org/viewtopic.php?id=288009

Reboot, adding this to your kernel parameters

initcall_blacklist=simpledrm_platform_driver_init

You can test it out by booting while holding [shift] to get to the grub menu, e to edit for this boot, then adding it to the linux line's content

To make the change permanent

echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT initcall_blacklist=simpledrm_platform_driver_init"' | sudo tee /etc/default/grub.d/99_disable_simpledrm.cfg
sudo update-grub

To undo the change, just remove the file and run sudo update-grub
(presumably a future version of some nvidia package will package this change or better nuisance fix for us)

sudo rm /etc/default/grub.d/99_disable_simpledrm.cfg
sudo update-grub

See also Answer to What is the difference between GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub

Finally, the file in grub.d must at least end in .cfg to be included in the config rebuild (otherwise it'll be silently skipped)

ti7
  • 209
3

I found a solution on Reddit:

Modify the Xorg configuration (e.g. using a drop-in configuration file at /etc/X11/xorg.conf.d/10-monitor.conf) like so:

Section "Monitor"
    Identifier "None-1-1"
    Option "Ignore" "true" 
EndSection

If the file doesn't exist already, you can create an empty 10-monitor.conf file and add the above. Then logout and login and voila.

MrUser
  • 535