Auto-sync: 2026-04-17 08:37
This commit is contained in:
30
wiki/concepts/systemd-logind.md
Normal file
30
wiki/concepts/systemd-logind.md
Normal 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]]
|
||||
Reference in New Issue
Block a user