Black Desktop background/not reacting to right click

As a title suggests, I have an issue with one of my desktop. Two of my monitors are working correctly, but the primary one just has a black background and i am unable to right-click on the desktop. I tried switching primary monitors, and it seems that it just switches issue to next primary monitor, only then I lose topbar as well. I tried googling the issue, and searching through forum, but I did not find any solutions so far. Any ideas?

System:    Kernel: 5.3.12-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.3-x86_64 root=UUID=35d578d0-077a-4e75-b639-4f8a20b90748 rw quiet 
           resume=UUID=d8259a72-d9c4-4a8b-9dc4-625dd58a744a 
           Desktop: KDE Plasma 5.17.3 tk: Qt 5.13.2 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Desktop System: Gigabyte product: B450M DS3H v: N/A serial: <filter> 
           Mobo: Gigabyte model: B450M DS3H-CF v: x.x serial: <filter> UEFI: American Megatrends v: F40 date: 05/16/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 1700 bits: 64 type: MT MCP arch: Zen family: 17 (23) model-id: 1 stepping: 1 
           microcode: 8001138 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 95846 
           Speed: 2812 MHz min/max: 1550/3000 MHz boost: enabled Core speeds (MHz): 1: 2812 2: 3507 3: 3197 4: 3417 5: 3117 
           6: 2754 7: 3165 8: 2842 9: 3050 10: 3109 11: 3053 12: 3048 13: 3096 14: 2946 15: 2940 16: 3073 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GP102 [GeForce GTX 1080 Ti] vendor: eVga.com. driver: nvidia v: 430.64 bus ID: 07:00.0 
           chip ID: 10de:1b06 
           Display: x11 server: X.Org 1.20.5 driver: nvidia compositor: kwin_x11 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1080 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 430.64 direct render: Yes 
