From: Stefan =?iso-8859-1?q?D=F6singer?= Subject: Re: How to wait that the machine resume in a script Date: Wed, 16 Nov 2005 18:08:43 +0100 Message-ID: <200511161808.43547.stefandoesinger@gmx.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org 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