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:
- * 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.