Linux command
dm-tool 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
dm-tool switch-to-greeter
Lock
dm-tool lock
Switch
dm-tool switch-to-user [username] [session]
Add
dm-tool add-seat [xlocal] [name]=[value]
说明
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.
参数
- 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
FAQ
What is the dm-tool command used for?
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.
How do I run a basic dm-tool example?
Run `dm-tool switch-to-greeter` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does switch-to-greeter do in dm-tool?
Show login screen, keep current session