public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* How to wait that the machine resume in a script
@ 2005-11-16 10:19 Olive
  2005-11-16 17:08 ` Stefan Dösinger
  2005-11-17 22:24 ` Pavel Machek
  0 siblings, 2 replies; 3+ messages in thread
From: Olive @ 2005-11-16 10:19 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello,

I just test acpi and it appears to have behave properly. I would like to 
  know via a script that the machine has been resumed. Something like

echo -n disk /sys/power/state
waitresumed
continue with the script

The naive solution to wait until "echo -n disk /sys/power/state" returns 
do not work because it returns too quicly.

Olive




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to wait that the machine resume in a script
  2005-11-16 10:19 How to wait that the machine resume in a script Olive
@ 2005-11-16 17:08 ` Stefan Dösinger
  2005-11-17 22:24 ` Pavel Machek
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Dösinger @ 2005-11-16 17:08 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello,
> echo -n disk /sys/power/state
> waitresumed
> continue with the script
>
> The naive solution to wait until "echo -n disk /sys/power/state" returns
> do not work because it returns too quicly.

Do you mean "echo -n disk > /sys/power/state"? This works correctly for me 
with suspend to ram ("echo mem > /sys/power/state").
How much too fast does it return? What about using a sleep 1 after the echo 
call?


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to wait that the machine resume in a script
  2005-11-16 10:19 How to wait that the machine resume in a script Olive
  2005-11-16 17:08 ` Stefan Dösinger
@ 2005-11-17 22:24 ` Pavel Machek
  1 sibling, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2005-11-17 22:24 UTC (permalink / raw)
  To: Olive; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On St 16-11-05 11:19:33, Olive wrote:
> Hello,
> 
> I just test acpi and it appears to have behave properly. I would like to 
>  know via a script that the machine has been resumed. Something like
> 
> echo -n disk /sys/power/state
> waitresumed
> continue with the script
> 
> The naive solution to wait until "echo -n disk /sys/power/state" returns 
> do not work because it returns too quicly.

Really? It should not... it can not. When machine is suspended, script
can't run...
									Pavel
-- 
Thanks, Sharp!


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-17 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16 10:19 How to wait that the machine resume in a script Olive
2005-11-16 17:08 ` Stefan Dösinger
2005-11-17 22:24 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox