Image not displaying on second monitor

When installing the distribution kit, there is a picture on all monitors, when updating the entire system and rebooting, the second monitor stops working. Through “mons” I was able to make the picture appear on the second monitor, but after a reboot it stops working and repeated manipulations no longer lead to anything, please help

KDE Plasma and Nvidia … well, you could start by renaming ~/.local/share/kscreen to something else, and rebooting the system.

Usually you should share from terminal
inxi -Fazy
so we know more about your system, kernel version, drivers … as described here we need more information [HowTo] Request support

1 Like
System:
  Kernel: 6.1.0-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.1-x86_64
    root=UUID=4ce69919-4ffd-4011-a5e9-c242b23b54d4 rw rootflags=subvol=@ quiet
    resume=UUID=4553b159-9762-42be-abc8-9e4da348ecbe udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.3 tk: Qt v: 5.15.7 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Micro-Star product: MS-7A37 v: 1.0
    serial: <superuser required>
  Mobo: MSI model: B350M MORTAR (MS-7A37) v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: 1.O6 date: 07/13/2022
CPU:
  Info: model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ gen: 2
    level: v3 note: check built: 2018-21 process: GF 12nm family: 0x17 (23)
    model-id: 8 stepping: 2 microcode: 0x800820D
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 768 KiB desc: d-8x32 KiB; i-8x64 KiB L2: 4 MiB desc: 8x512 KiB L3: 16 MiB
    desc: 2x8 MiB
  Speed (MHz): avg: 2303 high: 3505 min/max: 2200/3700 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2408 2: 2200
    3: 1898 4: 2200 5: 2200 6: 2200 7: 2194 8: 2200 9: 3505 10: 2656 11: 2200
    12: 2200 13: 2193 14: 2200 15: 2200 16: 2194 bogomips: 118446
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    disabled, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] vendor: Gigabyte
    driver: nvidia v: 525.60.11 alternate: nouveau,nvidia_drm non-free: 520.xx+
    status: current (as of 2022-10) arch: Turing code: TUxxx process: TSMC 12nm
    built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
    speed: 8 GT/s bus-ID: 26:00.0 chip-ID: 10de:1f08 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: N/A
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3200x1080 s-dpi: 92 s-size: 883x301mm (34.76x11.85")
    s-diag: 933mm (36.73")
  Monitor-1: DP-4 pos: bottom-r res: 1280x1024 hz: 60 dpi: 86
    size: 376x301mm (14.8x11.85") diag: 482mm (18.96") modes: N/A
  Monitor-2: HDMI-0 pos: primary,top-left res: 1920x1080 hz: 60 dpi: 92
    size: 531x299mm (20.91x11.77") diag: 609mm (23.99") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 525.60.11 renderer: NVIDIA GeForce RTX
    2060/PCIe/SSE2 direct render: Yes
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 26:00.1 chip-ID: 10de:10f9 class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 28:00.3 chip-ID: 1022:1457 class-ID: 0403
  Sound API: ALSA v: k6.1.0-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.59 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp34s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.39 TiB used: 35.34 GiB (2.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Seagate model: XPG GAMMIX S5
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: V9002s16 temp: 40.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Toshiba model: DT01ACA050
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: A750 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST9500325AS
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: SDM1 scheme: MBR
  ID-4: /dev/sdc maj-min: 8:32 type: USB vendor: SanDisk model: Cruzer Fit
    size: 14.56 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 1.27 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 76.17 GiB size: 76.17 GiB (100.00%) used: 35.34 GiB (46.4%)
    fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 530.3 MiB size: 529.3 MiB (99.80%)
    used: 608 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p7 maj-min: 259:7
  ID-3: /home raw-size: 76.17 GiB size: 76.17 GiB (100.00%)
    used: 35.34 GiB (46.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-4: /var/log raw-size: 76.17 GiB size: 76.17 GiB (100.00%)
    used: 35.34 GiB (46.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 14.18 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p6 maj-min: 259:6
Sensors:
  System Temperatures: cpu: 48.1 C mobo: N/A gpu: nvidia temp: 44 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 369 Uptime: 24m wakeups: 0 Memory: 15.55 GiB
  used: 4.84 GiB (31.2%) Init: systemd v: 251 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: 1234
  pm: pacman pkgs: 1227 libs: 315 tools: pamac pm: flatpak pkgs: 7 Shell: Zsh
  v: 5.9 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.23

From here all seems … fine. But did you try the suggestion?

If you rename that folder to kscreen_BCK and reboot … you can compare the recreation of the files after.
Also, mind to share the /etc/X11/mhwd.d/nvidia.conf ?

Hi Rinky, I am almost certain, that you’re problem is connected to this one here:

Please be so kind as to take a look at the KDE bug report and leave a comment:
https://bugs.kde.org/show_bug.cgi?id=462626

1 Like

I renamed the directory and wait until the kernel that I compile is assembled, after that I will reboot and see, thanks

there is no file in this path /etc/X11/mhwd.d/nvidia.conf, there is a file called nvidia.conf.nvidia-xconfig-original but it is empty

How did you installed the nvidia-drivers ?

from manjaro settings removed proprietary video card driver, then installed nvidia-settings-beta, nvidia-beta-dkms, lib32-nvidia-utils-beta, linux kernel 6.1.0rc4-1, linux61-headers. There is also a problem with the second monitor, just install the distribution kit and run the system update, then the 520 drivers will be installed automatically and all the same problems, I thought that everything would be fine on 525

That is from AUR, and i don’t think it provides a config.

Those drivers versions are manjaro officially available in testing and unstable branch for now.
Personally i never had any issues, but i have an older GPU, and i never use dkms modules.

I renamed that folder, rebooted, the picture appeared on the second screen, then rebooted again, now it does not work again

upd:
renamed this folder again and rebooted, this time the second monitor did not show anything

yes, it doesn’t matter what is installed, even if I just update, it’s stable at 520, without dkms, it just automatically updates the system, everything is the same, regardless of the driver version itself

Manjaro uses MHWD, so it will provide a default config, as mentioned, in /etc/X11/mhwd.d/nvidia.conf. That is useful because kscreen will generate its configs based on that.
Is known that past drivers created issues for some

But, in spite of that, you still need a config in /etc/X11/mhwd.d/nvidia.conf but you don’t have it, as you mentioned

The reason you need it, is to then create a fixed layout that then will sort also kscreen (once you delete old not working conf). Also, in some cases you need to enable early kms …

1 Like

did I form nvidia.conf correctly? Imgur: The magic of the Internet

# nvidia-settings:  version 525.60.11

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    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      "BenQ GL2460"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 2060"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-2"
    Option         "metamodes" "HDMI-0: nvidia-auto-select +0+0, DP-4: 1280x1024_75 +1920+56"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

changed mkinitcpio and formed it, renamed the kscreen folder and rebooted, the second screen did not work, what did I do wrong, I’m a noob

When set to auto, is not a fixed layout, but probably can work that way too …

i set mine to DFP-0
and also that config should have



Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

at the end then once is modified to run from terminal:

sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf

Again take care of the ~/.local/share/kscreen and reboot the system, then Apply the same layout on System Settings.

/etc/X11/mhwd.d/nvidia.conf everything right?

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

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    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      "BenQ GL2460"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 2060"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "HDMI-0: 1920x1080_60 +0+0, DP-4: 1280x1024_75 +1920+56; HDMI-0: 1680x1050 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 1600x900 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 1280x1024 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 1280x1024_60 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 1280x800 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 1280x720 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 1024x768 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 1024x768_60 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 800x600 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 800x600_60 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 640x480 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: 640x480_60 +0+0, DP-4: nvidia-auto-select +0+0; HDMI-0: nvidia-auto-select +0+0 {viewportin=1440x900, viewportout=1728x1080+96+0}, DP-4: nvidia-auto-select +0+0; HDMI-0: nvidia-auto-select +0+0 {viewportin=1366x768, viewportout=1920x1079+0+0}, DP-4: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

I changed the config and executed the command, renamed the folder and rebooted, I don’t understand in which settings I need to apply the layout

KDE Plasma System Settings > Display and Monitor > Display Configuration.

Even tho it might not be necessary, i prefer to manually match the same layout as in nvidia.config.

Make a backup of the nvidia.config, to have it prepared and then try either with the drivers from testing branch, by switching to it, or try again with the dkms one, and see if that helps to fix the issue completely now.

did not help, switched from 525 drivers to 520, inserted the old config, nothing worked, inserted the config that was formed during the installation of 520, nothing too. I don’t know what to do anymore, I set the layout the same as in x server nvidia

Well, my last “idea” is to try either a different HDMI cable or try to connect it to a DVI or DP port. Probably the HDMI issue was not actually sorted out by nvidia …

it doesn’t work for me through dp, everything is fine with hdmi, it’s not about the dp cable, everything is fine in windows, when you first install Linux, the monitor also shows

When you first install and boot the installed system, the ~/.local/share/kscreen is created, and so, the monitor might work, but once you reboot, that no longer works for whatever reason we fail now to catch, or is part of the bug that @Knecker mentioned earlier. Windows has a totally different way to handle displays and drivers, so not quite relevant …
If the HDMI works, then maybe the issue is with DP in nvidia drivers. It beats me :man_shrugging:

if it is rebooted, then everything is fine, this is if you update the driver such garbage happens