SDDM

From Gentoo Wiki
Jump to: navigation, search

Simple Desktop Display Manager (SDDM) is a display manager that supports X11 and Wayland.

Installation

USE flags

USE flags for x11-misc/sddm Simple Desktop Display Manager

consolekit Use ck-launch-session from sys-auth/consolekit by default in Xsession (no native support) local
elogind Use sys-auth/elogind for session tracking. local

Emerge

Install x11-misc/sddm:

root #emerge --ask x11-misc/sddm

If there are performance issues, it might help to add the sddm user to the video group:

root #usermod -a -G video sddm

Configuration

Files

The global configuration file path for SDDM is /etc/sddm.conf. See comments in the file and man 5 sddm.conf for details on available options.

Keymap

To select correct keymap on login screen, add following line to the /usr/share/sddm/scripts/Xsetup file:

FILE /usr/share/sddm/scripts/Xsetup
setxkbmap gb,us


Note
For sddm, the config files is not located under /etc. In case of updates your edits may get lost. In order to get warned by emerge if it wants to override your changes, config-protect the corresponding files to your /etc/portage/make.conf
FILE /etc/portage/make.confProtect your changes from updates
CONFIG_PROTECT="/usr/share/sddm/scripts/Xsetup"

Service

OpenRC

Set SDDM as the default display manager:

FILE /etc/conf.d/xdm
DISPLAYMANAGER="sddm"

To start SDDM on boot, add xdm to the default runlevel:

Note
The dbus service gets pulled in dynamically.
root #rc-update add xdm default

To start SDDM now:

root #/etc/init.d/xdm start

After logging in to the X session via sddm, it is a good idea to verify that ConsoleKit is working as intended. By typing ck-list-sessions all active sessions can be listed. The list should include your session, typically running on x11-display-device = '/dev/tty7'. This session should also read active = TRUE. Active being FALSE indicates an issue [1][2].

systemd

To start SDDM on boot:

root #systemctl enable sddm.service

To start SDDM now:

root #systemctl start sddm.service

Plasma

Graphical configuration is integrated in Plasma 5 system settings by installing kde-plasma/sddm-kcm:

root #emerge --ask kde-plasma/sddm-kcm

Troubleshooting

Permission denied errors in Xorg.log

The X server will not start and permission denied errors (such as the following) are present in the Xorg.log log file:

FILE /var/log/Xorg.log
/var/log/Xorg.0.log:[ 2058.998] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
/var/log/Xorg.0.log:[ 2061.229] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].

It is likely the sddm user has not been added to the video group. Running the following command should fix the problem:

root #usermod -a -G video sddm

Missing users

If the login screen is missing some user(s) to choose from, this might be caused by sddm.conf - standard MinimumUid is 1000 and some existing users may have lower Uids.

FILE /etc/sddm.conf
[Users]
MaximumUid=60000
MinimumUid=1000

See also

  • LightDM - A cross-desktop display manager used by Ubuntu.
  • SLiM - A desktop-independent graphical display manager.

References

  1. [SOLVED] xfce4 "shut down" "restart" button are disabled [1]
  2. Hey host, give me a new login please! [2]