Comment 106 for bug 173652

Revision history for this message
Brian Royer (brian-royer) wrote : Re: Unable to adjust screen brightness on recent Sony Vaio notebooks, Intel GMA adapter

Through countless hours of searching, I've compiled two different scripts into one short bash.

#!/bin/bash

# backlight control (sudo apt-get install xbacklight)
# props to everyone in the ubuntu community ~shyce

xrandr --output LVDS --set BACKLIGHT_CONTROL native
sudo /etc/init.d/acpid restart
app=`which xbacklight`
current=`$app -get`
ans=$(zenity --scale --text "Set LCD brightness 0-100" --value "${current%%.*}");
$app -set $ans

Enjoy! Something was noted about xrandr not being needed anymore - which would comment out the first two line, is this true? If so, would you mind sharing exactly what needs to be done to update our xrandr?