2

I run latest OpenSUSE tumbleweed, KDE only. I wish to switch the default session from Plasma X11 to Plasma wayland. What should I do to achieve this?

The login manager I use comes from sddm. And I can indeed manually log in from the login manager to a wayland session.

1
  • 1
    @KamilMaciorowski I deleted the cross-post on Super User. Got the memo, and added details here. Commented Oct 16, 2022 at 13:08

2 Answers 2

0

Without modifying any settings or configuration on my Tumbleweed install, SDDM seems to be remembering the last session that I used (which was Plasma on Wayland). This behavior may be what you're looking for!

Also this may be a non-issue soon, as KDE Plasma 6 will be Wayland by default. This means it likely will also eventually be the default KDE session provided by distributions such as Tumbleweed.


But, if neither of the above work and you really want to fix it before Plasma 6 launches, you can also try your hand at modifying the configuration file at /etc/sddm.conf (or /etc/sddm.conf.d/kde-settings.conf if you selected "Apply KDE settings to SDDM" in system settings). If mis-configured, this may break SDDM, so I would first suggest making a backup of your current configuration somewhere you remember, then copying over your changes as you experiment with settings. If all else fails, or you didn't take a backup beforehand, you can regenerate the default SDDM config again with sddm --example-config > path to .conf file you modified above.

The ultimate goal of updating the above config would be to display /usr/share/wayland-sessions/plasmawayland.desktop as the default selected option, which itself launches the plasma wayland session with /usr/bin/startplasma-wayland. To do this, a list of available settings for SDDM can be found in the SDDM GitHub page for the config file: https://github.com/sddm/sddm/blob/v0.20.0/data/man/sddm.conf.rst.in.

0

Currently KDE Plasma wayland desktop is not official supported with OpenSUSE and defaults with xorg-x11-server installed.

Here's a quick way to get it working without those extra packages.

This method integrates somewhat with the /etc/sysconfig/displaymanager that follows into the /usr/lib/X11/display-manager script that runs on startup by default. This is of course subject to change once KDE Plasma with Wayland is officially supported by OpenSUSE. This allows you to run KDE/Wayland without having X Window System aka xorg-x11-server installed.

# https://github.com/sddm/sddm/issues/1808#issuecomment-1807097878 systemctl mask getty@tty1 # patch the hardcoded; XDM exit if xserver is not installed sudo sed -i '184s/^[[:space:]]*/&: #/' /usr/lib/X11/display-manager # if above command doesn't work this is the lines that need to be patched: # if [ ! -x /usr/bin/X -a "$DISPLAYMANAGER_REMOTE_ACCESS" = "no" ]; # then # exit 6 # fi # ^ You can simply comment out the `exit 6` line and add a # `:` to fill the required place, like: # then # : # exit 6 # fi sudo tee /etc/sddm.conf.d/10-wayland.conf <<'EOF' [General] DisplayServer=wayland GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell [Wayland] EnableHiDPI=true EOF 

Another note is that this might not work if you have autologin enabled during install, so disable that if it doesn't work. Manually log out and login again if you don't get a login (display manager) screen.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.