Audio:     Device-1: NVIDIA GP102 HDMI Audio vendor: eVga.com. driver: snd_hda_intel v: kernel bus ID: 07:00.1 
           chip ID: 10de:10ef 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel 
           bus ID: 09:00.3 chip ID: 1022:1457 
           Sound Server: ALSA v: k5.3.12-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8168 v: 8.047.04-NAPI 
           port: f000 bus ID: 05:00.0 chip ID: 10ec:8168 
           IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 2.27 TiB used: 751.88 GiB (32.4%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 250GB size: 232.89 GiB block size: physical: 512 B 
           logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 1B2QEXE7 scheme: GPT 
           ID-2: /dev/sda vendor: Seagate model: ST1000DM003-1CH162 size: 931.51 GiB block size: physical: 4096 B 
           logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC47 scheme: MBR 
           ID-3: /dev/sdb vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB block size: physical: 4096 B 
           logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC43 scheme: GPT 
           ID-4: /dev/sdc vendor: Kingston model: SUV500240G size: 223.57 GiB block size: physical: 4096 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: 56RI scheme: GPT 
Partition: ID-1: / raw size: 227.52 GiB size: 201.80 GiB (88.70%) used: 135.29 GiB (67.0%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 5.07 GiB used: 0 KiB (0.0%) fs: swap swappiness: 60 (default) cache pressure: 100 (default) 
           dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 25.2 C mobo: N/A gpu: nvidia temp: 33 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:      Processes: 377 Uptime: 2m Memory: 15.65 GiB used: 2.95 GiB (18.9%) Init: systemd v: 242 Compilers: gcc: 9.2.0 
           Shell: zsh v: 5.7.1 running in: yakuake inxi: 3.0.36 

You can share the
cat /etc/X11/mhwd.d/nvidia.conf
try the 5.4 kernel and also you can try the video-nvidia-44xx driver ... but, is the Power supply powerful enough for the rig you got there?

Yeah, power supply is more than powerful enough. Also this is something that started happening yesterday, and i had this rig for a long time. Here is the conf content you asked for

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 418.43

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
        Option "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    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

Ok, so what changed since "yesterday" ? Updates, you installed something, you removed something ?
The nvidia.conf looks fine.

In addition to previously asked answers, please, provide more info

xrandr --listmonitors
xrandr --listproviders
xrandr
cat /var/log/Xorg.0.log
journalctl -b -p3 --no-pager --no-hostname

Can you describe with more details?

1 Like

xrandr --listMonitors:

Monitors: 3
 0: +*DP-4 1920/595x1080/336+1920+0  DP-4
 1: +HDMI-0 1920/476x1080/267+3840+0  HDMI-0
 2: +DP-0 1920/476x1080/267+0+0  DP-0

xrandr --listproviders:

Providers: number : 1
Provider 0: id: 0x1b9 cap: 0x1, Source Output crtcs: 4 outputs: 8 associated providers: 0 name:NVIDIA-0

xrandr:

Screen 0: minimum 8 x 8, current 5760 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 476mm x 267mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1600x900      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-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 476mm x 267mm
   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 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 595mm x 336mm
   1920x1080     60.00*+ 144.00   119.98    99.93    84.90    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   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    59.93  
DP-5 disconnected (normal left inverted right x axis y axis)

Xorg.0.log:

https://pastebin.com/fpBLesD8

journalctl:

-- Logs begin at Sat 2019-10-26 16:45:50 CEST, end at Tue 2019-12-03 11:54:24 CET. --
Dec 03 11:21:15 kernel: EXT4-fs error (device nvme0n1p2): ext4_mb_generate_buddy:744: group 1563, block bitmap and bg descriptor inconsistent: 20474 vs 20601 free clusters
Dec 03 11:21:15 kernel: EXT4-fs error (device nvme0n1p2): ext4_validate_block_bitmap:376: comm kcminit_startup: bg 1575: bad block bitmap checksum
Dec 03 11:21:15 kernel: EXT4-fs error (device nvme0n1p2): ext4_validate_block_bitmap:376: comm kwin_x11: bg 1590: bad block bitmap checksum
Dec 03 11:21:15 kernel: EXT4-fs error (device nvme0n1p2): ext4_validate_block_bitmap:376: comm kwin_x11: bg 1598: bad block bitmap checksum
Dec 03 10:45:47 sshd[4321]: error: kex_exchange_identification: banner line contains invalid characters

When i start my pc, two of my 3 monitors work correctly. My primary monitor has black background, and i cant right-click on it. I tried switching primary screen, but then primary new screen has the same issue.

honestly, i don't think i did anything major. I did change rendering backend from OpenGL 2.0 to 3.1. I have my os backed up on a daily basis, so i kinda got carelles lately i guess

I suggest you try some things in this order:

  1. Change rendering backend to some other option
  2. Disable compositor
  3. Change wallpaper, use system settings to apply a system provided wallpaper to all desktops
  4. Use other outputs to plug your monitors, try all available ports and combinations
  5. Clear Plasma cache and settings, as suggested in Archwiki

Ok, i tried something else, and so far it works, but it used to work before after a reboot, and im gonna test this settings for couple of days, and check if it stays stable, if not, im gonna definitely try your advices. Thanks for help!

Here is what i did, if anyone has similar issues, but this also resolves somewhat tiresome monitor setup scrambling:

I created .conf file named , 10-monitors.conf (i dont think the name itself actually matters, i might be wrong, but the number indicates order in which files are executed, so for example if you had file 20-something, it would override 10-, but someone might correct me on this one) in /etc/X11/xorg.conf.d/ (if you dont have xorg folder, just create it). Content of my file probably wont work for everybody, but i hope you guys can pull info out of it and apply it to your system. So here it is:

Section "Monitor"
    ### Monitor Identity - Typically HDMI-0 or DisplayPort-0
        Identifier    "DP-0" 

    ### Setting Resolution and Modes
    ## Modeline is usually not required, but you can force resolution with it    
        Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
        Option "PreferredMode" "1920x1080"
        Option        "TargetRefresh" "60"

    ## Advanced
        Option        "Position" "0 0"
EndSection 
    
Section "Monitor"    
    ### Monitor Identity - Typically HDMI-0 or DisplayPort-0
        Identifier    "DP-4" 

    ### Setting Resolution and Modes
    ## Modeline is usually not required, but you can force resolution with it    
        Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
        Option "PreferredMode" "1920x1080"
        Option        "TargetRefresh" "60"

    ### Positioning the Monitor
    ## Basic
        Option "LeftOf" "DP-0"    
    ## Advanced
        Option        "Position" "1920 0"
EndSection 
    
Section "Monitor"    
    ### Monitor Identity - Typically HDMI-0 or DisplayPort-0
        Identifier    "HDMI-0" 

    ### Setting Resolution and Modes
    ## Modeline is usually not required, but you can force resolution with it    
        Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
        Option "PreferredMode" "1920x1080"
        Option        "TargetRefresh" "60"

    ### Positioning the Monitor
    ## Basic
        Option "LeftOf" "DP-4"    
    ## Advanced
        Option        "Position" "3840 0"
    
EndSection 

p.s this is my triple monitor setup that goes from left to right

2 Likes

Well done! Simple solution and best practice.

3 Likes

If this works, please mark post as 'solution' for future reference :slight_smile:

Good style is, not to mark own post as solution.
So, @bjarkih , do it, please, for him. :slight_smile:

2 Likes

He's the one testing the solution :wink:

1 Like

I will give it a couple of days, just to make sure it is working, and not a fluke or something like that, then I will mark it as a solution :slight_smile:

3 Likes

In these past couple of days i did not have any issue, so i am gonna mark my answer as a solution :slight_smile:

1 Like

Forum kindly sponsored by