본문 바로가기

자유게시판

우분투 노트북 덮개를 닫아도 정상 서비스

페이지 정보

작성자 관리자
댓글 0건 조회 13회 작성일 2026-02-28 10:26:01

본문

우분투 노트북 덮개를 닫아도 정상 서비스 되도록 할 경우 아래와 같이 수정해야 합니다.

 

sudo vi /etc/systemd/logind.conf

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandlePowerKeyLongPress=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#HandleSuspendKey=suspend
#HandleSuspendKeyLongPress=hibernate
#HandleHibernateKey=hibernate
#HandleHibernateKeyLongPress=ignore
#HandleLidSwitch=suspend
HandleLidSwitch=ignore
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#StopIdleSessionSec=infinity

 

HandleLidSwitch=ignore  <-- 이렇게 바꾼다.

sudo systemctl restart systemd-logind.service

또는 shutdown -r now

 하여 설정한 것이 적용되도록 한다.

 

 

 

댓글목록

등록된 댓글이 없습니다.

댓글쓰기

내용

회원로그인

로그인 회원가입

방문자 집계

  • 오늘 395
  • 어제 1,011
  • 최대 1,490
  • 전체 13,622
Copyright © radio.kr. All rights reserved.