#! /bin/sh ### BEGIN INIT INFO # Provides: phc # Required-Start: $acpi # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: linux-phc # Description: linux-phc patched acpi-cpufreq module to allow # custom vids (processor hardware control) ### END INIT INFO NAME=phc case "$1" in start) ## Edit these next two lines ## echo "26 21 19" > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids echo "26 21 19" > /sys/devices/system/cpu/cpu1/cpufreq/phc_vids ;; stop) # No-op ;; restart) rmmod acpi-cpufreq modprobe acpi-cpufreq ## Edit these next two lines ## echo "26 21 19" > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids echo "26 21 19" > /sys/devices/system/cpu/cpu1/cpufreq/phc_vids ;; status) ## Edit these next two lines ## cat /sys/devices/system/cpu/cpu0/cpufreq/phc_vids cat /sys/devices/system/cpu/cpu1/cpufreq/phc_vids ;; *) echo "Usage: $NAME start|stop|restart|status" >&2 exit 3 # ;; esac exit 0