当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [转帖]T61p 在ubuntu 8.04下的休眠
帖子发表于 : 2008-07-21 10:22 

注册: 2007-12-17 10:36
帖子: 23
送出感谢: 0 次
接收感谢: 0 次
原帖地址: http://leoslog.wordpress.com/2008/03/29 ... eron-beta/

In my ever ongoing quest to get Ubuntu Hardy Heron beta to work on my beloved Thinkpad T60p, I finally managed to get suspend/resume working.

This is actually one of the greater achievements , especially considering this was impossible in Ubuntu Gutsy, Mint Daryna and probably pretty much any other recent Linux distro using one of the newer SLAB enabled kernels together with the ATI propritary ‘fglrx’ driver.

This is the steps involved:

- First , you should get uswsusp installed which will bring you s2ram. Unfortunately, in the official uswsusp the gurus decided to remove s2ram. So we will bring it in from this repository instead (add to /etc/apt/sources.list):

deb http://http.us.debian.org/debian/ unstable main contrib non-free

Then type:

# sudo apt-get update; sudo apt-get install uswsusp

Now off to edit /etc/gdm/gdm.conf … probably not the right way to do things, but hey - it works.

Edit the line reading “SuspendCommand=/usr/sbin/pm-suspend” , adding the –force flag to it so it will loke like “SuspendCommand=/usr/sbin/pm-suspend –force”.

You should now be able to respond/resume using fn+f4 or the gnome “power” button.

Unfortunately, upon resume my system suffered from two annoyances:

1. WLAN connection broken

2. X session broken (I was back at the login screen and gnome was restarted)

The first problem is related to the Intel 3945 restricted driver. The fix was to edit /usr/lib/pm-utils/sleep.d/10NetworkManager. In the function “suspend_nm()” comment out the dbus-send stuff and put “rmmod iwl3945″. In function “resume_nm()” again comment out dbus-send and put “modprobe iwl3945″.

The second problem is , as far as my understanding goes, related to virtual terminal changes taking place during suspend locking … ahem … edit /usr/lib/pm-utils/functions and comment out all lines starting with chvt. Hurray , finally resume/suspend works as it is supposed to.

BTW … hibernation doesn’t work (what did you expect .. ?) , but I am probably not going to dig into that since I dont use it.

简单翻译:
(在此之前我尝试过thinkwiki的解决办法, 但没有一种能够解决我的问题. )
refer to: http://www.thinkwiki.org/wiki/Installin ... ardy_Heron)_on_a_ThinkPad_T61

(之后我尝试了leo的方法, 使用了uswsusp. 现在我可以suspend了, 但是hibernate依然有问题. 奇怪的是当初7.10的时候, hibernate在t61p下没有任何问题. 我的T61p: T7250+3gig+570m+7k200)

Leo的方法呢, 就是下一个叫uswsusp的第三方软件. http://suspend.sourceforge.net/
我没有用国内的源, 所以我不清楚大家是否能直接apt-get到这个package.
leo的源是: deb http://http.us.debian.org/debian/ unstable main contrib non-free
之后呢: sudo apt-get update; sudo apt-get install uswsusp
安装配置package的时候可能回询问是否要uswsusp来选择swap分区, 选择是.
安装完成后:
代码:
sudo nano /etc/gdm/gdm.conf

用control + w找到 "SuspendCommand=/usr/sbin/pm-suspend"
改为"“SuspendCommand=/usr/sbin/pm-suspend –force"

配置完成.

这个方法可能适用于大多数570m, 140m以及ati的几款显卡, 遇到不能suspend的朋友可以试试看.
毕竟不能休眠的笔记本是在是难以让人忍受......

我还刚开始接触ubuntu, 如果大家有更好的解决方法, 欢迎探讨. :D


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译