Uswsusp sleep function Perfect support notebook computer

Source: Internet
Author: User
Keywords Laptop hibernate function Uswsusp
Tags aliyun arch computer function gnome gnu html http

Install Uswsusp

Ubuntu GNU Just

sudo aptitude install Uswsusp

Arch GNU System

sudo pacman-s uswsusp

The following two paragraphs http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu skip, directly to the last let gnome (or HAL) instead of USWSUSP mode hibernate

Modify Configuration/etc/suspend.conf (Ubuntu is automatically configured and the files under Ubuntu are/etc/uswsusp.conf)
To

Resume device = <path_to_resume_device_file>

The <path_to_resume_device_file> in is changed to your swap as

Resume device =/dev/sda2

Uswsusp can also compress memory mirrors, not only to make swape partitions much smaller than memory, but to speed up the recovery process (because of the reduced time to read hard drives).
Remove the comment in front of the compress, i.e.

Compress = y

Add a row to the end of the file and clearly set the system to shutdown instead of rebooting.

Shutdown method = Shutdown

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.