Sleep in linux

Source: Internet
Author: User
Tags linux sleep
Linux sleep-general Linux technology-Linux technology and application information. For more information, see the following section. The sleep configuration process is described as follows:
Enable Hibernation in the kernel and set Default resume partition to your swap partition. (You can also set the parameters in grub)
Add resume =/dev/swappartition to the kernel parameters in grub (your swap partition)
# Emerge hibernate-script-av
# Rc-update add hibernate-cleanup boot
Comment out nvidia in/etc/hibernate/blacklisted-modules.
To restart the service, add this sentence to/etc/hibernate/common. conf.
RestartServices ntp-client net. eth2 net. ppp0
(Ppp0 is okay here, but it is useless to restart eth2. You can leave a message if you have an expert .)
Simple to use.
Hibernate
Use hibernate-ram for standby
You can also use gnome-power-manager.
# Emerge gnome-power-manager-av
But I don't know why, one machine can, and one machine can't.
The error is as follows:
$ Gnome-power-cmd.sh hibernate
Hibernating
Error org. freedesktop. Rule. GLib. UnmappedError. GpmControlError. Code0: messages are not sent according to the authorization security rules.

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.