Actualy IIRC powertune is a feature intended for the 69XX Radeon, to curb power to a given maximum TDP.
Thanks so much for the code. I modified it a bit to be used for systems with mixed GPU's.
if(ADL_Overdrive5_PowerControl_Set(i, 20) != ADL_OK)
{
cout << "Failed to set " << i << " power control" << endl;
//return -1;
} else { cout << "Value set for " << i << endl; }
if(ADL_Overdrive5_PowerControl_Get(i, &a, &b) != ADL_OK)
{
cout << "Failed to get " << i << " power control" << endl;
//return -1;
}
The g++ compiler in my ubuntu 10.10 installation could not locate the library so I copied libatiadlxx.so to the local location
cp /usr/lib/fglrx/libatiadlxx.so .
and used
g++ -o powertune ./powercontrol.cpp ./libatiadlxx.so