You are not logged in.

#1 2007-11-22 00:36:26

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

tuxonice

If I applied the tuxonice patch to my kernel, would I need the hibernation-script package?

Offline

#2 2007-11-22 03:12:39

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: tuxonice

ok, scrach that

I can now get my machine to hibernate, but I can't get it to resume

yes, I did set it to suspend to the swap partition (/dev/sdb3) and I event put the entry in the kernel line correctly, added the hook to /etc/mkinitcpio.conf, etc

my theory is that it has something to do with the initcpio hook

run_hook ()
{
    fmtdevice () { echo "${1}:${2}"; }

    # Try resuming with swsusp
    if [ -e "/sys/power/resume" -a -e "${resume}" ]; then
        dev_t=$( /bin/parseblock "${resume}" )
        fmtdevice ${dev_t} > /sys/power/resume
    fi
    
    # Try resuming with suspend2
    if [ -d "/sys/power/suspend2" ]; then
         suspend2root="/sys/power/suspend2"
    else 
         suspend2root="/proc/suspend2"
    fi
    if [ -d "${suspend2root}" -a -n "${resume2}" ]; then
        echo ${resume2} > ${suspend2root}/resume2
        echo > ${suspend2root}/do_resume
    fi
}

thing is /sys/power/resume2 doesn't exist and neither does /proc/suspend2

please help

[edit]nevermind, I fixed it by using resume=/dev/sdb3 on the kernel instead of resume2=swap:/dev/sdb3

Last edited by NoOneImportant (2007-11-22 05:00:15)

Offline

Board footer

Powered by FluxBB