作者: sixth, 出处:赛迪网 , 责任编辑: 韩博颖,
2008-01-29 15:49
内核2.6.23以前要用suspend2-source,以后就用tuxonice-source了。
1、安装tuxonice-source和hibernate-script
前者是打了休眠和待机功能的补丁的内核源码包,后者是提供了用户执行休眠和待机的脚本。
2、编译内核
下面是我的配置
* 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 │ │ |