or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Power Management References - disk
Hibernation Basics
Linux makes an image from current memory contents and system states using swap space. When user tries to resume, the make-shift image is loaded. As the system states are stored in persistence storage, memory can be powered off completely. This makes hibernation more power-saving than suspend-to-ram. On the other hand, resuming the system from contents in the disk may be slow. Thus resuming in general takes longer time.
Setting up hibernation
Because of its nature, hibernation is much trickier to set up. For example, you'll need a swap partion or swap file for the hibernation image. See See Hibernation in Power management/Suspend and hibernate from Arch Linux wiki.
Behaviors
The behavior of suspension can be obeserved in
dmesg
by runingpm-hibernate
after enable the/sys/power/pm_debug_messages
. Thepm-hibernate
is part of thepm-utils
tool. You can install them on Ubuntu by:To enable the
pm_debug_messages
, simplycat
1 into it:Doing this will enable extra messages regarding power management in the
dmesg
.Finally, to start doing hibernation:
Note that the machine hasn't setup swap files properly, so those are not catual hiberanation behaviors. That being said, some notable differences between suspend-to-ram can already be observed. For example, fomr logs you could see kernel trying to create image for hibernation.
Suspension Behavior
Resuming Behavior