Translate

[Ubuntu] 우분투 15.10 최대절전모드(hibernate) 사용하기




OS: Ubuntu 15.10


기능개선도구에서
아래와 같이 셋팅을 했음에도 전원버튼을 눌렀는데 최대절전모드(hibernate)로 진입되지 않아서 아래와 같이 작업을 했다.






해결방법

커맨드창(Ctrl+Alt+T)에서 아래와 같이 입력을 해준다.


lucifer@1004lucifer-hello5:~$ sudo apt-get install hibernate
[sudo] password for lucifer: 
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
다음 패키지를 더 설치할 것입니다:
  libx86-1 uswsusp vbetool
제안하는 패키지:
  915resolution xscreensaver kscreensaver gnome-screensaver xlock vlock
다음 새 패키지를 설치할 것입니다:
  hibernate libx86-1 uswsusp vbetool
0개 업그레이드, 4개 새로 설치, 0개 제거 및 6개 업그레이드 안 함.
323 k바이트 아카이브를 받아야 합니다.
이 작업 후 1,181 k바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y
받기:1 http://kr.archive.ubuntu.com/ubuntu/ wily/main libx86-1 amd64 1.1+ds1-10 [83.0 kB]
받기:2 http://kr.archive.ubuntu.com/ubuntu/ wily/universe hibernate all 2.0+15+g88d54a8-1 [86.0 kB]
받기:3 http://kr.archive.ubuntu.com/ubuntu/ wily/universe uswsusp amd64 1.0+20120915-6.1 [142 kB]
받기:4 http://kr.archive.ubuntu.com/ubuntu/ wily/main vbetool amd64 1.1-3 [11.6 kB]
내려받기 323 k바이트, 소요시간 0초 (994 k바이트/초)
패키지를 미리 설정하는 중입니다...
Selecting previously unselected package libx86-1:amd64.
(데이터베이스 읽는중 ...현재 191340개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../libx86-1_1.1+ds1-10_amd64.deb ...
Unpacking libx86-1:amd64 (1.1+ds1-10) ...
Selecting previously unselected package hibernate.
Preparing to unpack .../hibernate_2.0+15+g88d54a8-1_all.deb ...
Unpacking hibernate (2.0+15+g88d54a8-1) ...
Selecting previously unselected package uswsusp.
Preparing to unpack .../uswsusp_1.0+20120915-6.1_amd64.deb ...
Unpacking uswsusp (1.0+20120915-6.1) ...
Selecting previously unselected package vbetool.
Preparing to unpack .../vbetool_1.1-3_amd64.deb ...
Unpacking vbetool (1.1-3) ...
Processing triggers for man-db (2.7.4-1) ...
libx86-1:amd64 (1.1+ds1-10) 설정하는 중입니다 ...
hibernate (2.0+15+g88d54a8-1) 설정하는 중입니다 ...
uswsusp (1.0+20120915-6.1) 설정하는 중입니다 ...
update-initramfs: deferring update (trigger activated)
vbetool (1.1-3) 설정하는 중입니다 ...
Processing triggers for libc-bin (2.21-0ubuntu4.1) ...
Processing triggers for initramfs-tools (0.120ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-4.2.0-34-generic
lucifer@1004lucifer-hello5:~$
lucifer@1004lucifer-hello5:~$
lucifer@1004lucifer-hello5:~$ sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla





마지막 gedit 명령으로 편집기 툴을 열고서 아래의 문자열을 입력 후 저장한다.


[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=yes




위와같이 작업 후 재부팅을 해주게 되면 이후에는 전원버튼을 눌렀을 때 최대절전모드(hibernate)로 진입이 되며 PC가 꺼지게 된다.






PS.
커맨드 창으로 최대 절전모드 진입하고 싶은 경우에는 아래와 같이 입력하면 가능하다.


lucifer@1004lucifer-hello5:~$ 
lucifer@1004lucifer-hello5:~$ sudo hibernate
lucifer@1004lucifer-hello5:~$




참고: https://help.ubuntu.com/stable/ubuntu-help/power-hibernate.html


댓글