linux下的Suspend与Hibernate 的区别

来源:互联网 发布:idea scala java 混合 编辑:程序博客网 时间:2024/06/15 10:37

原文:https://help.ubuntu.com/10.04/hardware/C/pm-suspending.html

In order to save power, you can put your computer into one of a number of power-saving modes when you are not using it:

  • Suspending a computer is like putting the computer to sleep. The computer will still be turned on and all of your work will be left open, but it will use much less power. You can wake the computer by pressing a key or clicking the mouse.

  • Hibernating is turning the computer off completely while saving the current state of the computer (such as keeping all of your open documents). When you turn the computer back on after hibernating, all of your work should be restored as it was before hibernation. No power is used when the computer is hibernating.

  • Shutting down is turning the computer off completely, without saving the current state of the computer. No power is used when the computer is shut down.

  • Resuming is bringing the computer out of a power saving mode and back into normal operation. You can resume the computer from being suspended by pressing a keyboard button or by clicking the mouse. You can resume from being hibernated by pressing the power button on your computer.

You can manually put your computer into a power-saving mode by pressing the User Switcher in the top right hand corner of the screen and then pressing the appropriate button.

[Caution] 

Some computers may have problems going into certain power saving modes. The best way of checking if your computer can handle a power-saving mode is to try to switch to that mode and see if it behaves as you expected. Always make sure you save important documents before suspending or hibernating.

My computer does not suspend or hibernate correctly

Some computers are unable to suspend or hibernate correctly with Ubuntu. If this is the case for your computer, you may notice some of the following symptoms:

  • The computer does not turn off after you click to hibernate it.

  • When you turn the computer on after hibernating it, your previously open programs are not restored.

  • The computer will not wake up after you have suspended it.

  • Certain programs or hardware devices stop working correctly after resuming from hibernation or waking-up from being suspended.

If you suffer from any of these problems, you should report a bug to Launchpad. The problems will hopefully be fixed in a subsequent version of Ubuntu.

If your hardware does not work properly after suspending or hibernating your computer, restart your computer and it should return to normal. If a program does not work properly, try closing the program and then starting it again.

[Caution] 

Make sure that you save all of your open documents before testing for suspend and hibernate problems.

Why do I get a strange pattern on the screen when I hibernate my computer?

Your screen may show a black and white pattern just after you click to hibernate your computer. This is usually nothing to worry about and is just how the graphics cards of some computers respond to the initial stages of the hibernation process.

If the computer displays the pattern for a prolonged period of time without turning itself off then you may have a problem with hibernation. SeeMy computer does not suspend or hibernate correctly for more information.



Suspend does not turn off your computer. It puts the computer and all peripherals on a low power consumption mode. If the battery runs out or the computer turns off for some reason, the current session and unsaved changes will be lost.

Hibernate saves the state of your computer to the hard disk and completely powers off. When resuming, the saved state is restored to RAM.


其他参考:http://truejournals.com/2009/10/13/suspend-vs-hibernate/--博客的界面很漂亮,详细介绍了二者的优缺点以及使用场合。

http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=745--图文并茂,以windows为例

http://www.cyberciti.biz/faq/linux-suspend-hibernate-functionality-support/--该网站很多技术类文章,值得一看。

http://en.wikipedia.org/wiki/Hibernation_%28computing%29--wiki: hibernate

http://askubuntu.com/questions/3369/what-is-the-difference-between-hibernate-and-suspend--著名的stack exchange的ask ubuntu版块

https://wiki.archlinux.org/index.php/Suspending_to_Disk_with_hibernate-script--archlinux上很多文档。。。



原创粉丝点击