Posted by jmbarnes on Thu 5th Aug 21:11 (modification of post by view diff)
download | new post
- #! /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
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.