diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-03-01 10:26:49 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-03-01 10:56:40 -0600 |
commit | 8d5f23f720c121508bd61202cbd75c6d91a07f6d (patch) | |
tree | 40cb7f5f7990fd9679a9593a34f2f3b23f57a67e /pm | |
parent | dc1a31a76a26ff5258f02b0f533c53974c00e687 (diff) |
Moved video-specific option processing to 99video.
Diffstat (limited to 'pm')
-rwxr-xr-x | pm/sleep.d/99video | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video index 1aa6a99..e215e9d 100755 --- a/pm/sleep.d/99video +++ b/pm/sleep.d/99video @@ -9,6 +9,26 @@ . "${PM_FUNCTIONS}" +for opt in $PM_CMDLINE; do + [ "${opt#--quirk-}" = "$opt" ] && continue # not one we care about. + case "${1##--quirk-}" in # just quirks, please + dpms-on) QUIRK_DPMS_ON="true" ;; + dpms-suspend) QUIRK_DPMS_SUSPEND="true" ;; + radeon-off) QUIRK_RADEON_OFF="true" ;; + reset-brightness) QUIRK_RESET_BRIGHTNESS="true" ;; + s3-bios) QUIRK_S3_BIOS="true" ;; + s3-mode) QUIRK_S3_MODE="true" ;; + vbe-post) QUIRK_VBE_POST="true" ;; + vbemode-restore) QUIRK_VBEMODE_RESTORE="true" ;; + vbestate-restore) QUIRK_VBESTATE_RESTORE="true" ;; + vga-mode3) QUIRK_VGA_MODE_3="true" ;; + none) QUIRK_NONE="true" ;; + *) continue ;; + esac + shift +done + + reset_brightness() { for bl in /sys/class/backlight/* ; do |