우분투 리눅스 노트북 덮개

우분투 리눅스 노트북 덮개.

안녕하세요.

오늘은 리눅스 노트북에서 덮개를 덮어도 전원이 꺼지거나 절전모드가 되지 않도록 설정해보겠습니다.

  • 방법.

방법.

방법은 간단합니다.

터미널에 아래 명령어를 입력합니다.

sudo vi /etc/systemd/logind.conf

vi에디터가 마음에 들지 않는다면 다른 에디터를 이용해서 들어가도 됩니다.

비밀번호 입력하고 들어가면 아래같은 문자들이 보일겁니다.

이중에서 #HandleLidSwitch=suspend 를 찾아주세요.

#  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
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

문자열을 찾으셨다면 주석을 없애고 suspend를 ignore로 변경하고 저장합니다.

#HandleLidSwitch=suspend  --> HandleLidSwitch=ignore

그 후 재시작하면됩니다.

더보기

+ vi 에디터에서 저장은 :wq로 하시면 됩니다.

 

Designed by JB FACTORY