Monday, November 9, 2009, 5:39:46 PM, Walter wrote:

>   Why do you need anything in the kernel commandlindline?  Everything is
> done either in the kernel config or in hibernate.conf.  "make menuconfig"
> on my machine goes like so...

> =========================================
> Power management and ACPI options  --->

>   [*] Power Management support
>   [ ]   Power Management Debug Support
>   [ ] Suspend to RAM and standby
>   [*] Hibernation (aka 'suspend to disk')
>   (/dev/sda6) Default resume partition
> =========================================

I have same settings in my kernel too:
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION="/dev/sda5"

Just added the 'resume=swap:/dev/sda5' to grub.con to be 100% sure
it's not a kernel bug.


>   Your system should have /dev/sda5.  I ran "emerge hibernate-script"
> and then executed "rc-update add hibernate-cleanup boot" so that when
> the machine comes up from "reboot" or "halt -p", it doesn't try to load
> the swap file as memory state.

I did this too.
Also I emerged sys-power/suspend because without this tool
hibernate-ram does not work for me (display is blank after resuming).


>   Here are the uncommented lines in my hibernate.conf.  The last 4 lines
> are specific to my machine, and may not apply to yours.  It works great
> for me.

> TryMethod disk.conf
> Distribution gentoo
> DownInterfaces auto
> PowerdownMethod shutdown
> UseSysfsPowerState disk
> UpInterfaces auto
> OnResume 99 chvt 1
> OnResume 98 setfont lat1-10
> OnResume 97 /etc/init.d/sshd restart
> OnResume 96 alsactl restore

/etc/hibernate/common.conf:
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution gentoo
SaveClock restore-only
UnloadBlacklistedModules yes
LoadModules auto
SwitchToTextMode yes

/etc/hibernate/hibernate.conf:
TryMethod tuxonice.conf
TryMethod disk.conf
TryMethod ram.conf

cat /etc/hibernate/disk.conf
TryMethod ususpend-disk.conf
TryMethod sysfs-disk.conf

/etc/hibernate/ususpend-disk.conf:
USuspendMethod disk
Include common.conf


Btw, am I right pressing 'power' button to resume from suspend to
disk?

-- 
Sergey


Reply via email to