[Bug 59841] [IVB cpu eDP] panel is broken due to 657445fe86 (eDP bpp clamping)

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Wed Sep 4 03:17:50 PDT 2013


https://bugzilla.kernel.org/show_bug.cgi?id=59841

--- Comment #114 from Alexey <kovyale at gmail.com> ---
Simple script for changin brighness:
---
#!/bin/sh -e
if [[ "$1" = "-h" ]]
then
    echo "Use: $(basename $0) [+/-pcnt]"
    exit 0
fi
max=$(cat /sys/class/backlight/intel_backlight/max_brightness)
cur=$(cat /sys/class/backlight/intel_backlight/actual_brightness)
if ( echo $1 | egrep "^[-+]{0,1}[0-9]{1,3}$" > /dev/null )
then 
    change=$1
else
    echo $(($cur *100 / $max ))%
    exit 0
fi
new=$(( $cur + $change * $max / 100))
[[ $new -gt $max ]]     && new=$max
[[ $new -lt    0 ]]     && new=0
echo $new > /sys/class/backlight/intel_backlight/brightness
notify-send -u low -h int:value:$(($new *100 / $max )) "Brightness"
---

I bind it to keys in IceWM:
key "XF86KbdBrightnessUp"       XF86KbdBrightness.sh up
key "XF86KbdBrightnessDown"     XF86KbdBrightness.sh down
key "XF86MonBrightnessUp"       XF86MonBrightness.sh "+5"
key "XF86MonBrightnessDown"     XF86MonBrightness.sh "-5"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the intel-gfx-bugs mailing list