[ltp] Some questions about Suspend2

Tino Keitel linux-thinkpad@linux-thinkpad.org
Sun, 18 Jun 2006 07:35:33 +0200


On Sun, Jun 18, 2006 at 00:57:40 +0800, Bobby wrote:
> Hello,
> 
> First Question :
> 
> I use Suspend2 for suspend_to_disk. I Patched my kernel, installed  
> hibernate : suspend to disk works well.
> 
> But when I launch it with my user (sudo hibernate) when resume the  
> network doesn't work (atheros driver madwifi) I have to do ifconfig  
> ath0 down, ifconfig ath0 up, /etc/init.d/networking restart for the  
> network work again. If I suspend with my root account no problem with  
> the network.

Any error messages? Hibernate is just a shell script that you can
debug with sh -x.

> my way for the moment is a script in my home directory but I saw  
> there is some options for that but I can't find what is the exact  
> name of the options.
> 
> I searched on the official website http://suspend2.net but I didn't  
> find it. Just find that :
> 
> Services (RestartServices/StopServices/StartServices)
> 
> Network interfaces (DownInterfaces/UpInterfaces)
> 
> Anyone can help me, I'm looking for the options for down/up an  
> interface and restart the network service.

My /etc/hibernate/hibernate.conf is full of comments and sane default
values which should be easy to adopt.

> 
> Second Question :
> 
> This patch is only use for suspend_to_disk or I can also use  
> suspend_to_ram ? if yes how to use suspend_to_ram.

Yes, you can. Just read the first big block of comments in
/etc/hibernate/hibernate.conf.

Regards,
Tino