KDE Plasma X11 login hang
Host: Debian Bookworm on Raspberry Pi 4B (USB/SSD boot)
Reported at https://bugs.kde.org/show_bug.cgi?id=467812
Testing the KDE Plasma desktop on Debian Bookworm on a Pi 4B running the 64 bit Debian (not Raspberry Pi) OS. Bookworm is a pending Debian release which at present (2023-03-25) is in "hard freeze" and it is important to get all functionality working.
2023-03-25 Previous
During testing to confirm that the bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019700 had been fixed, it was noted that the desktop hung when logging in. In order to test the bug, the system was upgraded to Debian Unstable. When the system was on Debian Testing, the same issue occurred. Since Testing is in hard freeze (and to be released as Bookworm) the hang warranted further investigation and on Bookworm. This Pi 4B is ordinarily run on a different SSD with Bullseye installed and has not had this problem.
2023-03-25 Process
- Image the SSD with downloaded from https://raspi.debian.net/tested-images/.
- Boot and allow to resize and reboot and login. (Rebooting as necessary to get a session that did not exhibit the emmc timeout issue.)
- Housekeeping: hostname (
charm
), time zone, installsudo
andvim
and add userhbarta
. apt update
,apt upgrade
- Install a kernel (from Unstable)
linux-image-6.1.0-7-arm64_6.1.20-1_arm64.deb
downloaded from https://packages.debian.org/sid/linux-image-6.1.0-7-arm64. No additional dependencies were required. - Reboot.
- Install a minimal KDE Plasma desktop (
apt install plasma-desktop
) - Reboot. No DM. No
xinit
. Nostartx
. Went ahead and installedsddm
. - Start
sddm
which brings up DM. - Login in. Works as expected. Logout.
- Login using Wayland. Works as expected.
After concluding that everything was good, I continued testing and found myself unable to log in again. Additional operations included:
- Install Chromium and Konsole.
- Overclocking to 2MHz
- Back out of the overclock.
- Can't login.
- Add another user
arnold
and try to login as the new user. Still hangs.
~~Conclusion~~ 2023-03-25
Seems like a non-problem. Will continue to test. ... Sadly after some usage, login once again hangs. Will repeat the test.
- Image the SSD with downloaded from https://raspi.debian.net/tested-images/.
- Boot and allow to resize and reboot and login. (Rebooting as necessary to get a session that did not exhibit the emmc timeout issue.)
- Housekeeping: hostname (
charm
), time zone and add userhbarta
. apt update
,apt upgrade
- Install a kernel (from Unstable)
linux-image-6.1.0-7-arm64_6.1.20-1_arm64.deb
downloaded from https://packages.debian.org/sid/linux-image-6.1.0-7-arm64. No additional dependencies were required. apt install plasma-desktop sddm konsole chromium vim -y
- Reboot.
- Login (defaults to Wayland) and looks OK.
- Logout and start monitors
dmesg -follow
,cd /var/log;tail -f Xorg.0.log
- Login (Wayland) and all looks good.
- Logout
- Login (Wayland) and all looks good.
- Start and exit Konsole
- Start and exit Chromium
- logout and login
- Open Chromium. and open google.com. OK. Try to open second page and browser is foobar. Doesn't echo typing, finally able to open a second page (local MkDocs notes) and display is incomplete.
- Open system monitor and Konsole and they work OK. Close all and logout.
- Login to X.org session. Login hangs.
systemctl restart sddm
- Login to X.org session. Login hangs.
systemctl restart sddm
- Login to Wayland session. Login OK.
2023-03-26 Filing a bug report
- Collect information
- Prepare pastebin content
2023-03-26 try XFCE
Test two things:
- X11 works with another DE
- XFCE installs
lightdm
, can test that with KDE
Result:
- XFCE (on X11) starts w/out issue using
lightdm
orsddm
. - Plasma/X11 hangs when started using
lightdm
. - Plasma/Wayland starts normally from
lightdm
.
Bug report at https://bugs.kde.org/show_bug.cgi?id=467812
2023-04-29 further patches to test.
Ref: https://lore.kernel.org/all/20230428223500.23337-5-jim2101024@gmail.com/ and https://lore.kernel.org/all/20230428223500.23337-1-jim2101024@gmail.com/
Suggested by kibi
fetch the patch series from the LKML, and apply it either on the base commit mentioned there, or to current mainline master
(b4 is super useful,b4 mbox $message_id
and you got an mbox ready togit am
)