You are not logged in.
Pages: 1
I am trying to undervolt my Thinkpad X200 with https://wiki.archlinux.org/index.php/PHC. The package installs with no errors, but when executing the first command
[root@X200 cpufreq]# /etc/rc.d/phc-intel setupI get the following
::: Removing old phc-intel modules [DONE]
:: Compiling new phc-intel module [DONE]
:: Installing new phc-intel module [DONE]
:: Cleaning up [DONE]
[root@X200 cpufreq]# It takes about 10 seconds on a 2.4 Mhz C2D, but when I look for some output on voltages named phc* in
/sys/devices/system/cpu/cpu0/cpufreq/ , i don't notice any file has been created.
When I restart the module acpi-cpufreq doesn't load and gives me an error, but I can boot normally.
Is this due to kernel incompatibility or did i miss something very important in the build? Some instructions say I do not need to build a new kernel to make PHC work. I am not very fond of rebuilding my kernel, because I just recently made a fresh installation on btrfs and I am not so sure I can make it work without breaking...
Offline
All I can say is it works for my Core i3 under linux 3.0, and no you don’t have to rebuild the kernel. Don’t know about linux 3.3.1 since the driver for my wifi crashes the kernel on that… :-/
Offline
All I can say is it works for my Core i3 under linux 3.0, and no you don’t have to rebuild the kernel. Don’t know about linux 3.3.1 since the driver for my wifi crashes the kernel on that… :-/
What do you mean it works for your i3? Is it desktop or mobile i3? I have i3 370m under 3.3.2 kernel and phc-intel installs without problem, but adjusting cpu vids doesn't look like it changes anything. I can set 0 on all VIDs at all but it doesn't crash during stress test and battery usage doesn't decrease.
Last edited by unknwn (2012-04-14 16:43:49)
Offline
I’ve got a Core i3 550. It’s totally possible that it doesn’t crash with all VIDs set to 0; it was the case here. I haven’t checked power consumption but I’m sure it’s working because the fan makes much less noise at 100% CPU load.
Again, I haven’t tried on any kernel >= 3.2.
Offline
Have you put acpi-cpufreq into the modules section of rc.conf?
Offline
@miau:
Do I have to put it into modules before i run the script or afterwards?
The wiki says:
# /etc/rc.d/phc-intel setup
Then add "acpi-cpufreq" in the modules section of your /etc/rc.conf file, if you have not done it before.
So if I should put it afterwards, I don't see a point the files would get generated only after I load the module... I don't use cpufreq-utils anymore and switched to cpupower, but the latter uses acpi-cpufreq as well, so I don't see any reason for PHC not to build properly...
Offline
Why hasn't it build correctly? The output in your first post shows that it has build correctly. Have you configured the right cpu scaling governor with cpupower?
Last edited by miau (2012-04-16 07:55:18)
Offline
@miau:
here is my cpupower script /etc/conf.d/cpupower
# Define CPUs governor
# valid governors: ondemand, performance, powersave, conservative, userspace.
governor='ondemand'
# Limit frequency range
# Valid suffixes: Hz, kHz (default), MHz, GHz, THz
min_freq="800MHz"
max_freq="2.4GHz"
# Specific frequency to be set.
# Requires userspace governor to be available and loaded.
#freq=
# Utilizes cores in one processor package/socket first before processes are
# scheduled to other processor packages/sockets.
# See man (1) CPUPOWER-SET for additional details.
mc_scheduler=1
# Utilizes thread siblings of one processor core first before processes are
# scheduled to other cores. See man (1) CPUPOWER-SET for additional details.
#smp_scheduler=
# Sets a register on supported Intel processore which allows software to convey
# its policy for the relative importance of performance versus energy savings to
# the processor. See man (1) CPUPOWER-SET for additional details.
#perf_bias=
# vim:set ts=2 sw=2 ft=sh et:I have the module acpi-cpufreq set, along with cpupower deamon...
Here is info from /var/log/phc-intel.log
Preparing build area for phc-intel-0.3.2:
searching for patch directory... using inc/3.3
copying files
patching file phc-intel.c
SUCCESS. Build area ready.
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/phc-intel modules
make[1]: Entering directory `/usr/src/linux-3.3.1-1-ARCH'
CC [M] /usr/src/phc-intel/phc-intel.o
In file included from /usr/src/linux-3.3.1-1-ARCH/include/linux/kconfig.h:4:0,
from <command-line>:0:
include/generated/autoconf.h:4273:0: warning: "CONFIG_ENABLE_WARN_DEPRECATED" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
Building modules, stage 2.
MODPOST 1 modules
CC /usr/src/phc-intel/phc-intel.mod.o
In file included from /usr/src/linux-3.3.1-1-ARCH/include/linux/kconfig.h:4:0,
from <command-line>:0:
include/generated/autoconf.h:4273:0: warning: "CONFIG_ENABLE_WARN_DEPRECATED" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
LD [M] /usr/src/phc-intel/phc-intel.ko
make[1]: Leaving directory `/usr/src/linux-3.3.1-1-ARCH'
install -m 755 -o root -g root -d /lib/modules/3.3.1-1-ARCH/extramodules
install -m 644 -o root -g root phc-intel.ko /lib/modules/3.3.1-1-ARCH/extramodules/
depmod 3.3.1-1-ARCH -a
rm -f *~ *.o *.s *.ko *.mod.c .*.cmd *.rej *.c.orig Module.symvers Module.markers modules.order phc-intel.c mperf.h *.deb *.rpm *.old
rm -rf .tmp_versions /usr/src/phc-intel/.dkmsI am not sure, but how do I check if all the kernel sources (/usr/src/ ?) are available (maybe I need to install them from the repositories?). Also there may be a problem with the /boot partition lying outside my root, but I don't think phc-intel plays with bootstraping at all.
Edit: Sorry, I tried to use html tags in <..> brackets, but it didn't work. Fixed the <code> part...
Last edited by simaX200 (2012-04-16 12:45:08)
Offline
Please use [ code ] tags for posting scripts and command output…
Offline
Hi, the setup program gives an error if there are files missing or you have the wrong kernel files. So, i think it has been built correctly. Are there any files in
/sys/devices/system/cpu/cpu0/cpufreq/? Have you checked if the ondemand governor is working correctly? What is the out put of
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor?
Last edited by miau (2012-04-16 16:37:01)
Offline
Well. There seem to be no phc* files in the /sys/devices/system/cpu/cpu0/cpufreq/ after I run the script, but when I restart the system I get an error loading acpi-cpufreq:
[root@X200 cpufreq]# cat /var/log/boot
Tue Apr 17 09:10:44 2012: :: Adjusting system time and setting kernel timezone [BUSY] [DONE]
Tue Apr 17 09:10:44 2012: :: Starting UDev Daemon [BUSY] [DONE]
Tue Apr 17 09:10:44 2012: :: Triggering UDev uevents [BUSY] [DONE]
Tue Apr 17 09:10:44 2012: :: Loading User-specified Modules [BUSY] ERROR: could not insert 'acpi_cpufreq': Device or resource busy
Tue Apr 17 09:10:44 2012: libkmod: command_do: Error running install command for acpi_cpufreq
Tue Apr 17 09:10:44 2012: ERROR: could not insert 'acpi_cpufreq': Operation not permitted
Tue Apr 17 09:10:44 2012: [FAIL] I heard that - and _ signs in module load are interchangeable?
And also, the phc* files suddenly appear after reboot:
[root@X200 cpufreq]# ls -l /sys/devices/system/cpu/cpu0/cpufreq/
total 0
-r--r--r-- 1 root root 4096 Apr 17 09:12 affected_cpus
-r--r--r-- 1 root root 4096 Apr 17 09:12 bios_limit
-r-------- 1 root root 4096 Apr 17 09:12 cpuinfo_cur_freq
-r--r--r-- 1 root root 4096 Apr 17 09:10 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Apr 17 09:10 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Apr 17 09:12 cpuinfo_transition_latency
-rw-r--r-- 1 root root 4096 Apr 17 09:12 phc_controls
-r--r--r-- 1 root root 4096 Apr 17 09:12 phc_default_controls
-r--r--r-- 1 root root 4096 Apr 17 09:12 phc_default_vids
-r--r--r-- 1 root root 4096 Apr 17 09:12 phc_fids
-r--r--r-- 1 root root 4096 Apr 17 09:12 phc_version
-rw-r--r-- 1 root root 4096 Apr 17 09:12 phc_vids
-r--r--r-- 1 root root 4096 Apr 17 09:12 related_cpus
-r--r--r-- 1 root root 4096 Apr 17 09:12 scaling_available_frequencies
-r--r--r-- 1 root root 4096 Apr 17 09:12 scaling_available_governors
-r--r--r-- 1 root root 4096 Apr 17 09:10 scaling_cur_freq
-r--r--r-- 1 root root 4096 Apr 17 09:12 scaling_driver
-rw-r--r-- 1 root root 4096 Apr 17 09:10 scaling_governor
-rw-r--r-- 1 root root 4096 Apr 17 09:10 scaling_max_freq
-rw-r--r-- 1 root root 4096 Apr 17 09:10 scaling_min_freq
-rw-r--r-- 1 root root 4096 Apr 17 09:12 scaling_setspeedWhile /sys/devices/system/cpu/cpu0/cpufreq/phc_vids gives me 39 32 23 17.
I could compare it to the same laptop in http://www.thinkwiki.org/wiki/Extending … fe_on_X200, that shows 38 29 23 13.
It seems my voltages are a bit higher, also
dmesg | grep acpi-cpufreqshows no output and
[root@X200 cpufreq]# cat /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
73:39 9:32 6:23 134:17 I just wonder if it is OK the acpi-cpufreq module is busy and why the files show only after reboot...
Offline
Pages: 1