7。04下怎么设置笔记本休眠功能呀?

CPU/显卡/打印机/USB设备等硬件问题
tanzhi
帖子: 28
注册时间: 2006-05-04 21:50

7。04下怎么设置笔记本休眠功能呀?

#1

帖子 tanzhi » 2007-05-08 18:59

7。04下怎么设置笔记本休眠功能呀?
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#2

帖子 skyx » 2007-05-08 19:03

只要swap容量够用,休眠功能不用单独设定

本本能否可用,有时要看本本厂家的功力
no security measure is worth anything if an attacker has physical access to the machine
tanzhi
帖子: 28
注册时间: 2006-05-04 21:50

#3

帖子 tanzhi » 2007-05-08 21:00

是呀 swap和机器的物理内存一样大么? 我的机器两G是不是就要两G
dogal
帖子: 900
注册时间: 2006-11-23 13:04

#4

帖子 dogal » 2007-05-08 21:01

我的休眠可以
但是用到7.04后虽可以休眠但不可以待机
6.06可以
不知为什么
tanzhi
帖子: 28
注册时间: 2006-05-04 21:50

#5

帖子 tanzhi » 2007-05-08 21:17

我的待机 和 休眠 都不行,起来后是黑屏。只有按电源硬关机,再起来。
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#6

帖子 skyx » 2007-05-08 22:22

tanzhi 写了:我的待机 和 休眠 都不行,起来后是黑屏。只有按电源硬关机,再起来。
和休眠比, 待机(s3)对硬件的兼容性要求更高 ,我买过一块三线厂的主板,s3 在说明书居然写着不支持 ,估计是厂家搞不定,干脆在bios中关掉了
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#7

帖子 skyx » 2007-05-08 22:30

tanzhi 写了:是呀 swap和机器的物理内存一样大么? 我的机器两G是不是就要两G
如果休眠关机时不压缩或内存占满,理论上是这样的

不过如果不够用可以指定一个文件来存放
The device argument will usually be a disk partition (something like /dev/hda4 or /dev/sdb7) but can also be a file.
no security measure is worth anything if an attacker has physical access to the machine
tanzhi
帖子: 28
注册时间: 2006-05-04 21:50

#8

帖子 tanzhi » 2007-05-09 14:49

看样子是和SWAP有关 , 我重新分区了 重新装了系统了就好了 。 skyx
说的 怎么样设置呀 。如果我增加内存不是要重新再格式化一次呀
我的本本是 ThinkPad T60p
头像
sinoyster
帖子: 958
注册时间: 2005-10-16 13:24
来自: 四川成都
联系:

#9

帖子 sinoyster » 2007-05-16 8:54

LS的T60P!!!好有钱哦
Thank you Ubuntu Team!!!!
I still can't belive this is free...
colin
帖子: 6
注册时间: 2006-04-15 18:35

试试这个方法吧

#10

帖子 colin » 2007-05-16 21:35

我根据国外一个人些的文章,搞定了笔记本的休眠和挂起功能,您可以试试:
http://blog.paulbetts.org/index.php/200 ... -and-edgy/
cyberx
帖子: 52
注册时间: 2007-04-30 9:48
来自: 火星

#11

帖子 cyberx » 2007-06-09 13:23

skyx 写了:
tanzhi 写了:是呀 swap和机器的物理内存一样大么? 我的机器两G是不是就要两G
如果休眠关机时不压缩或内存占满,理论上是这样的

不过如果不够用可以指定一个文件来存放
The device argument will usually be a disk partition (something like /dev/hda4 or /dev/sdb7) but can also be a file.
怎么指定非swap存放内存呢?内存大还要大swap去支持,太别扭了。
头像
adqin
帖子: 1417
注册时间: 2007-01-24 22:07
来自: http://adqin.cn
联系:

#12

帖子 adqin » 2007-06-09 13:35

我机器是台式机,我就待机成功一次.以后都不行了
那次的情况是这样的:

显卡驱动是源直接安装的,内核是为修正7.04声卡问题而下的2.6.22的新版本
这样的时候待机居然成功了一次,由于这次桌面是kde,我以为是这个的原因

后来自己手动安装了显卡驱动(因为源那个不好用),内核换成源里最新的
结果待机就不成了
zhanglei@ubuntu
帖子: 51
注册时间: 2007-02-16 22:57

Re: 试试这个方法吧

#13

帖子 zhanglei@ubuntu » 2007-06-10 11:04

