상세 컨텐츠

본문 제목

개인저장용]우분투 리눅스 노트북 덮개 닫고 사용하기

IT

by 그래도널 2021. 3. 22. 13:47

본문

728x90

개인 데이터 참고용

 

우분투 리눅스 사용시 노트북 덮개를 닫으면 사용이 불가하다

덮어놓고 이것저것 사용(위에 뭣좀 올려놓고) 하려고 하다보니 아래와 같이 설정을 바꾸면 된다.

 

$sudo vi /etc/systemd/logind.conf

vi 또는 다른 에디터를 열어 logind.conf를 수정한다

root@testserver:/# 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=suspend
HandleLidSwitch=ignore
#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
~

"/etc/systemd/logind.conf" 38L, 1065C                                                                25,22         All

로그인 관련된 설정이다

#HandleLidSwitch=suspend 라고 되어 있는 것을 #지우고 HandleLidSwitch=ignore 로 변경한다.

기본적으로는 덮개를 닫으면 절전모드로 되어 있는것을 무시해준다.

노트북 닫고 작업할때 필수 작업이므로 꼭 해준다.

관련글 더보기

댓글 영역