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

Re: Latest suspend to disk patch



Hi,

> On Tue, May 25, 2004 at 10:06:20AM +0200, Guido Guenther wrote:
> > On Mon, May 24, 2004 at 04:54:14PM +0200, clemens kurtenbach wrote:
> > > kernel/built-in.o(.text+0x1fca0): In function `do_magic_resume_2':
> > > : undefined reference to `__flush_tlb_global'
> > > kernel/built-in.o(.text+0x1fe54): In function `do_magic_suspend_2':
> > > : undefined reference to `kernel_fpu_end'
> > > kernel/built-in.o(.text+0x1ff18): In function `software_suspend':
> > > : undefined reference to `do_magic'
> > > kernel/built-in.o(.init.text+0x141c): In function `software_resume':
> > > : undefined reference to `do_magic'
> > > make: *** [.tmp_vmlinux1] Error 1
> > > 
> > > Does anyone know how to fix it ?
> > Don't enable software suspend (CONFIG_SOFTWARE_SUSPEND) but only pmdisk.
> This option isn't even selectable anymore in the latest patch, which has
> some other cleanups as well:
>  http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/pmdisk-2.6.7-rc2.diff

I know that sleep mode on g4 ibooks doesn't work until
ati is kind enough to announce specs how to reboot/wakeup
the radeon chip.

So what i want to do is suspend to disk and power off my ibook.
At the next boot the dumped image should load and bring me back
to my desktop with the programms running as it was before suspend. 

With a patched kernel  

rmmod video1394 raw1394 eth1394 ohci1394 ieee1394 && \
echo -n disk >/sys/power/state

writes an image to disk and brings me to a monitor-console.  
When i exit this console by typing x i get a kerneloops and
nothing happens anymore.
When i press ctrl+appel+pwr (after echo -n disk.. ) to reboot and set 
<pmdisk|resume>=/my/swap my system is using the kernel from the 
/boot directory anyway.

Is this the right way to do what i want ? :o)
Is there a howto or something like that since all i can find
about this topic is in the kernel documentation.

regards,
clee
-- 
clemens kurtenbach                                   _    
clemens@kurtenba.ch                                 /_ /_
http://www.kurtenba.ch                                /\ 



Reply to: