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

3、使用新内核

在终端下和X里面用

hibernate -n和hibernate-ram -n分别试试,如果一切正常则表明配置是没问题的,可以正常使用(去掉后面的-n)

4、hibernate-ram不能resume的问题——vbetool

刚开始在我的dell 1400本本上待机后再恢复,屏幕会变得很暗很暗,终端下根本看不见东西,但是机器是在运行的。

搜了下,发现需要用vbetool,安装vbetool,然后打开/etc/hibernate/common。conf里的

### vbetoolEnableVbetool yes

再试试,就一切正常了。

全部

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值