Skip to content

Instantly share code, notes, and snippets.

@mikebarkmin
Created April 13, 2017 17:59
Show Gist options
  • Save mikebarkmin/ce08c59ac0c7cdf932f44d3119dd3bb9 to your computer and use it in GitHub Desktop.
Save mikebarkmin/ce08c59ac0c7cdf932f44d3119dd3bb9 to your computer and use it in GitHub Desktop.
#!/bin/bash
case "$1" in
powersave)
sudo pstate-frequency -S -p powersave && xbacklight -set 15
;;
balanced)
sudo pstate-frequency -S -p balanced && xbacklight -set 50
;;
performance)
sudo pstate-frequency -S -p performance && xbacklight -set 100
;;
*)
echo "Usage: $0 {powersave|balanced|performance}"
exit 2
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment