CTOCIO IT专家网

天极传媒 比特网 | 天极网 | IT专家网 | IT商网 | 52PK游戏网 | 手机天极 | IT分众 |
IT专家网搜索

您现在的位置: IT专家网 > CIO子站 > Linux与开源

Linux操作系统下的休眠与待机

作者: sixth,  出处:赛迪网 , 责任编辑: 韩博颖, 
2008-01-29 15:49
  使用linux的朋友是不是遇到过一个问题,那就是在遇到Windows可以待机的情况下,linux里却无法实现。现在就来教你在Linux里实现待机和休眠……

  内核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 │ │

  

共2页。 1 2 :

网友评论

笔名 
请您注意:遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。    IT专家网友拥有管理笔名和留言的一切权利。
  • 周排行榜
  • 月排行榜

邮件订阅

天极服务 | 关于我们 | 网站律师 | 加入我们 | 联系我们 | 广告业务 | 友情链接 | 我要挑错
All Rights Reserved, Copyright 2004-2008, Ctocio.com.cn
渝ICP证B2-20030003号 如有意见请与我们联系 powered by 天极内容管理平台CMS4i