[Pm-utils] [PATCH] Add quirk for POSTing an external ROM

Matthew Garrett mjg59 at srcf.ucam.org
Fri May 16 06:37:14 PDT 2008


And here's the patch.

diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index c8efd12..c28d492 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -23,6 +23,7 @@ for opt in $PM_CMDLINE; do
 		s3-bios) 	   QUIRK_S3_BIOS="true" ;;
 		s3-mode) 	   QUIRK_S3_MODE="true" ;;
 		vbe-post) 	   QUIRK_VBE_POST="true" ;;
+	        vbe-post-rom)      QUIRK_VBE_POST_ROM="true" ;;
 		vbemode-restore)   QUIRK_VBEMODE_RESTORE="true" ;;
 		vbestate-restore)  QUIRK_VBESTATE_RESTORE="true" ;;
 		vga-mode3) 	   QUIRK_VGA_MODE_3="true" ;;
@@ -95,6 +96,9 @@ vbe_restoremode()
 # post the video card
 vbe_post() { vbe post; sleep 0.1; }
 
+# post the video card using an external ROM
+vbe_post_rom() { vbe post /var/run/video.rom; sleep 0.1; }
+
 # turn critical bits of radeon cards off/on
 radeon_off() { radeon dac off; radeon light off; }
 radeon_on() { radeon dac on; radeon light on; }
@@ -118,6 +122,7 @@ resume_video()
 {
 	# We might need to do one or many of these quirks
 	quirk "${QUIRK_VBE_POST}" && 		vbe_post
+	quirk "${QUIRK_VBE_POST_ROM}" &&        vbe_post_rom
 	quirk "${QUIRK_VBESTATE_RESTORE}" && 	vbe_restorestate
 	quirk "${QUIRK_VBEMODE_RESTORE}" && 	vbe_restoremode
 	resume_fbcon 	# also should be handled by a quirk.
@@ -138,6 +143,7 @@ help() {
 	echo "  --quirk-s3-bios"
 	echo "  --quirk-s3-mode"
 	echo "  --quirk-vbe-post"
+	echo "  --quirk-vbe-post-rom"
 	echo "  --quirk-vbemode-restore"
 	echo "  --quirk-vbestate-restore"
 	echo "  --quirk-vga-mode3"

-- 
Matthew Garrett | mjg59 at srcf.ucam.org


More information about the Pm-utils mailing list