Article Title: Sleep and standby in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open-source and other basic classification kernel 2.6.23 before to use suspend2-source, then use tuxonice-source.
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
Below is my configuration
* 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. After searching, we found that we needed to use vbetool to install vbetool, and then open
### vbetoolEnableVbetool yes
|
Try again and everything will be normal.
The notebook has the standby and sleep functions to reflect its value!