Accidentaly disabled second hdmi monitor in nvidia-settings, can't enable it back

I have two LG monitors. While playing a game on wine when I crossed the cursor to the second monitor the game breaks. It was so irritating that I decided to disable the second monitor through nvidia-settings while playing. The gaming session went flawlessly. Afterwards I tried to reenable it in nvidia-settings, but couldn’t. First I could only set the second monitor to copy the same screen from the first monitor. I tried restarting, kde display settings and so on. I also overwrote the xorg.conf in /etc/X11. After it didn’t work I restored xorg.conf backup. Now nothing works. On bootup the hdmi monitor works up to the point when X11 starts. I think the problem is in xorg.conf so I quote it below:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 550.144.03

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "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     "Unknown"
    ModelName      "LG Electronics IPS235"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "LG Electronics LG Ultra HD"
    HorizSync       30.0 - 135.0
    VertRefresh     56.0 - 61.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 2060"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 2060"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DVI-D-0"
    Option         "metamodes" "DVI-D-0: nvidia-auto-select +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" "HDMI-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I also tried xrandr --output HDMI1 --auto

and got

warning: output HDMI1 not found; ignoring

xrandr --output HDMI-0 --auto

Because:

I don’t see that the HDMI Monitor is disabled here by the xorg.conf. Is this probably set in the plasma display settings?

xrandr gives the same output with HDMI-0 or HDMI-1: not found. KDEs display settings doesn’t even see the second monitor. nvidia-settings sees it but I have to run it as administrator to change xorg.conf, but after restart it is still disabled.

Just typing xrandr should give you the available output names.

Well… then I think it is a loose connection or something in that direction. A hardware problem.

I already checked the monitor with a different machine and it works. Now also rechecked cables, no loose connection. If anything it would be the hdmi output on the nvidia card that stopped working. I’m trying reinstalling kernels, drivers etc. nothing helps.

xrandr output:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32    56.25  
   640x480       75.00    59.94  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

The weirdest entry in journalctl is

sty 18 14:13:51 kernel: i2c i2c-3: Invalid 7-bit I2C address 0xffff
sty 18 14:13:51 kernel: 
sty 18 14:13:52 kernel: nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
sty 18 14:13:52 kernel: ucsi_ccg 0-0008: i2c_transfer failed -110
sty 18 14:13:52 kernel: ucsi_ccg 0-0008: ucsi_ccg_init failed - -110
sty 18 14:13:52 kernel: ucsi_ccg 0-0008: probe with driver ucsi_ccg failed with error -110
sty 18 14:14:15 kernel: [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

Did you try to remove it or just rename it?

This file should take place then, which allows an empty configuration:

/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

No luck. Now I’m pretty sure it’s an nvidia driver issue, so I’ll try to post on nvidia forums.

1 Like

Oh gush, I am not a developer. But testing the monitor from a live cd I can confirm that hardware is 100% working, it’s only software/driver issue. Maybe there is a way to reset all nvidia driver settings, not only xorg?

Fixed by deleting xiniti and xorg.conf.d directories in /etc/X11 but only to the login to my old kde session :confused:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.