Very slow startup / shutdown on Plasma Wayland session

Recently KDE Plasma got its Wayland support stable enough to be usable and possible to switch to at last. While most things are working fine apart from small bugs I already reported to the KDE team, there’s something which may be Manjaro specific I wanted to ask about.

Can others confirm very slow login and shutdown times when using Plasma Wayland as opposed to Plasma X11? For me login takes at least 15 seconds longer… shutdown or reboot is even worse as the system remains frozen to the console for over one extra minute before finally proceeding.

I’m getting the exact same delays on two machines both running Manjaro KDE, thus it’s not just a fluke on one machine: Wayland is just extremely slow to startup and shutdown for some reason.

No general issues with boot or shutdown

A slow shutdown may - is - often caused by in memory data which needs to be flushed to disk. The RAM the system has the longer it may take to shut down.

I have seen - although rare - that appying a custom theme to cause sddm to have difficulties shutting down.

sddm is the first service to start and last service to close.

Also watchdog can be an issue.

I have this issue with shutdown, or rather restart when Pamac asked me to restart to apply changes.
It took a few minutes, but i just assumed it was doing something in the background for an update on what i just installed, i’m not sure if this is in any way connected to wayland.

It takes a couple of seconds for restart to “start” when programs are open (tested this with steam and mozilla open). But then it restarts normally. Maybe if i had more open programs it would take longer.

Startup is fine. I’d say the normal amount of time for a system to boot on an M2 drive, after all the bios stuff that needs to initialize first. Weird thing is, sometimes i get the grub menu (because it recognized a windows installation on the second disk), and sometimes it just directly boots into Manjaro… Weird.

Anyway… Are you sure you weren’t installing something that needed a restart?

The system taking longer to shut down after an update is a different thing, I noticed that too a rare couple of times. This seems to happen constantly and only on Wayland session: Login is about 15 seconds longer (stuck on splash screen), shutdown about a minute (black console after logout, usually prints the blocks clear line or watchdog message or “received signal, shutting down now”). If for instance I immediately reboot after booting to the login screen but without logging in, the restart is almost instant… if I logged into an X11 session instead it only waits a few extra seconds to power off.

I can reproduce the issue of shutdown only when using SDDM and Plasma Wayland

How to check the issue of shutdown:

  1. Remove quiet and splash in Grub config → GRUB_CMDLINE_LINUX_DEFAULT
  2. Run sudo update-grub
  3. Reboot
  4. Start shutdown to see the log if SDDM process cannot be finished until default timeout 90 sec.

I tried to switch sddm to sddm-git from AUR, it solved the issue for me.

1 Like

That is my own setup: I installed Manjaro KDE normally, added the plasma-wayland package to get its option as a session in SDDM, then login by selecting Plasma (Wayland) at the bottom-left corner of the screen.

With login the slowdown is that the splash screen shows a lot longer, it’s about 3 seconds on X11 but some 10 seconds on Wayland. With shutdown is that it sits in the console on the “system will poweroff / reboot now!” message for over a minute for no clear reason (nothing else is printed in the meantime) before finally rebooting or shutting down correctly.

The fact that the Git version of SDDM seems to fix this is good news: Should mean it might be resolved in a coming update. I will follow the progress for any changes after the next snapshot.

Do you use plymouth ?

I have no issue with bootsplash-systemd and bootsplash-manager, but it does not support LUKS encryption at boot.

You mean the boot splash screen? Whatever is the default, I think for grub2 it’s plymouth so likely yes. Even if I haven’t seen it in ages: Since I put Manjaro on an SSD / NVME booting is so fast there’s just a second of blackness and I’m already in SDDM.

The splash screen I was referring to in this case though is the KDE / Plasma one at login, after you write your password in SDDM. Obviously Wayland wouldn’t affect what happens before login as it’s a choice you make during the process.