Friday, May 02, 2008

RHEL/CentOS5 suspend

Still in the process of recovery my centos 5's disaster. Still feel funny with RHEL &CentOS, as my current hardware setting works fine with ubuntu and suse linux.

Today did some study and listing download below URL. hope they will help.

http://mhensler.de/swsusp/
http://tuxonice.net/
http://kbase.redhat.com/faq/FAQ_43_7121.shtm
http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram
http://www.thinkwiki.org/wiki/How_to_make_ACPI_work
http://www.thinkwiki.org/wiki/Problem_with_display_remaining_black_after_resume


lease note that Red Hat Support will not answer any questions about this package and cannot officially support this. Red Hat Support is not responsible for any problems that may arise out of using this package. However, these instructions plus the comments in the package should be very helpful to most users.

The package can be downloaded here: http://people.redhat.com/vanhoof/acpi-suspend/RPM/

Execute the command rpm -ivh acpi-sleep-*. It contains the following files, which should be placed in the directories indicated:

/etc/acpi/actions/sleep.sh
/etc/acpi/events/lid.conf
/etc/acpi/events/sleep.conf
/etc/acpi/events/sample.conf

The only file that needs to be modified is /etc/acpi/actions/sleep.sh. Read through the comments in that file to determine which items you need to enable and which you can comment out. It might take some experimentation to get the settings right for your system.

On some systems, it may also be necessary to boot with a special kernel parameter. If the system does not properly suspend to ram after making the above changes (or if it does not properly recover from sleep mode), try adding acpi_sleep=s3_bios to your kernel line in /boot/grub/grub.conf. An example of this change is below:

title Red Hat Enterprise Linux AS (2.6.9-22.0.1.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-22.0.1.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet acpi_sleep=s3_bios
initrd /initrd-2.6.9-22.0.1.ELsmp.img

Another factor to consider is the BIOS settings for your system. This
is something that is largely system dependent, making it hard to offer
specific advice. Generally speaking, though, you may want to disable
extraneous features in the BIOS to rule them out as factors in the
suspend-to-ram functionality. Again, experimenting with different
settings may be necessary.