LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (http://www.linuxquestions.org/questions/mandriva-30/)
-   -   Need help with 'hibernate' (http://www.linuxquestions.org/questions/mandriva-30/need-help-with-hibernate-520934/)

d1l2w3 01-19-2007 01:44 PM

Need help with 'hibernate'
 
The following error occurs when trying to hibernate:

[root@server don]# hibernate -v2
hibernate: Trying method in suspend2.conf...
hibernate: Trying method in ususpend.conf...
hibernate: Trying method in disk.conf...
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSysfsPowerStateCapable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
Unloading blacklisted module via_rhine (and dependencies)
Unloading blacklisted module button (and dependencies)
hibernate: [91] Executing ModulesUnloadBlacklist ...
Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [99] Executing DoSysfsPowerStateSuspend ...
hibernate: Activating sysfs power state disk ...
/bin/echo: write error: No such device
hibernate: [90] Executing ModulesLoad ...
Loading module via_rhine (from auto)...
Loading module button (from auto)...
Loading module via_rhine (from auto)...
Loading module button (from auto)...
hibernate: [89] Executing RestoreKernelModprobe ...
hibernate: [85] Executing XHacksResumeHook2 ...
hibernate: [70] Executing ClockRestore ...
hibernate: [70] Executing ClockRestore ...
hibernate: [11] Executing XHacksResumeHook1 ...
hibernate: [01] Executing NoteLastResume ...
hibernate: [01] Executing LockFilePut ...
[root@server don]#

/bin/echo: write error: No such device
What device is it referring to?

Can 'hibernate' be set to start automatically after so many minutes?

dlw

valyo_bg 01-21-2007 01:23 PM

Hi,

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:
event=button/power (PWR.|PBTN)
action=/usr/sbin/hibernate

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.

Regards,
Valentin


All times are GMT -5. The time now is 06:38 PM.