1
1
<page xmlns="http://projectmallard.org/1.0/"
2
xmlns:its="http://www.w3.org/2005/11/its"
3
xmlns:if="http://projectmallard.org/if/1.0/"
2
4
type="topic" style="question"
3
5
id="power-hibernate">
6
8
<link type="guide" xref="power"/>
8
<desc>Hibernate saves your state, but completely switches off the power.</desc>
9
<revision pkgversion="3.4.0" date="2012-02-20" status="review"/>
10
<desc>Hibernate is disabled by default since it's not well supported.</desc>
11
<revision pkgversion="3.6.0" date="2012-08-14" status="review"/>
11
13
<credit type="author">
12
14
<name>GNOME Documentation Project</name>
16
18
<name>Ekaterina Gerasimova</name>
17
19
<email>kittykat3756@gmail.com</email>
21
<credit type="author">
22
<name>Jeremy Bicha</name>
23
<email>jbicha@ubuntu.com</email>
20
26
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
23
<title>What happens when I hibernate my computer?</title>
29
<title>How do I hibernate my computer?</title>
25
31
<p>When the computer <em>hibernates</em>, all of your applications and
26
32
documents are stored and the computer completely switches off so it does not
27
33
use any power, but the applications and documents will still be open when you
28
switch on the computer again. You cannot hibernate the computer yourself, but you can set <gui>Hibernate</gui> as the default action for when your computer battery is critically low:</p>
31
<p>Click your name on the top bar and select <gui>System Settings</gui>.</p>
34
<p>Open <gui>Power</gui>.</p>
37
<p>Change the <gui>When power is critically low</gui> option to <gui>Hibernate</gui>.</p>
41
<p>Some computers have problems with hardware support which mean that they
42
<link xref="power-suspendfail">may not be able to suspend or hibernate
43
properly</link>. It is a good idea to test hibernate on your computer to see if
34
switch on the computer again.</p>
36
<p>Unfortunately, hibernate <link xref="power-suspendfail">doesn't work</link>
37
in many cases, which can cause you to lose data if you expect your documents
38
and applications to re-open when you switch your computer back on. Therefore,
39
hibernate is disabled by default.</p>
41
<section id="test-hibernate">
42
<title>Test if hibernate works</title>
46
44
<note style="important">
47
45
<title>Always save your work before hibernating</title>
50
48
recovered when you switch on the computer again.</p>
51
<p>You can use the command line to test if hibernate works on your computer.</p>
56
<if:when test="platform:unity">
57
<p>Open the <app>Terminal</app> by pressing <keyseq><key>Ctrl</key>
58
<key>Alt</key><key>t</key></keyseq> or by searching for <input>terminal</input>
59
in the <gui>dash</gui>.</p>
61
<p>Open the <app>Terminal</app> by searching for <input>terminal</input>
62
in the <gui>Activities overview</gui>.</p>
66
<p>As root, type <cmd>pm-hibernate</cmd> into the terminal and press <key>Enter</key>.</p>
67
<p>Enter your password when prompted.</p>
70
<p>After you computer turns off, switch it back on. Did your open applications
72
<p>If hibernate doesn't work, check if your swap partition is at least as large as your
79
<section id="enable-hibernate">
80
<title>Enable hibernate</title>
82
<p>If the hibernate test works, you can continue to use the <cmd>pm-hibernate</cmd>
83
command when you want to hibernate.</p>
85
<p>You can also enable the hibernate option in the menus. To do that, use your favorite text
86
editor to create <file>/etc/polkit-1/localauthority/50-local.d/org.gnome.enable-hibernate.pkla</file>.
87
Add the following to the file and save:</p>
89
<code its:translate="no">
90
[Re-enable hibernate by default]
92
Action=org.freedesktop.upower.hibernate
b'\\ No newline at end of file'