[Pm-utils] [PATCH 5/6] Modified 99video to use savestate/restorestate to save and restore VBE state.
Victor Lowther
victor.lowther at gmail.com
Wed Feb 27 18:29:14 PST 2008
This utilizes the functionality added in the last patch, and makes the hook
more location-independent.
---
pm/sleep.d/99video | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index 92e13f7..4cb62dc 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -70,10 +70,10 @@ suspend_video()
radeon light off
fi
if [ "${DISPLAY_QUIRK_VBESTATE_RESTORE}" = "true" ]; then
- vbe vbestate save > /var/run/vbestate
+ vbe vbestate save |savestate vbestate
fi
if [ "${DISPLAY_QUIRK_VBEMODE_RESTORE}" = "true" ]; then
- vbe vbemode get > /var/run/vbemode
+ vbe vbemode get |savestate vbemode
fi
if [ "${DISPLAY_QUIRK_VGA_MODE_3}" = "true" ]; then
vbe vbemode set 3
@@ -94,10 +94,10 @@ resume_video()
sleep 0.1
fi
if [ "${DISPLAY_QUIRK_VBESTATE_RESTORE}" = "true" ]; then
- vbe vbestate restore < /var/run/vbestate
+ restorestate vbestate |vbe vbestate restore
fi
if [ "${DISPLAY_QUIRK_VBEMODE_RESTORE}" = "true" ]; then
- vbe vbemode set "$(cat /var/run/vbemode)"
+ vbe vbemode set "$(restorestate vbemode)"
fi
# based on data from s2ram
resume_fbcon
--
1.5.4.3
More information about the Pm-utils
mailing list