colin 写了:我根据国外一个人些的文章,搞定了笔记本的休眠和挂起功能,您可以试试:
http://blog.paulbetts.org/index.php/200 ... -and-edgy/
你好。我看了一下那篇文章。一开始要

代码: 全选

sudo apt-get install uswsusp
可是我没有这个源
我在www1.apt-get.org上面也没有搜索到关于uswsusp的源。

后来我又手动下载tar包安装,都不能执行./configure

请问你下你是怎么安装的?
cyberx
帖子: 52
注册时间: 2007-04-30 9:48
来自: 火星

Re: 试试这个方法吧

#14

帖子 cyberx » 2007-06-10 21:04

zhanglei@ubuntu 写了:
colin 写了:我根据国外一个人些的文章,搞定了笔记本的休眠和挂起功能,您可以试试:
http://blog.paulbetts.org/index.php/200 ... -and-edgy/
你好。我看了一下那篇文章。一开始要

代码: 全选

sudo apt-get install uswsusp
可是我没有这个源
我在www1.apt-get.org上面也没有搜索到关于uswsusp的源。

后来我又手动下载tar包安装,都不能执行./configure

请问你下你是怎么安装的?
我能用这种方式装,可是试过不能休眠……

我把自己的所有源贴出来,也不知道哪个源有。祝你成功。
# 英国
deb http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty main restricted universe multiverse
deb http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty-security main restricted universe multiverse
deb http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty main restricted universe multiverse
deb-src http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://ftp.ticklers.org/archive.ubuntu.org/ubuntu/ feisty-backports main restricted universe multiverse

# Archive.ubuntu.com 欧洲
deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn/ feisty main restricted universe multiverse

# 中国 台湾省台湾大学
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse

# 中国科技大学,合肥,PING=600
deb http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ feisty-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

# Mirror.lupaworld.com
deb http://cn.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu feisty-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu feisty-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu feisty-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu feisty-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu feisty-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu feisty-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu feisty-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu feisty-proposed main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn feisty main restricted universe multiverse

# 上海市 上海交通大学
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe
# deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe
# deb http://ftp.sjtu.edu.cn/ubuntu-cn/ feisty main multiverse restricted universe

# ubuntu gamers edition的源
deb http://ubuntusoftware.info/ feisty all

# E17的源
# deb http://edevelop.org/pkg-e/ubuntu feisty e17

# OO临时补丁
deb http://people.ubuntu.com/~doko/ubuntu/ feisty/$(ARCH)/
deb http://people.ubuntu.com/~doko/ubuntu/ feisty/all/

# Xorg Server Test
deb http://users.tkk.fi/~tjaalton/xorg72 feisty xorg-test

# Ntfs-3g
# deb http://givre.cabspace.com/ubuntu/ feisty main main-all
# deb http://ntfs-3g.sitesweetsite.info/ubuntu/ feisty main main-all
# deb http://flomertens.keo.in/ubuntu/ feisty main main-all

# deb http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
#deb http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
# deb http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
# deb http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
# deb http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
# deb-src http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
# deb-src http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
# deb-src http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
# deb-src http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
# deb-src http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
# deb http://mirror9.net9.org/ubuntu-cn/ feisty main multiverse restricted universe

##
##

deb http://security.ubuntu.com/ubuntu feisty-security main restricted
deb-src http://security.ubuntu.com/ubuntu feisty-security restricted main multiverse universe #Added by software-properties
deb http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
deb http://www.getautomatix.com/apt feisty main

#AUTOMATIX REPOS START
deb http://archive.canonical.com/ubuntu feisty-commercial main
#AUTOMATIX REPOS END
colin
帖子: 6
注册时间: 2006-04-15 18:35

你需要修改一下那个人写的脚本

#15

帖子 colin » 2007-06-10 21:35

也许是由于你的机器和我的机器一样,不在uswsusp的支持列表。但是,只要你使用sudo s2ram -f 能够正常休眠,并能够正常“醒”过来的,就可以实现正常休眠。
我的解决方法是:修改hal-system-power-suspend-linux
首先,找到如下的内容

代码: 全选

if [ -x "/sbin/s2ram" ] ; then
	    /sbin/s2ram
	   RET=$?
将其修改为:

代码: 全选

if [ -x "/sbin/s2ram" ] ; then
	    /sbin/s2ram -f
	   RET=$?
附件中有我改过后文件,你可以试一个。记得替换文件后执行

代码: 全选

sudo chmod 755 /usr/lib/hal/scripts/linux/*
哦。
附件
hal-system-power-suspend-linux.tar.gz
(1.34 KiB) 已下载 36 次
回复