[ltp] Some questions about Suspend2

Bobby linux-thinkpad@linux-thinkpad.org
Sun, 18 Jun 2006 00:57:40 +0800


--Apple-Mail-2-457568304
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

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.



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.

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.


Thanks a lot.


--Apple-Mail-2-457568304
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=ISO-8859-1

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; ">Hello,<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>First Question =
:</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>I use =
Suspend2 for suspend_to_disk. I Patched my kernel, installed hibernate : =
suspend to disk works well.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>my way for the moment is a =
script in my home directory but=A0I saw there is some options for that =
but I can't find what is the exact name of the options.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I searched on the official =
website <A href=3D"http://suspend2.net">http://suspend2.net</A> but I =
didn't find it. Just find that :</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><FONT =
class=3D"Apple-style-span" color=3D"#1F2A6D" face=3D"Verdana" =
size=3D"3"><SPAN class=3D"Apple-style-span" style=3D"font-size: =
13px;"><B>Services =
(RestartServices/StopServices/StartServices)</B></SPAN></FONT></DIV><DIV><=
FONT class=3D"Apple-style-span" color=3D"#1F2A6D" face=3D"Verdana" =
size=3D"3"><SPAN class=3D"Apple-style-span" style=3D"font-size: =
13px;"><B><BR =
class=3D"khtml-block-placeholder"></B></SPAN></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" color=3D"#1F2A6D" face=3D"Verdana" =
size=3D"3"><SPAN class=3D"Apple-style-span" style=3D"font-size: =
13px;"><B>Network interfaces =
(DownInterfaces/UpInterfaces)</B></SPAN></FONT></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Anyone can help me, I'm =
looking for the options for down/up an interface and restart the network =
service.</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>Second=
 Question :=A0</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Thanks a lot.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV></BODY></HTML>=

--Apple-Mail-2-457568304--