FreedomWing 自由翼

作者: LaughWOLVES
查看: 6099|回复: 1

more +随机图赏Gallery

孩子责任心越早培养越好,记得把握3个生活细节孩子责任心越早培养越好,记得把握3个生活细节
小时候没哭够的孩子,长大后很难拥有好性格!小时候没哭够的孩子,长大后很难拥有好性格!
颜王 [2021]颜王 [2021]
宝宝手背长了一些小疙瘩, 不痛不痒, 是什么宝宝手背长了一些小疙瘩, 不痛不痒, 是什么
Tampermonkey 油猴的安装Tampermonkey 油猴的安装
2-3岁宝宝一日三餐怎么吃? 不是大鱼大肉最营养2-3岁宝宝一日三餐怎么吃? 不是大鱼大肉最营养

[转帖] 新手学堂:Linux操作系统下的休眠与待机

[转帖] 新手学堂:Linux操作系统下的休眠与待机

  [复制链接]
LaughWOLVES | 显示全部楼层 发表于: 2008-1-28 18:02
LaughWOLVES 发表于: 2008-1-28 18:02 | 显示全部楼层 |阅读模式
查看: 6099|回复: 1
来源:赛迪网    作者:sixth


内核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里的

### vbetool
EnableVbetool yes


再试试,就一切正常了。


笔记本有了待机和休眠的功能,方能体现其价值啊!


(责任编辑:云子)
suxxx | 显示全部楼层 发表于: 2008-1-29 01:13
suxxx 发表于: 2008-1-29 01:13 | 显示全部楼层
哎呀,我喜欢,学习学习~~~~~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|FreedomWing 自由翼

GMT+8, 2023-11-29 00:02 , Processed in 0.057557 second(s), 9 queries , File On.

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表