Sometime I've to kill kwin_x11 because desktop is frozen

It’s happen after long time idle (near one hour), my laptop (with hybrid graphic card intel/nvidia) seems to be awake with desktop but… I can’t click anywhere: applications and taskbar are frozen.

My workaround is to open a VTY with [Alt]+[Shift]+[F3], login then launching htop (with column ‘command’ and tree view) and kill (-7) kwin_x11
kwin_x11 is automaticaly restarted (I’ve to go back to [Alt]+[Shift]+[F2]) and I could close my documents before a restart (I don’t want to continue a strange session).

Does someone has the same problem? Are they others solutions?
I’ve cleaned kde cache, update system, etc.
Problem is there since kde6 (and I’m not an expert of log files that could help for troubleshooting this)

The same happened to me. When I turned off the display and slept overnight, the screen got stuck when I turned it on the next day. I had to restart kwin_x11 to continue using it. This was very frustrating for me.

@Golfy
@ilovesusu

Does this also happen when using Wayland?

I can’t use wayland because nvidia issue with second screen (HDMI output isn’t seen).
Linux sound like to be stable and fun, but without second screen, without nvidia, without KDE :stuck_out_tongue_winking_eye:
Humor appart, I’m trying to understand why and how this happens to open a ticket at nvidia or kde support: but I’m not enough experimented to know where to search… :face_with_diagonal_mouth:

Instead of killing kwin_x11, try the following command which is the correct way to restart Plasma 6 without closing your open apps:

kquitapp6 plasmashell; kstart plasmashell

The output of inxi -zv8 & error logs would be quite helpful in diagnosing what is causing the session freezes.

1 Like

Possibly you can change the settings on the monitor itself. Some monitors apparently default to auto – you might be able to change that to see if magic happens.

Good luck.

It’s more complex: [HowTo] Use Wayland with proprietary NVIDIA drivers
I remember manjaro team have to reverse back to an older nvidia driver to avoid a bug (from Nvidia).

Ah yes, Nvidia… always Nvidia. I suppose I was fortunate in choosing AMD graphics. So many seem to have a wide range of issues with Nvidia/Wayland combinations.

I’ve been using an RX 580 with Wayland for about a year without any issues. All I can do is wish you luck.

Cheers.

1 Like

Yeah more experimental setup’s has more problems.

But using Manjaro KDE on a single GPU with a single Monitor.
Is a solid experience.

I read somewhere that nvidia has energy saving problem’s.
Is this a option for you to disable this feature?

I can power off and on my Monitor connected with Display Port on my PC with my nvidia card under KDE without problems. But if this is related to HDMI or a dual GPU issue or dual Monitor issue? IDK :man_shrugging:

Hi @scotty65 !
I’ve tried tonight your solution (kquitapp6 plasmashell), but it doesn’t work. An error message said:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: from 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.

A killed again x11 and it went back but without menu bar, I’ve had to write kstart plasmashell in a previously console.

by the way, here is my inxi -zv8 :

System:
  Kernel: 6.6.54-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=dca8cecc-c26f-4f8b-b39c-1a12c8ae0445 rw quiet apparmor=1
    security=apparmor resume=UUID=d97779d9-142d-430d-b9c0-e61a86feea80
    udev.log_priority=3 sysrq_always_enabled=1 nvidia_drm.modeset=0
    nvidia_drm.fbdev=0
  Desktop: KDE Plasma v: 6.1.5 tk: Qt v: N/A info: frameworks v: 6.6.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: Dell product: G7 7700 v: N/A
    serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: Dell model: 0M7GYR v: A00 serial: <superuser required>
    part-nu: 09F9 uuid: <superuser required> UEFI: Dell v: 1.33.0
    date: 06/03/2024
Battery:
  ID-1: BAT0 charge: 82.4 Wh (100.0%) condition: 82.4/97.0 Wh (84.9%)
    volts: 12.6 min: 11.4 model: BYD DELL XYCW01A type: Li-poly
    serial: <filter> status: full
  Device-1: hidpp_battery_0 model: Logitech Wireless Mobile Mouse MX
    Anywhere 2S serial: <filter> charge: 55% (should be ignored)
    rechargeable: yes status: discharging
