Re: [ACPI-sppt] clock stops during S4 suspend
Micha Feigin <[email protected]> Sat, 10 Jan 2004 00:05:21 +0200
| Newsgroups | gmane.linux.acpi.support |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jan 09, 2004 at 01:05:44PM -0600, Rockefeller, Harry wrote:
> > Try running
> > echo 4 > /proc/acpi/sleep && hwclock --hctosys
>
> I use a perl script and attempted the equivalent of the above:
>
> system('echo 4 > /proc/acpi/sleep') and resume_from_S4();
>
If I am not mistaken you need
(! system('echo 4 > /proc/acpi/sleep')) and resume_from_S4();
or
resume_from_S4() unless system('echo 4 > /proc/acpi/sleep');
since system returns 0 on success.
> It didn't work.
>
> This did.
>
> system('echo 4 > /proc/acpi/sleep');
> resume_from_S4();
>
This will run resume_from_S4() regardless of whether succeeded.
> Thank you all for your insight and suggestions.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> ACPI-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/acpi-support
>
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html