Auto-sync: 2026-04-17 08:37

This commit is contained in:
2026-04-17 08:38:12 +08:00
parent 6caa1c2f47
commit a0a48bd334
247 changed files with 6577 additions and 3061 deletions

View File

@@ -0,0 +1,30 @@
---
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]]