옛글

칼리 리눅스 덮개 절전 비활성화

OrehOnyah 2016. 1. 24. 02:04

넷북을 중고나라에서 싸게 구입했다. TG 에버라텍 제품인데 깔끔히 고스트만 빼고 민 후에 칼리를 올렸다. 한글 설정하고 터치패드 잡고 하니 처음에는 잘 되는줄 알았다.


그래서 만족스런 기분으로 넷북을 닫았다가 열어서 전원버튼을 누르니..


켜지다가 바로 절전모드로 들어가버린다!


이 문제를 없애기 위해 자동 절전 모드를 없애려고 해봤지만 dconf-editor으로 값을 찾아도 나오지 않고 gnome-tweak-tool(기능 개선 도구)에도 비활성화된 옵션으로 표시된다.


그래서 한참 찾아보니


https://forums.kali.org/showthread.php?26887-SOLVED-Kali-Linux-laptop-lid-close-actions


여기에 해답이 있었다.


첫번째로 gnome-tweak-tool을 써 보고


안되면 dconf-editor으로 org->gnome->settings-daemon->plugins->power에 들어가서

'lid-close-battery-action' and 'lid-close-ac-action settings'

을 nothing으로 바꾼다.


그래도 안되서 선택한 방법이 마지막 방법이다. (루트권한 필요)


/etc/systemd/logind.conf를 수정하는 방법인데,

"HandleLidSwitch=suspend"

의 앞의 #을 없애고 suspend를

ignore,halt,poweroff,kexec,hibernate,reboot,lock

이중의 하나로 바꾼다.

아래는 logind.conf의 예시다.

참고로, 아래의 예시에서는 kexec이 노트북이 안 닫혔을 때처럼 동작하게 하는 변수라고 써있다.


_______________________________________________________________
#  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.
#
# 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=kexec #Will keep computer running as the lid was not closed
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes


_______________________________________________________________