Memory:
  System RAM: total: 16 GiB available: 15.39 GiB used: 10.8 GiB (70.2%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 64 GiB slots: 2 modules: 2 EC: None
    max-module-size: 32 GiB note: est.
  Device-1: DIMM A type: DDR4 detail: synchronous size: 8 GiB speed:
    spec: 3200 MT/s actual: 2933 MT/s volts: curr: 1 width (bits): data: 64
    total: 64 manufacturer: 80CE00000000 part-no: M471A1K43DB1-CWE
    serial: <filter>
  Device-2: DIMM B type: DDR4 detail: synchronous size: 8 GiB speed:
    spec: 3200 MT/s actual: 2933 MT/s volts: curr: 1 width (bits): data: 64
    total: 64 manufacturer: 80CE00000000 part-no: M471A1K43DB1-CWE
    serial: <filter>
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-10750H bits: 64 type: MT MCP arch: Comet Lake
    gen: core 10 level: v3 note: check built: 2020 process: Intel 14nm
    family: 6 model-id: 0xA5 (165) stepping: 2 microcode: 0xFC
  Topology: cpus: 1x dies: 1 clusters: 6 cores: 6 threads: 12 tpc: 2
    smt: enabled cache: L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB
    desc: 6x256 KiB L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 4369 min/max: 800/5000 scaling: driver: intel_pstate
    governor: powersave cores: 1: 4369 2: 4369 3: 4369 4: 4369 5: 4369 6: 4369
    7: 4369 8: 4369 9: 4369 10: 4369 11: 4369 12: 4369 bogomips: 62431
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl
    dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d
    fma fpu fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb
    ibrs ibrs_enhanced ida intel_pt invpcid lahf_lm lm mca mce md_clear mmx
    monitor movbe mpx msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pcid
    pclmulqdq pdcm pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdrand
    rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1
    sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
    tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec
    xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: Split huge pages
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_rstack_overflow status: Not affected
  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: Enhanced / Automatic IBRS; IBPB:
    conditional; RSB filling; PBRSB-eIBRS: SW sequence; BHI: SW loop, KVM:
    SW loop
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Dell driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:9bc4
    class-ID: 0300
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Dell
    driver: nvidia v: 550.120 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-09; EOL~2026-12-xx) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-2022 pcie: gen: 2 speed: 5 GT/s
    lanes: 8 link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1f15 class-ID: 0300
  Device-3: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:4
    chip-ID: 0bda:565a class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.2
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
    unloaded: nouveau alternate: fbdev,nv,vesa dri: iris gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1080 s-dpi: 96 s-size: 1182x285mm (46.54x11.22")
    s-diag: 1216mm (47.87")
  Monitor-1: HDMI-1-0 pos: primary,left res: 2560x1080 hz: 60 dpi: 81
    size: 798x334mm (31.42x13.15") diag: 865mm (34.06") modes: N/A
  Monitor-2: eDP-1 pos: right res: 1920x1080 hz: 144 dpi: 128
    size: 382x215mm (15.04x8.46") diag: 438mm (17.26") modes: N/A
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 1 drv: iris device: 3 drv: swrast gbm: drv: iris
    surfaceless: drv: nvidia x11: drv: iris inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa
    v: 24.2.4-arch1.0.1 glx-v: 1.4 direct-render: yes renderer: Mesa Intel
    UHD Graphics (CML GT2) device-ID: 8086:9bc4 memory: 7.51 GiB
    unified: yes
  API: Vulkan v: 1.3.295 layers: 7 device: 0 type: discrete-gpu
    name: NVIDIA GeForce RTX 2060 driver: nvidia v: 550.120
    device-ID: 10de:1f15 surfaces: xcb,xlib device: 1 type: integrated-gpu
    name: Intel UHD Graphics (CML GT2) driver: mesa intel
    v: 24.2.4-arch1.0.1 device-ID: 8086:9bc4 surfaces: xcb,xlib
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Dell
    driver: sof-audio-pci-intel-cnl alternate: snd_hda_intel, snd_soc_skl,
    snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: 8086:06c8 class-ID: 0401
  Device-2: NVIDIA TU106 High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10f9 class-ID: 0403
  API: ALSA v: k6.6.54-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.2.5 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi vendor: Rivet Networks Dual Band
    Wi-Fi 6 Killer AX1650i 160MHz 2x2 driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek vendor: Dell driver: r8168 v: 8.053.00-NAPI
    modules: r8169 pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000
    bus-ID: 3c:00.0 chip-ID: 10ec:2502 class-ID: 0200
  IF: enp60s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: docker0 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:8 chip-ID: 8087:0026
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.2
    lmp-v: 11 status: discoverable: no pairing: no class-ID: 6c010c
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.38 TiB used: 921.34 GiB (65.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDBRPG0010BNC-WRSN size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 102000WD temp: 44.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:4 vendor: Toshiba model: KBG40ZNS512G
    NVMe KIOXIA 512GB size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 10410106 temp: 36.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 914.28 GiB size: 898.86 GiB (98.31%)
    used: 618.76 GiB (68.8%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: dca8cecc-c26f-4f8b-b39c-1a12c8ae0445
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 28.4 MiB (9.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: NO_LABEL uuid: 7F76-1603
  ID-3: /mnt/administratifs raw-size: N/A size: 3.57 TiB
    used: 599.21 GiB (16.4%) fs: cifs dev: /dev/administratifs
  ID-4: /run/media/david/Win11 raw-size: 455.5 GiB
    size: 455.5 GiB (100.00%) used: 297.32 GiB (65.3%) fs: ntfs
    dev: /dev/nvme1n1p3 maj-min: 259:7 label: Win11 uuid: 4E9CA42F9CA4140D
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 16.93 GiB used: 5.23 GiB (30.9%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3 label: swap
    uuid: d97779d9-142d-430d-b9c0-e61a86feea80
Unmounted:
  ID-1: /dev/nvme1n1p1 maj-min: 259:5 size: 150 MiB fs: vfat label: ESP
    uuid: DC0E-737B
  ID-2: /dev/nvme1n1p2 maj-min: 259:6 size: 128 MiB
    fs: <superuser required> label: N/A uuid: N/A
  ID-3: /dev/nvme1n1p4 maj-min: 259:8 size: 990 MiB fs: ntfs
    label: WINRETOOLS uuid: B0F6506BF6503436
  ID-4: /dev/nvme1n1p5 maj-min: 259:9 size: 18.64 GiB fs: ntfs
    label: Image uuid: B60450B3045077F7
  ID-5: /dev/nvme1n1p6 maj-min: 259:10 size: 1.39 GiB fs: ntfs
    label: DELLSUPPORT uuid: 3CEE8CACEE8C604E
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-2:2 info: Logitech Unifying Receiver
    type: keyboard,mouse,HID driver: logitech-djreceiver,usbhid interfaces: 3
    rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 98mA
    chip-ID: 046d:c52b class-ID: 0300
  Hub-2: 1-3:3 info: Terminus Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 1a40:0101 class-ID: 0900
  Device-1: 1-3.4:5 info: Apple Aluminium Keyboard (ANSI)
    type: keyboard,mouse driver: apple,usbhid interfaces: 2 rev: 1.1
    speed: 1.5 Mb/s (183 KiB/s) lanes: 1 mode: 1.0 power: 202mA
    chip-ID: 05ac:024f class-ID: 0301 serial: <filter>
  Device-2: 1-5:4 info: Realtek Integrated_Webcam_HD type: video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s)
    lanes: 1 mode: 2.0 power: 500mA chip-ID: 0bda:565a class-ID: 0e02
    serial: <filter>
  Device-3: 1-9:9 info: Shenzhen Goodix FingerPrint
    type: <vendor specific> driver: N/A interfaces: 1 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 27c6:538d class-ID: ff00
  Device-4: 1-11:7 info: Alienware LED controller type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 2.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 187c:0550
    class-ID: 0300 serial: <filter>
  Device-5: 1-14:8 info: Intel AX201 Bluetooth type: bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
    mode: 1.1 power: 100mA chip-ID: 8087:0026 class-ID: e001
  Hub-3: 2-0:1 info: super-speed hub ports: 8 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-4: 5-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-5: 6-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 64.0 C pch: 61.0 C mobo: 54.0 C sodimm: SODIMM C
  Fan Speeds (rpm): cpu: 2434
Repos:
  Packages: 2158 pm: pacman pkgs: 2081 libs: 546 tools: pamac,yay
    pm: flatpak pkgs: 44 pm: snap pkgs: 33
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirror.ibakerserver.pt/manjaro/stable/$repo/$arch
    2: https://manjaro.ynh.ovh/stable/$repo/$arch
Processes:
  CPU top: 5 of 382
  1: cpu: 9.8% command: plasmashell pid: 30972 mem: 449.7 MiB (2.8%)
  2: cpu: 6.7% command: htop pid: 30528 mem: 7.87 MiB (0.0%)
  3: cpu: 5.4% command: kwin_x11 pid: 30735 mem: 396.5 MiB (2.5%)
  4: cpu: 4.4% command: firefox pid: 3732 mem: 480.5 MiB (3.0%)
  5: cpu: 4.1% command: VirtualBoxVM pid: 4784 mem: 1877.3 MiB (11.9%)
  Memory top: 5 of 382
  1: mem: 1877.3 MiB (11.9%) command: VirtualBoxVM pid: 4784 cpu: 4.1%
  2: mem: 878.4 MiB (5.5%) command: thunderbird pid: 3820 cpu: 0.9%
  3: mem: 480.5 MiB (3.0%) command: firefox pid: 3732 cpu: 4.4%
  4: mem: 449.7 MiB (2.8%) command: plasmashell pid: 30972 cpu: 9.8%
  5: mem: 396.5 MiB (2.5%) command: kwin_x11 pid: 30735 cpu: 5.4%
Info:
  Processes: 382 Power: uptime: 8h 36m states: freeze,mem,disk
    suspend: s2idle avail: deep wakeups: 1 hibernate: platform avail: shutdown,
    reboot, suspend, test_resume image: 6.14 GiB
    services: org_kde_powerdevil,upowerd Init: systemd v: 256
    default: graphical tool: systemctl
  Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: Zsh v: 5.9
    running-in: konsole inxi: 3.3.36

Going this far into swap space will cause issues. That’s about the point when mine starts to struggle.

What’s eating up all the RAM? Browser session a possibility, if playing lots of YouTube videos. But I often get weeks of uptime (sometimes longer) even with quite heavy use, before all the memory leaks from Firefox accumulate and start causing excess swap usage.

Restarting Firefox (when it starts to get sluggish, in my case a few days to a week or two, usually) clears a lot out, but not all of it.

I find it handy to have watch -n30 free -h running in a Terminal. Adjust that value to a lower one (maybe 5 seconds) and keep an eye on it when you are running programs (especially the browser, as mentioned above!).