PDA

View Full Version : [ubuntu] Undervolt AMD Turion X2 64bit RM-72



francismorales
October 9th, 2010, 06:02 AM
I'm a windows 7 user. I have ubuntu 10.10 on dual boot.
Specifications: Turion X2 RM-72, 4gb ram, ATI Mobility 3200

I'm looking for a way to undervolt my Turion in Ubuntu 10.10

I've downloaded TPC (Turion Power Control) but don't know how to use the tar.gz file.

Steps taken:

1. I have the build essentials installed

2. I've been to tutorials on using ./configure, make, and checkinstall, but the extracted folder (tpc-0.29pa.tar.gz) doesn't have that configure file

List of Files

AthlonQL.h
Griffin.cpp
scaler.cpp
compile_i386.sh
K10.h
scaler.h
compile.sh~
K10Processor.cpp
TurionPowerControl.cpp
compile_x86-64.sh
OlsApi.h
TurionPowerControl.cpp~
config.cpp
OlsDef.h
TurionPowerControl.h
config.cpp~
Processor.cpp
TurionRM.h
config.h
Processor.cpp~
TurionZM.h
cpuPrimitives.cpp
Processor.h
cpuPrimitives.h
Processor.h~


3. The tutorials i've been too is more on how to make it work ( http://www.phoronix.com/scan.php?page=news_item&px=ODY2MA ), but no step by step usage on the tar.gz file.

4. I've been googled my way into this for the last 5 days, but can't find any.

..I'm a newbie (5 days old in ubuntu), 13 years in windows using k10stat for undervoltin. so i think i just don't know what i'm looking for.

Can somebody point me to the right direction? I'd be more than greatful.

andrewthomas
October 9th, 2010, 06:50 AM
To compile a AMD64 (or x86-64, 64 bit) version, put yourself in src folder and issue:
chmod +x compile_x86*64.sh
./compile_x86*64.sh
Then you'll find a nice and compiled TurionPowerControl executable inside ./bin directory.
If you find troubles or strange errors when you launch the software, keep in mind you have to be
superuser to access and manipulate processor features.
You may also encounter errors about retrieving CPUID informations or access to cpu MSRs, so be
sure that your system has the required cpuid and cpumsr modules loaded (if they are not yet
compiled inside your kernel). You can load them issuing (always as a superuser):
modprobe cpuid
modprobe msr
If you still can't load these modules, check that your distribution come with them, else I think you
can download them using your distribution favourite package manager.
I've been told also of some compiling errors, expecially in function perfCounterMonitor about
printf function. I'm not sure, but it may be related to the specific version of gcc you're running
(4.4.1), so please update your gcc compiler suite and retry compilation.


I attached the .pdf

francismorales
October 10th, 2010, 08:44 AM
I'm getting these warnings.


Griffin.cpp: In member function ‘virtual void Griffin::perfCounterGetValue(int, int)’:
Griffin.cpp:999: warning: format ‘%lld’ expects type ‘long long int’, but argument 4 has type ‘uint64_t’
Griffin.cpp: In member function ‘virtual void Griffin::perfMonitorCPUUsage()’:
Griffin.cpp:1026: warning: spurious trailing ‘%’ in format
Griffin.cpp: In member function ‘virtual void Griffin::perfCounterMonitor(int, int)’:
Griffin.cpp:1045: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
Griffin.cpp:1069: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’
Griffin.cpp:1069: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 5 has type ‘uint64_t’
K10Processor.cpp: In member function ‘virtual void K10Processor::perfCounterGetValue(int, int)’:
K10Processor.cpp:1091: warning: format ‘%lld’ expects type ‘long long int’, but argument 4 has type ‘uint64_t’
K10Processor.cpp: In member function ‘virtual void K10Processor::perfMonitorCPUUsage()’:
K10Processor.cpp:1117: warning: spurious trailing ‘%’ in format
K10Processor.cpp: In member function ‘virtual void K10Processor::perfCounterMonitor(int, int)’:
K10Processor.cpp:1136: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
K10Processor.cpp:1160: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’
K10Processor.cpp:1160: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 5 has type ‘uint64_t’
/usr/bin/ld: cannot open output file ../bin/TurionPowerControl: No such file or directory
collect2: ld returned 1 exit status

And i'm not sure where the .bin directory is

If bin director in File System folder, then I don't see a Turion Power COntrol executable. I might be doing it wrong.

francismorales
October 11th, 2010, 07:43 AM
i wish there was something that worked out of the box or a step by step on what to do and what packages they need for windows switchers to make it easier.:(

playcat
October 12th, 2010, 07:34 PM
Hello,

Started it as root, compiled without problems (except for those warnings, but things still work as expected).
I've been using undervolting for quite a while now on windows, and overheating has beed a real problem under ubuntu (been trying with cpu freq scaling, but with little success).

Thank you guys!

p.s. I used root for compiling.

Dan

andrewthomas
October 12th, 2010, 07:43 PM
I'm getting these warnings.



And i'm not sure where the .bin directory is

If bin director in File System folder, then I don't see a Turion Power COntrol executable. I might be doing it wrong.
Did you compile it in your a folder in your /home directory?

You shouldn't have to compile as root. Post the configure.log (it should be in the folder you did the configure from.)