summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-05-07 20:40:04 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-05-07 20:40:04 -0500
commite385c44402d3d1ba80b17e96ba4ced6d4c3650fa (patch)
tree9b51ebf966b18f8c203db2101ee9eaa14e7b1bc5 /pm
parentddbee7518ba53ab2161934bcdc4eea0394a27371 (diff)
Fix vbe mode restore bug
Partial fix for pm-utils bug no. 15840 -- it does not include the vgamode special-case code. Thanks, Martin Pitt!
Diffstat (limited to 'pm')
-rwxr-xr-xpm/sleep.d/99video2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index 8e8dd7c..119830b 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -81,7 +81,7 @@ vbe_restorestate() { restorestate vbestate |vbe vbestate restore; }
# save/restore the vbe mode
vbe_savemode() { vbe vbemode get |savestate vbemode; }
-vbe_restoremode() { vbe vbemode get |savestate vbemode; }
+vbe_restoremode() { vbe vbemode set $(restorestate vbemode); }
# post the video card
vbe_post() { vbe post; sleep 0.1; }