diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-02-27 20:14:06 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-02-27 20:14:06 -0600 |
commit | 17d18f832ac3c20b2c86bf9d76c7296d0561ee02 (patch) | |
tree | e4aee44351ae749095eb04c2459e3bd5833dc660 /pm/sleep.d | |
parent | 58c7d77aa0f37f1d50f89753e1a846795476bc47 (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-x | 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 |