Re: Mkinitcpio and tuxonice?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 2009-12-09 at 02:13 +0100, Damjan Georgievski wrote:
> > A quick look into testing shows that I won't be able to update the
> > 2.6.32 kernel due to dependencies on klib invalidating my 'old'
> > mkinitcpio package. Unfortunately I'm stuck here, since without this
> > 'old' package for mkinitcpio (0.5.24-1) I'm unable to resume from
> > hibernate in tuxonice.
> >
> > Any suggestions?
> 
> The hook I have is this,and resume with tuxonice works just fine. I'm
> using latest mkinitcpio
> (as always)
> 
> /lib/initcpio/hooks/resume:
> # vim:set ft=sh:
> run_hook ()
> {
>     fmtdevice () { echo "${1}:${2}"; }
> 
>     if [ -n "${resume}" ] && poll_device "${resume}" ${rootdelay}; then
>         # Try resuming with tuxonice
>         tuxoniceroot="/sys/power/tuxonice"
>         if [ -d "${tuxoniceroot}" ]; then
>             echo ${resume} > ${tuxoniceroot}/resume
>             echo > ${tuxoniceroot}/do_resume
>         fi
> 
>         # Try resuming with vanilla hibernation
>         if [ -e "/sys/power/resume" ]; then
>             eval $(/bin/parseblock "${resume}")
>             fmtdevice ${BLOCKDEVICE} > /sys/power/resume
>         fi
>     fi
> }
> 
> I don't remember if I hacked this hook somewhat or it's vanilla
> 

It looks vanilla to me, and doesn't work here =(. Says 'waiting 10
seconds for swap:/dev/sda8' and then continues normal boot after 10
seconds.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux