Black desktop on start

Hey, i have got an new gpu and an m.2 so i had to install garuda again, however now my main displays desktop has no desktop functionality, and i have seen the same happen with my previous install, however that was like 1 in 20 boots, now it is every time, it is fixed by me changing the screen resolution and then reverting the changes, so i am wondering if there is an permanent solution for that, other than creating a script that would automatically change the screen resolution like 5 ish seconds after login and then back again
here's a screenshot of what i see after i boot:

here's the inxi, tho i don't think that'll help:

System:
  Kernel: 6.1.23-hardened1-1-hardened arch: x86_64 bits: 64 compiler: gcc
    v: 12.2.1 parameters: pti=on page_alloc.shuffle=1
    BOOT_IMAGE=/@/boot/vmlinuz-linux-hardened
    root=UUID=6104ec12-31c8-4149-b0f4-da54e147aa2b rw rootflags=subvol=@
    rd.luks.uuid=a2fc9904-d25f-4977-ac91-c799b10c769a rd.udev.log_priority=3
    vt.global_cursor_default=0
    rd.luks.uuid=46b27a70-db7b-45e9-b0fd-5795061b5d01
    resume=/dev/mapper/luks-46b27a70-db7b-45e9-b0fd-5795061b5d01 loglevel=3
    ibt=off
  Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.9 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: B450-A PRO MAX (MS-7B86) v: 4.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: M.H0
    date: 07/26/2022
CPU:
  Info: model: AMD Ryzen 5 5500 bits: 64 type: MT MCP arch: Zen 3 gen: 4
    level: v3 note: check built: 2021-22 process: TSMC n7 (7nm)
    family: 0x19 (25) model-id: 0x50 (80) stepping: 0 microcode: 0xA50000D
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1583 high: 3600 min/max: 1400/4268 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3600 2: 1400
    3: 1400 4: 1400 5: 1400 6: 1400 7: 1400 8: 1400 9: 1400 10: 1400 11: 1400
    12: 1400 bogomips: 86271
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: ASUSTeK
    driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
    built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
    active: DP-2,HDMI-A-1 empty: DP-1,DP-3 bus-ID: 12:00.0 chip-ID: 1002:73ff
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
    alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.00x11.22")
    s-diag: 1055mm (41.54")
  Monitor-1: DP-2 mapped: DisplayPort-1 pos: right model: HP V22e
    serial: <filter> built: 2020 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
    size: 477x268mm (18.78x10.55") diag: 547mm (21.5") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,left
    model: Samsung C24F390 serial: <filter> built: 2019 res: 1920x1080 hz: 60
    dpi: 94 gamma: 1.2 size: 521x293mm (20.51x11.54") diag: 598mm (23.5")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: AMD Radeon RX 6600 (navi23 LLVM
    15.0.7 DRM 3.49 6.1.23-hardened1-1-hardened) direct-render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    bus-ID: 3-2.2:4 pcie: gen: 4 chip-ID: 0c76:161e class-ID: 0300
    speed: 16 GT/s lanes: 16 bus-ID: 12:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 30:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-3: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 30:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Device-4: JMTek LLC. USB PnP Audio Device type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  API: ALSA v: k6.1.23-hardened1-1-hardened status: kernel-api tools: N/A
  Server-1: PipeWire v: 0.3.68 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
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: e000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 4.44 TiB used: 240.9 GiB (5.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000P3SSD8
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: P9CR30A temp: 21.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Silicon Power
    model: SPCC Solid State Disk size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 9A0
    scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM008-2FR102
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 0001 scheme: MBR
  ID-4: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST500LX005-1CW162
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: LVD1 scheme: GPT
  ID-5: /dev/sdd maj-min: 8:48 vendor: Crucial model: CT1000BX500SSD1
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 054
  ID-6: /dev/sde maj-min: 8:64 type: USB vendor: SanDisk model: USB 3.2Gen1
    size: 114.6 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 1.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 914.15 GiB size: 914.15 GiB (100.00%)
    used: 40.94 GiB (4.5%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a2fc9904-d25f-4977-ac91-c799b10c769a
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 752 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 914.15 GiB size: 914.15 GiB (100.00%)
    used: 40.94 GiB (4.5%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a2fc9904-d25f-4977-ac91-c799b10c769a
  ID-4: /var/log raw-size: 914.15 GiB size: 914.15 GiB (100.00%)
    used: 40.94 GiB (4.5%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a2fc9904-d25f-4977-ac91-c799b10c769a
  ID-5: /var/tmp raw-size: 914.15 GiB size: 914.15 GiB (100.00%)
    used: 40.94 GiB (4.5%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a2fc9904-d25f-4977-ac91-c799b10c769a
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 17.06 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-46b27a70-db7b-45e9-b0fd-5795061b5d01
  ID-2: swap-2 type: zram size: 15.52 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 29.6 C mobo: N/A gpu: amdgpu temp: 26.0 C
    mem: 34.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
  Processes: 331 Uptime: 8m wakeups: 0 Memory: 15.52 GiB
  used: 3.76 GiB (24.2%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1266
  libs: 341 tools: octopi,paru pm: appimage pkgs: 0 Shell: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.26
Garuda (2.6.16-1):
  System install date:     2023-04-12
  Last full system update: 2023-04-12
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            

do you also have no window decorations? KWin might have crashed. You should check the logs

no, i do have them, it's just that the desktop on the main display is not accepting any clicks nor showing any files that should be on that display, tho everything works fine again after i change display settings like the resolution and then revert the changes again, tho if you still think it's KWin, tell me where the logs should be located at and i'll see if i upload them

You're running the -hardened kernel. What would happen if you installed and booted into the -zen and/or -lts kernels?

1 Like

same thing, changed to the hardened on this machine only a couple boots ago, since i forgot to change the kernel

Let's start it step wise. It could be just the plasmashell that's collapsed. If can launch terminal with shortcut ctrl + alt + T or from tty you can run

setsid plasmashell --replace &

If that works it could be the plasmashell that was the issue if that doesn't work attack kwin next.

setsid kwin_x11 --replace &

To share the error logs that were generated if you can launch the terminal as asked when the said problem occurs.

journalctl -r -n 500 | tb

That would output a URL share that here

1 Like

setsid plasmashell --replace &

that did it, however that tb command is not found by my system nor “find-the-command”
i uploaded the log to Garuda's PrivateBin if that’s what you meant

That’s good to know. However, the command sometimes doesn’t load the keyboard shortcuts for me. If it happens for you as well you can use

killall plasmashell; kstart5 plasmashell

instead of the above command and close the terminal normally. You could even set it as a keyboard shortcut in your settings.

This is an alias for nc termbin.com 9999 it just pipes your output to termbin and stores the output there for an hour or more I guess. I don’t remember the exact duration. Basically the same work as garuda’s privatebin just from terminal. Kinda handy when you are stuck with a TTY and no way to upload the error log on the forum.

That’s good to know. Unfortunately I am not knowledgeable enough to discern what’s wrong with your system to be doing what it’s doing. I hope someone here will be able to take a look at it and find out the reason.

In the meanwhile you could set the command as a keyboard shortcut as a temporary solution until you find a permanent fix.

2 Likes

i tried to have that in the autostart, however it does not work somehow; do you know how i could have the system do that automatically say 5 seconds after login without me having to enter a command or shortcut?

I am not too sure because I have never done anything similar myself but you could write a bash script like this

#!/bin/bash
sleep 5
killall plasmashell
kstart5 plasmashell

then change it's permissions with

chmod 755 bashScriptName

and then add this bash script to autostart via

System Settings --> Startup and shutdown -->Autostart --> Add --> Add login script

and then choose the bash script.
Though honestly the wait time of 5 seconds seem too long to me. I for sure can't wait that long. Why not go for 1 or 0.5 instead??

3 Likes

thank you, that did it, tho i do the 5 seconds because of i don't know when the script starts exactly, i think best case it starts from the second i press enter after my password, then have it wait 5 sec for the desktop to show up and be done, worst case i see the desktop and i have to wait 5 seconds, i have time, i'm just lazy

1 Like

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