Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8319
  • 博文数量: 9
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-08 06:25
文章分类
文章存档

2012年(2)

2011年(4)

2009年(3)

我的朋友
最近访客

分类: LINUX

2011-11-04 02:14:05

Ubuntu 11.04在我的laptop上可以suspend,但是升級到/11.10後就沒辦法了,google了一圈,找到了一個解決方案,原文如下:

I've had some difficulty getting uswsusp to be default on my other laptop. So here are the 3 approaches (best option first):

A1. Set correct pm-utils options
Code:
gksudo mousepad /etc/default/acpi-support
...and uncomment the line:
Quote:
# SAVE_VIDEO_PCI_STATE=true
...so that it reads
Code:
SAVE_VIDEO_PCI_STATE=true
...save the file.

A2. Recreate initramfs
Code:
sudo update-initramfs -u
A3. Reboot and try using the menu options.

------------------------------------------------

If you have no luck with the above approach, here is the second approach:

B1. Set uswsusp as default in place of pm-utils:
Code:
gksudo mousepad /etc/pm/config.d/defaults
...and add the following content:
Code:
SLEEP_MODULE=uswsusp S2RAM_OPTS="-f -s -p -v"
...save the file.

B2. Recreate initramfs
Code:
sudo update-initramfs -u
B3. Reboot and try using the menu options.

------------------------------------------------

And finally, if neither of the above 2 options work, try this approach:

C1. Create new pm-suspend file:
Code:
gksudo mousepad /usr/sbin/s2ram_override
...with the following contents
Code:
#!/bin/bash /usr/sbin/s2ram -f -s -p -v
...save the file then make it executable
Code:
chmod +x /usr/sbin/s2ram_override
C2. Backup the current pm-utils suspend file:
Code:
sudo mv /usr/sbin/pm-suspend /usr/sbin/pm-suspend.BAK
C3. Link in the s2ram suspend file:
Code:
sudo ln -s /usr/sbin/s2ram_override /usr/sbin/pm-suspend
C4. Try using the menu suspend option.



我用了option B ,解決了我的問題。
阅读(904) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~