1. You must have swap partition 1.5 bigger then your installed RAM.
2. Install hibernate.xxx.rpm package
3. Install kernel-mm-desktop.xxx.rpm and kernel-source-mm-desktop.xxx.rpm
4. Add to boot configuration to enable S3 support and suspend to disk:
resume=/dev/hdaxxx resume2=swap:/dev/hdaxxx acpi_sleep=s3_bios
where /dev/hdaxx must correspond to your swap partition
5. Enable sudo user <yourname> (to enable starting of hibernate script not only for root)
6. In file /etc/acpi/events/power copy:
This will hibernate PC after pressing of Power Off button
7. Create new Menu entry SLEEP and point sleep button of keyboard with:
sudo /usr/sbin/hibernate --config-file=/etc/hibernate/hibernate-ram.conf
8. In /etc/hibernate copy file hibernate.conf like hibernate-ram.conf. Then comment all options that you prefer to not use. This will suspend to ram (S3) PC after pressing of Sleep button on multimedia keyboard
Beware that after installing of new kernel you will need to reinstall videocard drivers and maybe some other drivers (webcam and etc...)
I'm using hibernate to RAM (S3), because it's very fast on suspend/resume on my desktop machine, but all other options are also work fine on my Mandriva 2007. If you use "Beryl" you will receive problems at suspend/resume. There are some workarounds regarding this problem but it's a better to stop using Beryl if you plan to use hibernation.