Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 01-19-2007, 12:44 PM   #1
Registered: May 2004
Location: Amboy WA USA
Distribution: Mandriva 2007
Posts: 366

Rep: Reputation: 30
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?

Old 01-21-2007, 12:23 PM   #2
Registered: Jul 2005
Location: Bulgaria
Distribution: Mandriva 2011
Posts: 49

Rep: Reputation: 15

1. You must have swap partition 1.5 bigger then your installed RAM.
2. Install package
3. Install and
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)

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hibernate prabhakar_kushwaha Linux - Software 1 10-21-2005 08:28 AM
Cant hibernate 9.3 alaios SUSE / openSUSE 20 08-18-2005 12:08 PM
Can I Hibernate? ernesto_cgf Linux - Software 3 12-23-2004 02:22 AM
Hibernate How To... ???? trey85stang Linux - Laptop and Netbook 3 05-12-2004 07:07 PM
hibernate demmylls Linux - General 3 09-12-2003 03:47 PM

All times are GMT -5. The time now is 05:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration