Skip to content

Instantly share code, notes, and snippets.

@valvallow
Created November 28, 2011 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valvallow/1400411 to your computer and use it in GitHub Desktop.
Save valvallow/1400411 to your computer and use it in GitHub Desktop.
brightness
#!/bin/sh
if [ $# -eq 0 ]; then
echo 'Usage: brightness <num 1 - 15>' 1>&2
exit 1
fi
sudo su -c "echo $1 > /sys/class/backlight/acpi_video0/brightness"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment