summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-05-16 21:05:08 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-05-16 21:05:08 -0500
commit57d53b3bcb4aa218a63b48d14dc5ca0a1caad99a (patch)
tree29a0dd20d31d1acae0f9de52e3ceb2770a3f1d6b
parent8dd65d7dacc708f7320b0d362085889eb4f31f1a (diff)
Added support for vbe post with a romfile
Apparently some video cards do not post when using the onboard BIOS.
-rwxr-xr-xpm/sleep.d/99video9
1 files changed, 8 insertions, 1 deletions
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index 27c08d0..31e6de7 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -93,7 +93,14 @@ vbe_restoremode()
}
# post the video card
-vbe_post() { vbe post; sleep 0.1; }
+vbe_post()
+{
+ local rom="/var/run/video.rom"
+ # if we do not have a romfile, do not post with it.
+ [ -f "$rom" ] || unset rom
+ vbe post $rom
+ sleep 0.1
+}
# turn critical bits of radeon cards off/on
radeon_off() { radeon dac off; radeon light off; }