Re: How do I suspend to disk
Le vendredi 03/04/05 Wee-Jin Goh <wjgoh@brookes.ac.uk> a écrit :
> If anyone is able to post or point out some relevant information on
> getting suspend to disk working on the Powerbook 12", I'd be grateful.
1) patch your kernel with Guido Guenther swsusp patch :
http://honk.physik.uni-konstanz.de/~agx/linux-ppc/kernel/
2) Reboot
3) Change your yaboot.conf to add resume=your_swap_partition kernel
parameter (don't forget ybin after)
4) Then you can suspend with the following script :
#!/bin/sh
rmmod ohci1394
rmmod eth1394
rmmod ieee1394
rmmod hci_usb
/etc/init.d/hotplug stop
echo disk > /sys/power/state
5) After resume you can do something like :
#!/bin/sh
modprobe ohci1394
modprobe eth1394
modprobe ieee1394
modprobe hci_usb
/etc/init.d/hotplug start
/etc/init.d/laptop-net restart
sleep 2
/etc/init.d/ntpdate restart
Regards.
--
Djoumé SALVETTI
Reply to: