Skip to content

Instantly share code, notes, and snippets.

@MartinBrugnara
Created March 13, 2014 17:04
Show Gist options
  • Save MartinBrugnara/9532486 to your computer and use it in GitHub Desktop.
Save MartinBrugnara/9532486 to your computer and use it in GitHub Desktop.
intel backlight - brightness management tool
max=`cat /sys/class/backlight/intel_backlight/max_brightness`
req=$1
if [ $req -le 5 ]; then
req=5
fi
if [ $req -ge 100 ]; then
req=100
fi
next=$[$max * $req / 100]
echo $next > /sys/class/backlight/intel_backlight/brightness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment