Can't make KDE/Wayland stick

I want to have my session log into KDE/Wayland. It currently logs into KDE/X11. Here’s what I do:

  1. log out of a my session
  2. select ‘Plasma/Wayland’ from the selector on the login screen
  3. login
  4. get the Wayland session
  5. reboot
  6. get the X11 session

Any idea why my Wayland choice doesn’t survive a reboot? I had a similar experience when I installed Gnome. I had to uninstall it just to get back to KDE being the default.

Which display manager are you using? That might help others advise further.

/usr/sbin/update-alternatives --query default-displaymanager

Thanks for the suggestion. Here’s what I get:

alan@localhost:~> /usr/sbin/update-alternatives --query default-displaymanager
Name: default-displaymanager
Link: /usr/lib/X11/displaymanagers/default-displaymanager
Status: auto
Best: /usr/lib/X11/displaymanagers/sddm
Value: /usr/lib/X11/displaymanagers/sddm

Alternative: /usr/lib/X11/displaymanagers/console
Priority: 5

Alternative: /usr/lib/X11/displaymanagers/gdm
Priority: 25

Alternative: /usr/lib/X11/displaymanagers/sddm
Priority: 25

Alternative: /usr/lib/X11/displaymanagers/xdm
Priority: 10
alan@localhost:~> 

That reminded me of something I tried when trying to un-default Gnome. It had no effect back then either, but this what I get now (might be irrelevant, since X11/Wayland doesn’t seem to be involved):

alan@localhost:~> sudo update-alternatives --config default-xsession.desktop
[sudo] password for root: 
There are 3 choices for the alternative default-xsession.desktop (providing /usr/share/xsessions/default.desktop).

  Selection    Path                                        Priority   Status
------------------------------------------------------------
  0            /usr/share/xsessions/plasma6.desktop         25        auto mode
  1            /usr/share/xsessions/gnome.desktop           25        manual mode
  2            /usr/share/xsessions/icewm-session.desktop   15        manual mode
* 3            /usr/share/xsessions/plasma6.desktop         25        manual mode

Press <enter> to keep the current choice[*], or type selection number: 

I wonder if anyone ever tries to use search before posting …

1 Like

Here you go. This should fix it.
https://en.opensuse.org/SDB:Change_Display_Manager

Harsh. But that did fix it. BTW, that had how to make Wayland stick, so here’s what I use when I want X11 to stick:

/etc/sddm.conf.d/session.conf

[Autologin]

# The following gives KDE Plasma 6 with Wayland
#Session=plasmawayland.desktop

# The following gives KDE Plasma 6 with X11
Session=plasma6.desktop
1 Like

@arvidjaar
For the record, Andrei, I always exhaust search possibilities before creating any posts for help. Which is why I hardly ever create those kind of posts. I also search for answers when I decide to help someone else here, unless I already have solved it for myself. So, yes, somebody does …

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.