Files
nexus/wiki/sources/ubuntu-jin-yong-he-gai-qian-mian.md
2026-04-14 16:02:50 +08:00

1.0 KiB
Raw Blame History

title, type, tags, date, source_file
title type tags date source_file
Ubuntu禁用合盖休眠 source
ubuntu
2026-04-14 raw/Technical/Home Office/🟠Ubuntu禁用合盖休眠.md

Summary

  • 核心主题让Ubuntu服务器在笔记本合盖后继续运行
  • 问题域:服务器笔记本合盖休眠行为控制
  • 方法/机制修改systemd-logind配置或mask休眠target
  • 结论/价值:实现合盖继续运行,适合部署为服务器的笔记本场景

Key Claims

  • Ubuntu 24.04中笔记本合盖休眠行为由systemd-logind控制
  • 修改HandleLidSwitch、HandleLidSwitchExternalPower、HandleLidSwitchDocked为ignore可禁用合盖休眠
  • 使用systemctl mask可以彻底禁用系统休眠功能内核级别

Key Concepts

  • systemd-logind:系统登录管理器,控制电源管理行为
  • 休眠targetsleep.target/suspend.target/hibernate.target/hybrid-sleep.target

Key Entities

Connections

Contradictions