summaryrefslogtreecommitdiff
path: root/pm/sleep.d
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-02-27 20:14:06 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-02-27 20:14:06 -0600
commit17d18f832ac3c20b2c86bf9d76c7296d0561ee02 (patch)
treee4aee44351ae749095eb04c2459e3bd5833dc660 /pm/sleep.d
parent58c7d77aa0f37f1d50f89753e1a846795476bc47 (diff)
Modified 99video to use savestate/restorestate to save and restore VBE state.
This utilizes the functionality added in the last patch, and makes the hook more location-independent.
Diffstat (limited to 'pm/sleep.d')
-rwxr-xr-xpm/sleep.d/99video8
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