0
点赞
收藏
分享

微信扫一扫

设置ubuntu18.04.6 不休眠

梦想家们 2022-01-13 阅读 69
ubuntulinux
root@user:/home/user# vim /etc/systemd/logind.conf 
#  This file is part of systemd.
# 
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
!!!将#HandleLidSwitch=suspend 改为 HandleLidSwitch=ignore
重启一下配置:systemctl restart systemd-logind

图形操作:

 

 

举报

相关推荐

0 条评论