Linux 系统关闭笔记本屏幕盖后 仍能正常工作

Linux 系统关闭笔记本屏幕盖后 仍能正常工作

  说明:

    我使用的Linux系统版本:Red Hat Enterprise Linux Server release 7.5 (Maipo)

禁用进入睡眠模式

  1. 编辑 /etc/systemd/logind.conf  

    找到 # HandleLidSwitch=suspend 将其改成 HandleLidSwitch=ignore (具体操作:解开注释 并修改值:suspend -> ignore)

  

  2. 使用root账号执行指令:

    # systemctl restart systemd-logind.service

猜你喜欢

转载自www.cnblogs.com/Charles-Yuan/p/12178808.html