New School: Sleep and standby in Linux

Source: Internet
Author: User
Suspend2-source was used before kernel 2623 and tuxonice-source later. 1. install tuxonice-source and hibernate-script. The former is supplemented by sleep and standby functions.

Run the suspend2-source before kernel 2.6.23 and use tuxonice-source later.

1. install tuxonice-source and hibernate-script

The former is the kernel source package with sleep and standby patches, and the latter provides scripts for users to execute sleep and standby.

2. Compile The Kernel. The following is my configuration:

  1. * Power Management support │ [] Legacy Power Management API (DEPRECATED) │ [] Power Management Debug Support │ *] Suspend to RAM and standby │ *] Hibernation (aka 'suspend to Disk ') │ () Default resume partition │ <*> Enhanced Hibernation (TuxOnIce) ---> --- Enhanced Hibernation TuxOnIce) │ --- Image Storage (you need at least one allocator) │ <*> File Allocator │ <*> Swap Allocator │ --- General Options │ <*> Compression support │ <*> Userspace User Interface support │ (/usr/local/sbin/tuxonice_fbsplash) default userui program location │ [] Allow Keep Image Mode │ *] Replace swsusp by default │ <> Cluster support ---> │ *] checksum pageset2 │ (25) default waiting time for emergency boot messages │

3. use the new kernel

Used in terminal and X

Try hibernate-n and hibernate-ram-n respectively. if everything is normal, it indicates that the configuration is correct and can be used normally (remove the following-n)

4. the problem that hibernate-ram cannot resume -- vbetool

At the beginning, after standby on my dell 1400 book, the screen will become very dark and dark, and there will be no things in the terminal, but the machine is running and searching, you need to use vbetool to install vbetool, and then enable/etc/hibernate/common. in conf

### VbetoolEnableVbetool yes

If you try again, everything will be normal. The notebook has the standby and sleep functions to reflect its value.

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.