This is the first step in making hooks handle option processing for their
options instead of having the pm-utils framework handle it.
---
 pm/sleep.d/99video |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index f9afa1b..1aa6a99 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -94,22 +94,34 @@ resume_video()
        quirk "${QUIRK_RESET_BRIGHTNESS}" &&    reset_brightness
 }
 
+help() {
+       echo "Video quirk handler options:"
+       echo
+       echo "  --quirk-dpms-on"
+       echo "  --quirk-dpms-suspend"
+       echo "  --quirk-radeon-off"
+       echo "  --quirk-reset-brightness"
+       echo "  --quirk-s3-bios"
+       echo "  --quirk-s3-mode"
+       echo "  --quirk-vbe-post"
+       echo "  --quirk-vbemode-restore"
+       echo "  --quirk-vbestate-restore"
+       echo "  --quirk-vga-mode3"
+       echo "  --quirk-none"
+}
 
 case "$1" in
-       suspend)
-               suspend_video
-               ;;
-       hibernate)
+       suspend) suspend_video ;;
+       hibernate) 
                if [ "$HIBERNATE_RESUME_POST_VIDEO" = "yes" ]; then
                        suspend_video
                fi
                ;;
-       resume)
-               resume_video
-               ;;
+       resume) resume_video ;;
        thaw)
                if [ "${HIBERNATE_RESUME_POST_VIDEO}" = "yes" ]; then
                        resume_video
                fi
                ;;
+       help) help ;;
 esac
-- 
1.5.4.3

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to