Skip to content

Instantly share code, notes, and snippets.

@mbaez
Created February 28, 2014 13:32
Show Gist options
  • Save mbaez/9271180 to your computer and use it in GitHub Desktop.
Save mbaez/9271180 to your computer and use it in GitHub Desktop.
This script change the brightness for intel backlight driver, works in sony vaio
#!/bin/sh
# sudo ./change-brightness.sh -3000 //reduce the brightness
# sudo ./change-brightness.sh 3000 //add brightness
path=/sys/class/backlight/intel_backlight
echo `cat $path/actual_brightness`+ $1 | bc > $path/brightness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment