<p>

<span style="font-family:&quot;font-size:16px;"><span style="font-size:16px;background-color:#FFFFFF;font-family:&quot;">取消盒盖休眠的方法</span></span> 

</p>
<p>

<span style="font-family:&quot;font-size:16px;"><span style="font-size:16px;background-color:#FFFFFF;font-family:&quot;"><span style="color:#333333;font-family:&quot;font-size:16px;background-color:#FFFFFF;">编辑 &nbsp;系统文件 </span></span></span>

</p>

vi /etc/systemd/logind.conf
<p>
</p> <p>
</p> <p> <span style="font-family:&quot;font-size:16px;"><span style="font-size:16px;background-color:#FFFFFF;font-family:&quot;">找到</span></span> </p> <p> <span style="color:#333333;font-family:&quot;font-size:16px;background-color:#FFFFFF;">HandleLidSwitch 这行,去掉开头的#并改为:</span> </p> <p>
</p>
HandleLidSwitch=lock
<span style="font-family:&quot;font-size:16px;"> 按ECS输入:wq 保存退出</span> <p>
</p> <p>
</p> <p> <span style="color:#333333;font-family:&quot;font-size:16px;background-color:#FFFFFF;">运行 systemctl restart systemd-logind 命令生效。</span> </p>
Last modification:December 13th, 2017 at 11:43 pm