Difference between revisions of "PHC"
(→Installing the necessary packages: Mention about required linux headers.)
(Incomplete page (see my russian article))
|Line 1:||Line 1:|
[[Category: CPU (English)]]
[[Category: CPU (English)]]
Revision as of 03:09, 4 March 2012
Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end
PHC is an acpi-cpufreq patch built with the purpose of enabling arbitrarily undervolting on your processor. PHC works only if your processor's architecture supports undervolting. This is the ultimate and extreme tweak to reduce power consumption in modern PCs, therefore it's very interesting, especially for laptop computers.
For a complete power management suite see Related articles in top-right of the page.
Automatically undervolting CPUs
As of right now, the only automatic CPU voltage solution available is the cpupowerd package in AUR and is only available to AMD users. If you own and Intel processor, then you need to install the phc-intel module, again from AUR, and manually configure your own voltages.
PHC supports the two most common processor families:
- Mobile Centrino
- Atom (N2xx)
- Core / Core2 (T and P Series)
- Core i (tested on Core i3 550)
- K8 series
Installing the necessary packages
Install phc-intel if you have an Intel processor, or phc-k8 if you have an AMD-K8-series one.
Install phc-intel (assuming you have an intel CPU) and phctool from the AUR. Next you need to compile the module for your kernel, this will also be necessary after a kernel update.
You need to have linux-headers and/or linux-lts-headers installed to be able to build the module.
# /etc/rc.d/phc-intel setup
Then add "acpi-cpufreq" in the modules section of your rc.conf file, if you haven't done it before. You can edit this file using your preferred test editor, such as nano or gedit.
# nano /etc/rc.conf
After the phc module is compiled and the lowest voltages are found, they need to be added to the configuration file at /etc/conf.d/phc-intel.
# VIDS="25 22 15 8 5"
Even if it's possible to configure phc using a command line interface, the configuration is much easier using phctool. Just run
and select the "voltage" tab. Every processor has its own VID values: finding the value that fits your processor's needs is up to you.
# dmesg | grep acpi-cpufreq
If you see errors regarding this module, something has gone wrong OR you can't use PHC.
There should be some files in /sys/devices/system/cpu/cpu0/cpufreq/ beginning with "phc_". To check whether PHC is working or not, just type:
# cat /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
you should read some values. If the values do not appear, then PHC is probably not supported by your CPU.
You can easily check whether PHC is working or not by looking at the cpu voltages: if the voltages are lower than the normal ones, then PHC has done it's job. You can also manually set voltages, for example:
echo 34 26 18 12 8 5 > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
To find the best values, install linux-phc-optimize from AUR. The script progressively lower the values until the system crashes, and add two the values for stability. Because the system will crash, do not do anything else during the tests. Run it once for each value, then check /usr/share/linux-phc-optimize/phc_tweaked_vids.