Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

DBDBDEEP

Vmware CentOS 노트북 덮어도 대기 모드로 진입하지 않게 본문

Linux

Vmware CentOS 노트북 덮어도 대기 모드로 진입하지 않게

Kihwane 2022. 11. 22. 13:25

1. vi /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=ignore
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=no
#UserTasksMax=

보면 #HandleLidSwitch = suspend로 되어있을 것이다.

       위의 코드블럭 처럼 바꿔주고 systemctl restart systemd-logind 해주면 완료!

'Linux' 카테고리의 다른 글

sudo 권한 부여  (0) 2022.12.09
추가한 스토리지 Mount 하여 사용하기  (1) 2022.11.22
CentOS7 Private IP 및 고정 IP 할당  (0) 2022.11.10
SCP 명령어  (0) 2022.11.03
Tibero 사용을 위한 CentOS7 최소설치 후 기본셋팅  (0) 2022.10.18