diff options
author | Peter Jones <pjones@redhat.com> | 2007-06-18 20:42:36 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2007-06-18 20:42:36 +0000 |
commit | 86e6293f468c627970ce8e5356c29b5c4d98491a (patch) | |
tree | c52c2fb8b79788fe0dae64339c909766839a3e6a /pm | |
parent | 29ab136954604b2f12f729d0aaac6f685c46700c (diff) |
- Add support for "--quirk-reset-brightness" (fixes the Fujitsu Lifebook S7110)
Diffstat (limited to 'pm')
-rwxr-xr-x | pm/hooks/99video | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pm/hooks/99video b/pm/hooks/99video index 8addb5a..b28434f 100755 --- a/pm/hooks/99video +++ b/pm/hooks/99video @@ -9,6 +9,17 @@ . /usr/lib/pm-utils/functions + +reset_brightness() { + for bl in /sys/class/backlight/* ; do + [ -d $bl ] || continue + [ -f $bl/brightness ] || continue + BR=$(cat $bl/brightness) + echo 0 > $bl/brightness + echo $BR > $bl/brightness + done +} + vbetool=$(type -p vbetool) vbe() { if [ -z "$vbetool" ]; then @@ -47,6 +58,9 @@ resume_video() if [ "${DISPLAY_QUIRK_DPMS_ON}" == "true" ]; then vbe dpms on fi + if [ "${DISPLAY_QUIRK_RESET_BRIGHTNESS}" == "true" ]; then + reset_brightness + fi } |