Difference between revisions of "Display manager"

From ArchWiki
Jump to navigation Jump to search
(update link(s) (avoid redirect))
m (→‎Incompatibility with systemd: spelling: tacker to tracker)
Line 100: Line 100:
* login failed into GNOME with another user.
* login failed into GNOME with another user.
See the following bugtacker reports for more details:
See the following bugtracker reports for more details:
* MDM: [https://github.com/linuxmint/mdm/issues/32]
* MDM: [https://github.com/linuxmint/mdm/issues/32]
* SDDM: [https://github.com/sddm/sddm/pull/95] (fixed in git master)
* SDDM: [https://github.com/sddm/sddm/pull/95] (fixed in git master)
* SLiM: [https://bugs.archlinux.org/task/34329] [http://developer.berlios.de/bugs/?func=detailbug&bug_id=19102&group_id=2663]
* SLiM: [https://bugs.archlinux.org/task/34329] [http://developer.berlios.de/bugs/?func=detailbug&bug_id=19102&group_id=2663]

Revision as of 15:44, 27 February 2014

zh-CN:Display Manager zh-TW:Display Manager

A display manager, or login manager, is typically a graphical user interface that is displayed at the end of the boot process in place of the default shell. There are various implementations of display managers, just as there are various types of window managers and desktop environments. There is usually a certain amount of customization and themeability available with each one.

List of display managers


  • CDM — Ultra-minimalistic, yet full-featured login manager written in Bash.
https://github.com/ghost1227/cdm || cdm-gitAUR
  • Console TDM — Extension for xinit written in pure Bash.
http://code.google.com/p/t-display-manager/ || console-tdmAUR


  • Entrance — An EFL based display manager, highly experimental.
http://enlightenment.org/ || entrance-gitAUR
http://projects.gnome.org/gdm/ || gdm
http://www.kde.org/ || kdebase-workspace
  • LightDM — Cross-desktop display manager, can use various front-ends written in any toolkit.
http://www.freedesktop.org/wiki/Software/LightDM || lightdm
  • LXDMLXDE display manager. Can be used independent of the LXDE desktop environment.
http://sourceforge.net/projects/lxdm/ || lxdm
  • MDM — MDM display manager, used in Linux Mint, a fork of GDM 2.
https://github.com/linuxmint/mdm || mdm-display-managerAUR
  • Qingy — Ultralight and very configurable graphical login independent on X Windows (uses DirectFB).
http://qingy.sourceforge.net/ || qingyAUR
  • SDDM — QML-based display manager.
https://github.com/sddm/sddm || sddmAUR, sddm-qt5AUR
  • SLiM — Lightweight and elegant graphical login solution.
http://slim.berlios.de/ || slim
  • XDM — X display manager with support for XDMCP, host chooser.
http://www.x.org/archive/X11R7.5/doc/man/man1/xdm.1.html || xorg-xdm

Loading the display manager

To enable graphical login, run your preferred display manager daemon (e.g. KDM).

# systemctl enable kdm

This should work out of the box. If not, you might have a default.target set manually or from an older install:

$ ls -l /etc/systemd/system/default.target
[...] /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target

Simply delete the symlink and systemd will use its stock default.target (i.e. graphical.target).

# rm /etc/systemd/system/default.target

After enabling KDM a symlink display-manager.service should be set in /etc/systemd/system/

$ ls -l /etc/systemd/system/display-manager.service
[...] /etc/systemd/system/display-manager.service -> /usr/lib/systemd/system/kdm.service

Using systemd-logind

In order to check the status of your user session, you can use loginctl. All polkit actions like suspending the system or mounting external drives will work out of the box.

$ loginctl show-session $XDG_SESSION_ID

Tips and tricks

Session list

Many display managers read available sessions from /usr/share/xsessions/ directory. It contains standard desktop entry files for each DM/WM.

To add/remove entries to your display manager's session list; create/remove the .desktop files in /usr/share/xsessions/ as desired. A typical .desktop file will look something like:

[Desktop Entry]
Comment=Log in using the Openbox window manager (without a session manager)


Most of display managers sources /etc/xprofile, ~/.xprofile and /etc/X11/xinit/xinitrc.d/. For more details, see xprofile.

Known issues

Incompatibility with systemd

Affected DMs: Entrance, MDM, SDDM, SLiM

Some display managers are not fully compatible with systemd, because they reuse the PAM session process. It causes various problems on second login, e.g.:

  • NetworkManager applet does not work,
  • PulseAudio volume cannot be adjusted,
  • login failed into GNOME with another user.

See the following bugtracker reports for more details: