systemd-analyze
Can tell you about how long thing took to start, and the -blame flag can help pinpoint hangs and so on.
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
systemd-analyze
Can tell you about how long thing took to start, and the -blame flag can help pinpoint hangs and so on.
Try journalctl -xe to get more info
Just as a reality check, disable systemd-timesyncd and verify if that is the problem - tbh, I'd be surprised it's that.
There can be an issue with things like databases holding up the shutdown / reboot (I have an issue with a systemd service waiting for mariadb that I've not found time to resolve)...
I don't use kde, but perhaps there's something there that might help point to the issue.
i had some of that too, too many times with Debian 13, I ended up moving to Fedora to try and i dont have those problems any more.
Mine would be some type of config corruption, making a new user it would log in fine,and deleting kde config files from my user would also let me log in instead of a black window.
Also when shuting down some systemctl service would block the stopping 1 minute and 40 seconds or something similar because of some connection issue ( I do not remember the reason well enough to be precise).
This made me decide to seek some other more stable desktop for the time being, and Fedora seems to just work all along.
Change your time servers or add more to the load balanced con, and make sure you don't have a block on your network for those hosts. You can also set the timeout for that particular service to something shorter so it doesn't hang, or remove deps that rely on it from the service files.