LinuxCommandLibrary

dm-tool

LightDM display manager control

TLDR

Show greeter (login screen)

$ dm-tool switch-to-greeter
copy
Lock the current session
$ dm-tool lock
copy
Switch to a specific user
$ dm-tool switch-to-user [username] [session]
copy
Add a dynamic seat
$ dm-tool add-seat [xlocal] [name]=[value]
copy

SYNOPSIS

dm-tool command [arguments]

DESCRIPTION

dm-tool is a command-line utility for interacting with the LightDM display manager. It provides session management capabilities including locking the current session, switching between users, and displaying the greeter (login screen) without logging out.
The tool enables multi-user workflows by allowing quick user switching while preserving all open sessions. It can also manage display seats, which are independent workstations consisting of a display, keyboard, and mouse.
dm-tool communicates with LightDM via D-Bus, sending commands that control the display manager's behavior. This makes it useful for scripting and custom session management workflows on systems using LightDM.

PARAMETERS

switch-to-greeter

Show login screen, keep current session
lock
Lock current session
switch-to-user user [session]
Switch to specified user
add-seat type options
Add dynamic seat
list-seats
List available seats

CAVEATS

Only works with LightDM display manager. Other display managers (GDM, SDDM) have different tools. Session type must be valid.

SEE ALSO

lightdm(1), loginctl(1)

> TERMINAL_GEAR

Curated for the Linux community

Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

Bmax Mini PC B2 Power Intel 5205U 8GB DDR4 256GB M.2 NVMe SSD ,HDMI 1.4&DP 1.2, USB3.2,4K Dual Display 2.4G/5G WiFi & BT5.0 Mini Desktop Computers /Office/Design

$169.99
New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

$239.99
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

$239.99