I have three Dell laptops, all running Kubuntu 22.04 LTS. Two are Precision 5530's and one is a slightly older Precision 5520. The KDE desktop "freezes" on all three within about 1 to 2 days of use, after which I can ssh into the machine to check the logs and reboot it.
To try to isolate the cause, on one of the 5530's I upgraded the kernel from 5.15.0 to 5.19.17, but that didn't help. I also installed and ran with Wayland instead of Xorg, but that didn't help either. In all variants on all machines, dmesg shows errors like this (and some other errors too):
[17732.600620] i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=840731 end=840732) time 1273 us, min 1073, max 1079, scanline start 1016, end 1103
but I've no idea if they are pointing to the cause of the problem.
I described the problem as "freezing", but when running Xorg what actually happens is that all the windows lose their borders and nothing responds to mouse clicks (although I can still move the mouse cursor). When running Wayland all the windows disappear entirely so that I'm left with just the KDE panel and, again, the system stops responding to mouse clicks.
By the way, until very recently I used to run CentOS 7 on the 5520, and it ran flawlessly, so I don't think the current problem is caused by the hardware.
Does anyone have any suggestions on how I could track down and fix the problem whilst still running Kubuntu 22.04 LTS.
Edit on 2023-03-10:
@popey's suggestion of adding intel_idle.max_cstate=1
to GRUB_CMDLINE_LINUX_DEFAULT
didn't work for me. My machine failed again after about 2 days of uptime. I was running kernel 5.19.17 and Xorg (not Wayland). All the windows lost their boarders and, although I could move the mouse cursor, the system was unresponsive to mouse clicks.
Here is the relevant output from journalctl
:
2023-03-10T00:52:48+0000 bat dbus-daemon[873]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.10' (uid=0 pid=875 comm="/usr/sbin/NetworkManager --no-daemon ")
2023-03-10T00:52:49+0000 bat systemd[1]: Starting Network Manager Script Dispatcher Service...
2023-03-10T00:52:49+0000 bat dbus-daemon[873]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
2023-03-10T00:52:49+0000 bat systemd[1]: Started Network Manager Script Dispatcher Service.
2023-03-10T00:52:54+0000 bat wpa_supplicant[910]: wlp59s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-66 noise=9999 txrate=130000
2023-03-10T00:52:59+0000 bat systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
2023-03-10T00:53:01+0000 bat wpa_supplicant[910]: wlp59s0: CTRL-EVENT-BEACON-LOSS
2023-03-10T01:14:51+0000 bat systemd[1435]: Started Brave Web Browser - Web Browser.
2023-03-10T01:14:52+0000 bat vncserver-x11-serviced[2795]: X Error of failed request: BadWindow (invalid Window parameter)
2023-03-10T01:14:52+0000 bat vncserver-x11-serviced[2795]: Major opcode of failed request: 2 (X_ChangeWindowAttributes)
2023-03-10T01:14:52+0000 bat vncserver-x11-serviced[2795]: Resource id in failed request: 0x1000013
2023-03-10T01:14:52+0000 bat vncserver-x11-serviced[2795]: Serial number of failed request: 2279
2023-03-10T01:14:52+0000 bat vncserver-x11-serviced[2795]: Current serial number in output stream: 2281
2023-03-10T01:14:54+0000 bat vncserverui[388941]: Unable to locate theme engine in module_path: "adwaita",
# Machine failed around here
2023-03-10T01:17:01+0000 bat CRON[389377]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
2023-03-10T01:17:01+0000 bat CRON[389378]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
2023-03-10T01:17:01+0000 bat CRON[389377]: pam_unix(cron:session): session closed for user root
2023-03-10T01:17:41+0000 bat sshd[389505]: pam_unix(sshd:session): session opened for user xxxxx(uid=1000) by (uid=0)
2023-03-10T01:17:41+0000 bat systemd-logind[906]: New session 94 of user xxxxx.
2023-03-10T01:17:41+0000 bat systemd[1]: Started Session 94 of User xxxxx.
2023-03-10T01:17:44+0000 bat sudo[389648]: xxxxx : TTY=pts/32 ; PWD=/home/xxxxx ; USER=root ; COMMAND=/usr/bin/su -l
2023-03-10T01:17:44+0000 bat sudo[389648]: pam_unix(sudo:session): session opened for user root(uid=0) by xxxxx(uid=1000)
2023-03-10T01:17:44+0000 bat su[389650]: (to root) root on pts/33
2023-03-10T01:17:44+0000 bat su[389650]: pam_unix(su-l:session): session opened for user root(uid=0) by xxxxx(uid=0)
2023-03-10T01:18:24+0000 bat dbus-daemon[873]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.57' (uid=1000 pid=1799 comm="/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdev") (using servicehelper)
2023-03-10T01:18:24+0000 bat dbus-daemon[873]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
I don't see anything in the logs that is helpful. The message, just prior to the problem, about
Unable to locate theme engine in module_path: "adwaita"
had already occurred 58 times in the logs, so it's unlikely to be associated with the problem.
Edit on 2023-03-22:
@Sevinnex's suggestion of
KDE > System Settings > Display and Monitor > Compositor > Enable on startup: off
didn't work for me.
I considered entering a bug against KDE because my KDE panel stops updating (e.g., the clock doesn't update the time), but to submit a bug on the KDE Bug Tracker requires knowledge of the precise KDE component and a way to reproduce the bug. I have neither. It's pretty bad that I have three different machines, all requiring a reboot every few days when the desktop becomes unresponsive to mouse clicks, and no useful information is being reports by journalctl
.
The machine has the following two graphics cards (from lspci
):
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
01:00.0 3D controller: NVIDIA Corporation GP107GLM [Quadro P1000 Mobile] (rev a1)
Could the problem be something to do with those? I don't know what else to try, so I'd be very grateful for any suggestions.
Edit on 2023-04-05:
I've switched to using Xfce
instead of KDE Plasma
. It's a shame as the latter is by far my preferred desktop environment.
Edit on 2023-04-13:
I've now been running Xfce
for 10 days with no problems, so I'm pretty sure the issues discussed above are problems with the version of KDE Plasma that's shipped with Kubuntu 22.04 LTS.
Edit on 2023-06-03:
Based on @TruismsHounds suggestion below, I've been running Plasma on Kubuntu 23.04 for 26 days without any problems.