How to set Plasma Wayland as default sddm? @ login

When I go to
settings --> Startup and shutdown --> Login Screen (SDDM) --> Behavior
and set
Automatically log in (checked) as user: "myUSR" with session --> to <Plasma Wayland> instead of "system default"

and reboot, when I log in I get a short flash of my desktop, then I get logged in to TTY instead.

how do you set Plasma Wayland as default SDDM correctly on TW?

su -
update-alternatives --config default-displaymanager
1 Like

IIRC there was some complicating factor affecting autologin and Wayland. Not sure if it was fixed…

I will need to test for myself again.

2 Likes

av8r, I convinced SDDM to default to Wayland by editing the last line of /etc/sddm.conf.d/kde_settings.conf to:

RememberLastSession=true

Still, the fact that you’re getting logged in to TTY makes me wonder if your set up is different. That’s never happened to me.

1 Like

I tested using the following entries in kde_settings.conf

[Autologin]
Session=plasmawayland.desktop
User=dean

That results in the desired Plasma Wayland with Autologin behaviour.

Reference:
https://wiki.archlinux.org/title/SDDM#Autologin

2 Likes

@av8r If you are not able to get autologin working with SDDM and Plasma Wayland, you might try removing the ‘User=****’ entry in kde_settings.conf, and instead configure autologin using YaST > System > Sysconfig Editor, and navigate to Desktop > Displaymanager, edit DISPLAYMANAGER_AUTOLOGIN setting the desired username, and ‘OK’ when done. Not sure if this will make a difference with the outcome. Either way works for me.

Here’s another thread where a user was experiencing similar issues, and it was suggested to try using a different displaymanager (but you must make sure you’ve configured autologin via YaST first of course). See how that goes.

1 Like

Thank you for the tip, but I do not have the kde_settings.conf file

I do however have /etc/sddm.conf.d , is that strange or do I need to create the file kde_settings.conf?

I do not have the file kde_settings.conf → under /etc/sddm.conf.d/

do I need to create that file with the parameters you have sugested?

This is what my /etc/sysconfig/displaymanger file is saying:

## Path:	Desktop/Display manager
## Description:	settings to generate a proper displaymanager config
## Type:	yesno
## Default:	no
#
# Allow remote access (XDMCP) to your display manager (xdm/kdm/gdm). Please note
# that a modified kdm or xdm configuration, e.g. by KDE control center
# will not be changed. For gdm, values will be updated after change.
# XDMCP service should run only on trusted networks and you have to disable
# firewall for interfaces, where you want to provide this service.
#
DISPLAYMANAGER_REMOTE_ACCESS="no"

## Type:	yesno
## Default:	no
#
# Allow remote access of the user root to your display manager. Note
# that root can never login if DISPLAYMANAGER_SHUTDOWN is "auto" and
# System/Security/Permissions/PERMISSION_SECURITY is "paranoid"
#
DISPLAYMANAGER_ROOT_LOGIN_REMOTE="no"

## Type:	yesno
## Default:	yes
#
# Let the displaymanager start a local Xserver.
# Set to "no" for remote-access only.
# Set to "no" on architectures without any Xserver (e.g. s390/s390x).
#
DISPLAYMANAGER_STARTS_XSERVER="yes"

## Type:        yesno
## Default:     no
#
# TCP port 6000 of Xserver. When set to "no" (default) Xserver is
# started with "-nolisten tcp". Only set this to "yes" if you really
# need to. Remote X service should run only on trusted networks and
# you have to disable firewall for interfaces, where you want to
# provide this service. Use ssh X11 port forwarding whenever possible.
#
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"

## Type:    string
## Default:
#
# Define the user whom should get logged in without request. If string
# is empty, display standard login dialog.
#
DISPLAYMANAGER_AUTOLOGIN="kds"

## Type:        yesno
## Default:     no
#
# Allow all users to login without password, but ask for the user, if
# DISPLAYMANAGER_AUTOLOGIN is empty.
#
DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"

## Type:        yesno
## Default:     no
#
# Display a combobox for Active Directory domains.
#
DISPLAYMANAGER_AD_INTEGRATION="no"
## Path:        Desktop/Display manager
## Type:        string(Xorg)
## Default:     "Xorg"
#
DISPLAYMANAGER_XSERVER="Xorg"

@ deano_ferrari How do I check to see what displaymanger I’m using? I have not installed anything other than what came with the openSUSE install.

using YAST I get no option to change anything on Dispalymanger_autologin page.

This is the output I get from ^^ command:

There are 3 choices for the alternative default-displaymanager (providing /usr/lib/X11/displaymanagers/default-displaymanager).

  Selection    Path                                  Priority   Status
------------------------------------------------------------
* 0            /usr/lib/X11/displaymanagers/sddm      25        auto mode
  1            /usr/lib/X11/displaymanagers/console   5         manual mode
  2            /usr/lib/X11/displaymanagers/sddm      25        manual mode
  3            /usr/lib/X11/displaymanagers/xdm       10        manual mode

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

Your next post shows that your default displaymanager is sddm (the * ). Option 3 is a different displaymanager xdm. However, I would take the advice offered above to switch to lightdm.

I use lightdm, and am very happy with it. Give it a shot. As @nrickert shows you how, deano’s post above, I will cheat and use his instructions (would be the same as mine, anyway): When you log into the TTY again at boot, log in as root. Then, type:

yast

You will get the ncurses (or “text”) version of yast. Use the Software section to check for lightdm. If it isn’t installed, then do that now. Continue with nrickert’s instructions.

That worked Thank y’all for all the help! I got it working using your suggestions so I’m just gonna make a quick write up, in case anybody else sees this, but it’s mostly for myself to remember:

- Open YAST
- software management --> search for "lightdm" and install recommended packages
- run "su" in terminal
- run update-alternatives --config default-displaymanager (@frase_bell) and pick the number for lightdm
- go to settings -->  startup shutdown --> Login Screen (SDDM) --> [Behavior] on the bottom left
- change [with session] to Plasma(wayland)
- modify /etc/ssdm.conf.d/kde_settings.conf to say <Session=Plasmawayland.desktop> (deano_ferrari)
- reboot 
1 Like

You should always use

su -

and not plain su.

BTW, Wayland is NOT a Display Manager, nor is Plasma Wayland (the is a Desktop Environment using Wayland). Display Managers are e.g those mentioned above: sddm, lightdm, xdm, gdm, kdm and maybe more.

1 Like

There is no need to modify SDDM config if using LightDM as suggested. It will have no effect. :wink:

3 Likes

@av8r Thank you for coming back and posting that. Of course, @deano_ferrari and @hcvv have added additional information about your solution and for your advancing knowledge.

roger that. I learned something new again. thank you.

thank you, I did not know that was a thing, guess I have to read more man pages. I’m learning more and more. every day.