1. # vi /etc/systemd/logind.conf
2. #HandleLidSwitch=suspend
改为:
HandleLidSwitch=ignore
3. # reboot
本文介绍如何通过编辑/etc/systemd/logind.conf文件中的HandleLidSwitch参数,将默认的suspend(挂起)行为更改为ignore(忽略),从而禁用笔记本盖合时的自动休眠功能。
1. # vi /etc/systemd/logind.conf
2. #HandleLidSwitch=suspend
改为:
HandleLidSwitch=ignore
3. # reboot
5506

被折叠的 条评论
为什么被折叠?