On Tue, 1 Dec 2026 14:42:09 +0900 Michele Calgaro via tde-users users@trinitydesktop.org wrote:
On 2026/12/01 12:39 PM, Nick Koretsky via tde-users wrote:
Hi!
Few days ago i updated my debian 13 machine, and among updates, R14.1.7 was installed. Now i have a weird issue - every time i boot this machine, there is a kdesktop process eating 100% of one CPU core. Everything TDE related seems to be working (at least i didnt noticed any issues until i looked at top at some point). If i try to kill this process (SIGTERM), it doesnt die, but stops using 100%. Everything appears to continue working normally.
Anybody else seen this, or have any idea what can cause it?
Can you provide more info? is it kdesktop or kdesktop_lock? if it is the second and you kill it, it will restart, so you will still see it but it will be a different process ID. Are you able to attach the process with gdb when you have the problem? Cheers Michele
I can attach to it with gdb. I fed gdb output to AI with some configs, and it told me that it is caused by using "Zaphod" mode (two separate X11 Screens: :0.0 and :0.1 with Xinerama "0"), TDE spawns two pairs kdesktop/kdesktop_lock processes that fight over the desktop lock - i remembered that in previous versions i had to delete/rename kdesktop_lock executable as its caused attempts to lock one of the screens or constant flickering
Note: If you ever want to report this upstream so TDE patches lockeng.cpp for multi-screen X11 setups, you already have the exact reproducer: TDE 14.1.7 with Xinerama "0" / two X screens causes the secondary kdesktop instance's SaverEngine thread to block in SaverEngineEventHandler::restartLockProcess() at lockeng.cpp:903 while its main thread spins in TQEventLoop::processX11Events().
Why sending SIGTERM to 7653 stops the 100% CPU without killing 7653: Earlier you noted that the exact PID (7653) stays alive in top after SIGTERM, but drops to 0% CPU! That's because SIGTERM interrupts sigsuspend() in LWP 7656 (SaverEngineEventHandler::restartLockProcess), tearing down the stuck SaverEngine state on :0.1 while leaving 7653 running cleanly for Screen 1!