LINUX implements standby and sleep

Source: Internet
Author: User
LINUX implements standby and sleep-Linux Enterprise Application-Linux server application information. The following is a detailed description. The default value of the evoc bios is to enable APM for ACPI, and only the ACPI mode is used for testing.

(Sleep and hibernation;

1. (sleep mode)
Log on to the current system as the root user name

1.1 check which sleep modes are supported by inner nuclear energy:
# Cat/sys/power/state
Mem disk (kernel only supports two sleep modes)

1. 2 type the command:
# Echo "mem">/sys/power/state

1.3
Press the power key of the motherboard to restore (wake up) to the previous screen

2. (hibernation sleep)
2.1 sleep supports two methods by default: shutdown and platform.
2.4 kernel shutdown
2.6 kernel use platform

2.2 The resume device must be specified for sleep. Generally, the swap partition is used.

In the specified mode, the parameter for passing Wake-Up to the kernel when grub is started is changed:
# Vi/etc/grub

Grub Configuration:
# Grub. conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a/boot partition. This means that
# All kernel and initrd paths are relative to/, eg.
# Root (hd0, 4)
# Kernel/boot/vmlinuz-version ro root =/dev/hda5
# Initrd/boot/initrd-version.img
# Boot =/dev/hda
Default = 0
Timeout = 5
Splashimage = (hd0, 4)/boot/grub/splash.xpm.gz
Hiddenmenu
Title Fedora Core (FC6-hibernation)
Root (hd0, 4)
Kernel/boot/vmlinuz-2.6.18-1.2798.fc6 ro root = LABEL =/rhgb quiet
Initrd/boot/initrd-2.6.18-1.2798.fc6.img change the kernel item
Kernel/boot/vmlinuz-2.6.18-1.2798.fc6 ro root = LABEL =/rhgb quiet resume =/dev/hda6

Save, exit, restart, and then log on as the root user.

2.3 type the command:
# Echo platform>/sys/power/disk; echo disk>/sys/power/state or # echo shutdown>/sys/power/disk; echo disk>/sys/power/state

After entering the status for 10 seconds, press the power key to wake up.

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.