Skip to content

Instantly share code, notes, and snippets.

@keedi
Created December 6, 2012 15:22
Show Gist options
  • Save keedi/4225272 to your computer and use it in GitHub Desktop.
Save keedi/4225272 to your computer and use it in GitHub Desktop.
sony vaio - /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
modprobe -r radeon
cpufreq-set -c 0 -g powersave
cpufreq-set -c 1 -g powersave
cpufreq-set -c 2 -g powersave
cpufreq-set -c 3 -g powersave
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment