Files
nexus/wiki/concepts/systemd-logind.md
2026-04-17 08:38:12 +08:00

30 lines
916 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "systemd-logind"
type: concept
tags: [systemd, login-manager]
date: 2026-04-17
---
## Aliases
- systemd logind
## Definition
systemd 的登录管理器login manager负责处理用户登录会话和电源管理事件。在笔记本电脑合盖、按下电源键等事件发生时logind 根据配置决定系统行为(休眠、待机、关机等)。
## Key Properties
- 配置文件:/etc/systemd/logind.conf
- 服务名systemd-logind
- 控制合盖、电源按钮、外接电源、扩展坞连接等事件
## Related Concepts
- [[休眠 (Hibernate)]]:内存数据写入磁盘,系统完全断电
- [[待机 (Suspend)]]:内存保持供电,系统进入睡眠状态
- [[HandleLidSwitch]]:合盖电源行为配置项
## Use Cases
- 禁用笔记本合盖休眠
- 配置外接电源时的电源行为
- 配置连接扩展坞时的行为
## Connections
- part_of → [[systemd]]