Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

446. Desktop troubleshooting

This page is for when the desktop does not come up, comes up wrong, or stops. It lists what each stage between the end of the boot and a working Plasma session leaves behind, where its log is, and how to get a working desktop back from the recovery console. The stages themselves are described in The session; the settings each problem leads to are on the other pages of this part.

Installation

Nothing is installed for this page. The tools it uses are on every image:

Tool From Used for
kdos doctor kdos-tools One report on the whole machine; its Session section checks the session bus, elogind and, inside a session, KWin, plasmashell, the KDE portal, the session manager and the secret service; its Desktop section the lock screen’s PAM stack and setuid helpers, Xwayland and its socket directory, and fcitx5
loginctl elogind Which sessions exist, which is active, and unlocking or ending one
qdbus6 qt6-qttools Asking KWin, plasmashell and the other session programs over the bus
service --user kdos-tools The user’s own services: the session bus, PipeWire, the timers

Configuration

Where each stage logs

Stage Log
kdos-dm, which starts SDDM or falls back to a text prompt syslog, sudo grep kdos-dm /var/log/messages
SDDM and the greeter, the greeter’s KWin included /var/log/sddm.log, the previous boot’s in /var/log/sddm.log.old
The session wrapper, startplasma, KWin, plasmashell and everything they print ~/.local/share/sddm/wayland-session.log
The user’s services, and every program the session bus starts $XDG_RUNTIME_DIR/ksvc/kdos-svc.<name>.log
elogind /run/kdos-svc.elogind.log and syslog
A crash of KWin or of an application The session log; the crash handler DrKonqi is not installed

The recovery console

tty2 is a plain login prompt that nothing on tty1 can take away; see Login and autologin. Every procedure below starts there: Ctrl+Alt+F2 from the desktop or the greeter, or Alt+F2 at a text console.

Usage

Finding which stage stopped

  1. Log in on tty2 as the user whose desktop failed.

  2. Ask the machine:

    kdos doctor
    loginctl list-sessions        # a session of `sddm` is the greeter; one of yours is the desktop
    pgrep -a sddm                 # SDDM and its greeter, if they run
  3. Read the log of the last stage that ran, from the table above.

Starting the greeter again

sudo pkill -x sddm

SDDM is not a service: init respawns kdos-dm, which starts SDDM again. If SDDM exits three times within a minute, kdos-dm puts a text password prompt on tty1 instead, and tries SDDM again once the minute is past.

Starting the desktop by hand from tty2

To see what a session prints, start one on tty2 itself:

startplasma-wayland 2>&1 | tee ~/plasma.log

It runs as the tty2 session, and everything it prints is also in ~/plasma.log. Leave it with Log Out.

Resetting the desktop’s configuration

A setting that keeps the session from starting is in ~/.config. From tty2, move the likely files aside, then log in again:

mkdir -p ~/config-aside
mv ~/.config/plasma-org.kde.plasma.desktop-appletsrc ~/.config/plasmashellrc ~/config-aside/   # the panels
mv ~/.config/kwinrc ~/.config/kwinoutputconfig.json ~/config-aside/                            # KWin and the screens

The KDOS defaults in /usr/share/kdos/xdg take their place. If that is not enough, moving the whole of ~/.config aside starts the account as new; copy back what you need afterwards.

Tips

Troubleshooting

A black screen after the splash, and tty2 answers. The greeter is not drawing. Read /var/log/sddm.log. A line about the display (no DRM device, a permission refused) means KWin could not take the screen: ls -l /dev/dri/ and Graphics drivers. A greeter that SDDM keeps restarting shows the restarts there (Greeter exited with no login, starting it again (restart 1 of 2)), and SDDM gives up after three in a row, each within a minute of its start.

tty1 shows a text password prompt. kdos-dm gave up on SDDM; see Login and autologin.

The greeter comes back after every login. The session ended at once. The last lines of ~/.local/share/sddm/wayland-session.log name why; a refusal from kdos-session-wrapper names the session bus or the runtime directory. See Session and environment.

The session starts with no panel. plasmashell failed. Run plasmashell in Konsole and read what it prints. The KDOS kded module starts a shell that stopped again, but gives up after five starts in a minute and says so in a notification (“Desktop shell keeps stopping”). A broken layout is fixed with kdos desk kdos.

Everything is very slow and Phosphor mode refuses. KWin is on software rendering. Check the renderer as in Tips and see Graphics drivers.

Applications start without the KDOS look, or notifications never appear. The session runs with the wrong environment or bus; see Session and environment.

The screen is locked and the password is refused. See Screen lock.

No sound in the session. See Audio.

Known gaps

See also