[分享]笔记本终于可以从挂起到内存正常恢复了

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
回复
头像
cnxcy
帖子: 23
注册时间: 2006-08-24 23:02
送出感谢: 0
接收感谢: 0

[分享]笔记本终于可以从挂起到内存正常恢复了

#1

帖子 cnxcy » 2007-03-10 5:42

终于在ubuntu6.1搞定了Resume from SUSPEND

是从这里找到的方法:http://www.ubuntuforums.org/showthread. ... end+to+ram

具体步骤:

1、修改/etc/default/acpi-support

代码: 全选

# Comment the next line to disable ACPI suspend to RAM
ACPI_SLEEP=true

# Comment the next line to disable suspend to disk
ACPI_HIBERNATE=true

# Change the following to "standby" to use ACPI S1 sleep, rather than S3.
# This will save less power, but may work on more machines
ACPI_SLEEP_MODE=mem

# Add modules to this list to have them removed before suspend and reloaded
# on resume. An example would be MODULES="em8300 yenta_socket"
#
# Note that network cards and USB controllers will automatically be unloaded 
# unless they're listed in MODULES_WHITELIST
MODULES=""

# Add modules to this list to leave them in the kernel over suspend/resume
MODULES_WHITELIST=""

# Should we save and restore state using the VESA BIOS Extensions?
SAVE_VBE_STATE=true

# The file that we use to save the vbestate
VBESTATE=/var/lib/acpi-support/vbestate

# Should we attempt to warm-boot the video hardware on resume?
# 我主要是修改了这里,原来为true
POST_VIDEO=false

# Save and restore video state?
SAVE_VIDEO_PCI_STATE=true

# Should we switch the screen off with DPMS on suspend?
USE_DPMS=true

# Use Radeontool to switch the screen off? Seems to be needed on some machines
# RADEON_LIGHT=true

# Uncomment the next line to switch away from X and back again after resume.
# This is needed for some hardware, but should be unnecessary on most.
# DOUBLE_CONSOLE_SWITCH=true

# Set the following to "platform" if you want to use ACPI to shut down
# your machine on hibernation
HIBERNATE_MODE=platform

# Comment this out to disable screen locking on resume
LOCK_SCREEN=true

# Uncomment this line to have DMA disabled before suspend and reenabled
# afterwards
# DISABLE_DMA=true

# Uncomment this line to attempt to reset the drive on resume. This seems
# to be needed for some Sonys
# RESET_DRIVE=true

# Add services to this list to stop them before suspend and restart them in 
# the resume process.
STOP_SERVICES="mysql "

# Restart Infra Red services on resume - off by default as it crashes some
# machines
RESTART_IRDA=false

# Switch to laptop-mode on battery power - off by default as it causes odd
# hangs on some machines
ENABLE_LAPTOP_MODE=false
2、同时修改 /boot/grub/menu.lst 去掉 splash 和 quiet 两个启动选项
(also in my /boot/grub/menu.lst file i get rid of the splash and quiet tags in the defoptions line.)

我的笔记本是东芝笔记本。终于解决这个苦恼我已久、花了我无数时间的问题,心里好高兴。发在这里给有需要的朋友分享。
linux是共产主义方向,windows是资本主义歧途。虽然目前革命是低潮,但相信共产主义必然胜利。
头像
matri
帖子: 1140
注册时间: 2006-10-27 11:14
来自: 悉尼
送出感谢: 0
接收感谢: 0

#2

帖子 matri » 2007-03-10 9:16

我的东芝本本还是不行,能睡,醒不过来,感觉是显卡的问题。
头像
cnxcy
帖子: 23
注册时间: 2006-08-24 23:02
送出感谢: 0
接收感谢: 0

#3

帖子 cnxcy » 2007-03-10 14:02

我的显卡是GeForce4 440 Go,下载官方驱动8876安装好的(别的如9631等我都试过,没安装成功)。

另外,我修改了/etc/modprobe.d/aliases
找到"toshiba" 改为 "toshiba_acpi".
然后运行 update-modules.
(详见我博客转载的文章http://hi.baidu.com/%B4%BE%D4%B6/blog/item/22e2843481c446b7d0a2d38a.html)

又曾修改过/boot/grub/menu.lst ,加入agp=off的启动参数,我的是这样的

代码: 全选

title           Ubuntu, kernel 2.6.17-11-generic
root            (hd0,1)
kernel          /vmlinuz-2.6.17-11-generic root=/dev/hda10 ro agp=off
initrd          /initrd.img-2.6.17-11-generic
希望有所帮助[/code]
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#4

帖子 eexpress » 2007-03-10 17:33

我的,基本正常,有时候出问题,2次。平时测试得少,没这需要。这种事情,和机型,以及系统版本关系太大。
● 鸣学
回复

回到 “常用硬件支持”