Linux sleep and Suspension

Source: Internet
Author: User
Tags linux sleep
Linux sleep and suspension-general Linux technology-Linux technology and application information. For details, refer to the following section. Many changes have been made to the Linux kernel, and the configuration needs to be changed accordingly.

The only thing that not changes is Change :)

System Requirements:

Configure and compile the kernel: Applicable to kernel2.6.22 and 2.6.24. The latest kernel is not tested.

Required upper-layer software: hibernate, hal, gnome-power-manager

Test environment:

System: Debian lenny/sid

Desktop: gnome2.22

MACHINE: Thinkpad r40

Operation Details:

1. Required kernel options:

Power Management support:

Suspend to Ram and Standby

Hibernate

() Default resume partition

(If there are multiple swap areas, you need to set the default swap. Use fdisk-l to confirm)

ACPI Support

Future power/sys interface

AC adapter

Battery

Button

Fan

Processor

Thermal zone

Device driver

Block devices

Ram Disk support

Note the following when compiling: Use initrd to boot the kernel

2. command line tool hibernate

Install hibernate

Sudo aptitude install hibernate

Configure hiberante

Sudo dpkg-reconfigure hibernate

It mainly refers to the sleep wake-up password.

Sudo hibernate-disk // sleep, the system memory image will be written to the swap area and shut down

Sudo hibernate-ram // suspend is suspended.

3. tools on the GUI

Environment: gnome2.22

Upper-layer software required: hal, gnome-power-manager

Sudo aptitude install gnome-power-manager

Add power management to the system taskbar Panel.

Here, the root user can use the mouse to suspend and sleep.

The key to using sleep for common users: Adding Permissions

The simplest and most secure method is to join the sleep group. They are haldaemon and powerdev.

Note that haldaemon may be hal on your machine, mainly because of the new and old hal versions.

After joining the two groups, you can easily use the power management.

Summary:
In linux, the suspend and hibernate modes can be used at will without additional configuration, which is more convenient. Windows xp can only be in sleep or suspend mode. You need to update the settings when switching between them.

There are too many drivers related to specific hardware in linux. I hope they can be abstracted from the kernel one day and put in Userspace.
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.