2007年9月15日 星期六

續hibernate/suspend/resume設定分享

續前篇筆電 的Linux 系統hibernate不能用?經過這幾天的反覆的resume/hibernate/resume的測試,特別是針對Compiz fusion做了許多測試,我對之前ThinkpadR31的設定做一些修正,以下我直接列出我的設定,此外也預告下一篇文章:IDSdemo最近前一陣子有朋友提交我一個改版,我將整合好他的貢獻,以及換上新版的single.fnt,下一篇發表

以下是我的/etc/default/acpi-support ,大部份時間resume/hibernate都沒問題了,但其中Compiz fusion在resume時部份還有一些不穩定,有時resume仍然會發生螢幕更新異常的狀況,建議要resume/hibernate時,換回metacity進行,resume回來再切換回Compiz fusion

# Comment the next line to disable ACPI suspend to RAM
#test true(normal is false)
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(TP上確實比較沒問題)
#ACPI_SLEEP_MODE=mem
ACPI_SLEEP_MODE=standby


# 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?
#預設是false,但用不用compiz都可以設成true,resume以後比較不會出現螢幕更新錯誤的問題
POST_VIDEO=true

# 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
#Thinkpad R31可以用ACPI shutdown,這樣就不會resume完,LED燈還閃不停了
#HIBERNATE_MODE=shutdown
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
#RESTART_IRDA=true

# Switch to laptop-mode on battery power - off by default as it causes odd
# hangs on some machines
ENABLE_LAPTOP_MODE=false

沒有留言:

count