Difference between revisions of "LXDM"

From ArchWiki
Jump to navigation Jump to search
(typo/wrong word: localized -> located)
(→‎Autologin: Remove advise on how to set user passwordless. It is quite questionable security practice (ie. other service able to impersonate). If one really wants to do that, they should look it up in man passwd)
Line 69: Line 69:
=== Autologin ===
=== Autologin ===
To log in to one account automatically, without providing a password, find the line in {{ic|/etc/lxdm/lxdm.conf}} that looks like this:
To log in to one account automatically on startup, without providing a password, find the line in {{ic|/etc/lxdm/lxdm.conf}} that looks like this:
Uncomment it, substituting the target user instead of "dgod".
Uncomment it, substituting the target user instead of ''dgod''.
This will cause LXDM to automatically login to the specified account when it first starts up. However, if one were to log out of that account, one would have to enter its password to log back into it. To avoid this, delete the password:
$ passwd -d ''username''
== Tips and tricks ==
== Tips and tricks ==

Revision as of 13:39, 21 September 2014


LXDM is a lightweight display manager for the LXDE desktop environment. The UI is implemented with GTK+ 2.


The lxdm package is available in the official repositories. The development package, lxdm-gitAUR, is available in the AUR.

lxdm provides the lxdm systemd service. Enable it to start LXDM at boot.


The configuration files for LXDM are all located in /etc/lxdm/. The main configuration file is lxdm.conf, and is well documented in its comments. Another file, Xsession, is the systemwide x session configuration file and should generally not be edited. The other files in this folder are all shell scripts, which are run when certain events happen in LXDM.

These are:

  1. LoginReady is executed with root privileges when LXDM is ready to show the login window.
  2. PreLogin is run as root before logging a user in.
  3. PostLogin is run as the logged-in user right after he has logged in.
  4. PostLogout is run as the logged-in user right after he has logged out.
  5. PreReboot is run as root before rebooting with LXDM.
  6. PreShutdown is run as root before poweroff with LXDM.

Default session

It can be specified which session will be loaded when the users select the 'Default' session from the session list. Note that the user setting takes preference over global setting.


Edit /etc/lxdm/lxdm.conf and change the session line to whatever session or DE is desired:


Example using Xfce:


Example using Openbox:


Example using GNOME:


This is useful for themes that have no visible session selection box, and if experiencing trouble using autologin.

Per user

To define an individual user's preferred session, simply edit his/her respective ~/.dmrc to define the selection.

Example: user1 wants Xfce4, user2 wants Cinnamon, and user3 wants GNOME:

For user1:


For user2:


For user3:



To log in to one account automatically on startup, without providing a password, find the line in /etc/lxdm/lxdm.conf that looks like this:


Uncomment it, substituting the target user instead of dgod.

Tips and tricks

Adding face icons

A 96x96 px image (jpg or png) can optionally be displayed on a per-user basis replacing the stock icon. Simply copy or symlink the target image to $HOME/.FACE. The gnome-control-center package supplies some default icons suitable for the lxdm screen. Look under /usr/share/pixmaps/faces after installing that package.

Note: Users need not keep gnome-control-center installed to use this images. Simply install it, copy them elsewhere, and remove it.

Simultaneous users and switching users

LXDM allows multiple users to be logged into different ttys at the same time. The following command is used to allow another user to login without logging out the current user:

$ lxdm -c USER_SWITCH
Note: When the new user logs in, his/her session is now on the NEXT tty from tty7. For example, user1 logs in and issues the USER_SWITCH command. Now user2 logs in. User2 will be on tty7 while user1 will be on tty1.

If you use the Xfce desktop, the Switch User functionality of its Action Button panel item specifically looks for the gdmflexiserver executable in order to enable itself. If you provide it with an executable shell script /usr/bin/gdmflexiserver consisting of

/usr/bin/lxdm -c USER_SWITCH

then user switching in Xfce should work fine also with LXDM.

Xscreensaver can also perform this task. For more, see the this section of the Xscreensaver article.


The LXDM themes are located in /usr/share/lxdm/themes.

There is only one theme provided with LXDM, namely Industrial. To display the background file wave.svg which is part of this theme, make sure you have librsvg installed.

There are 2 themes provided with lxdm-gitAUR. ArchStripes and ArchDark. You can configure them on /etc/lxdm/lxdm.conf in theme=theme_name


Incorrect logout handling

You may find that, at times, LXDM fails to log out properly e.g. close down the session and kill user processes. This can result in programs continuing to run after logout and users not showing up in LXDM's user menu. To ensure that LXDM always logs out properly, edit /etc/lxdm/lxdm.conf and enable the following line:


This will restart the X server on logout, and this is the recommended way.

Alternatively, you can add the following lines to the /etc/lxdm/PostLogout script which will achieve the same effect:

# Terminate current user session
/usr/bin/loginctl terminate-session $XDG_SESSION_ID

# Restart lxdm
/usr/bin/systemctl restart lxdm.service


LXDM does not support the XDMCP protocol. A lightweight alternative that does is LightDM.