Author: pebender
Date: Sat Sep 13 14:26:21 2008
New Revision: 3745
Modified:
trunk/gar-minimyth/html/minimyth/document-changelog.txt
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep
Log:
- Changed mm_slpeed so that is saves the system clock to the hardware
clock on suspend and sets the system clock to the hardware clock on
wakeup.
Modified: trunk/gar-minimyth/html/minimyth/document-changelog.txt
==============================================================================
--- trunk/gar-minimyth/html/minimyth/document-changelog.txt (original)
+++ trunk/gar-minimyth/html/minimyth/document-changelog.txt Sat Sep 13
14:26:21 2008
@@ -11,6 +11,9 @@
- Changed it to use the external dvdread libraries.
Modified MiniMyth commands
+ - Changed mm_slpeed so that is saves the system clock to the hardware
+ clock on suspend and sets the system clock to the hardware clock on
+ wakeup.
- Changed mm_sleep so that it restarts commands that it stops using the
original command line not the default command line.
- Changed mm_sleep_on_ss so that it daemonizes.
Modified:
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep
==============================================================================
---
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep
(original)
+++
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep
Sat Sep 13 14:26:21 2008
@@ -92,11 +92,17 @@
$minimyth->x_stop();
}
+# Save system time to the hardware clock.
+system(qq(/sbin/hwclock -w -u));
+
if (open(FILE, '>', '/sys/power/state'))
{
print FILE "mem\n";
close(FILE);
}
+
+# Restore system time from the hardware clock.
+system(qq(/sbin/hwclock -r -u));
# Start X
if ($minimyth->var_get('MM_X_RESTART_ON_SLEEP_ENABLED') eq 'yes')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---