|
|
@ -73,7 +73,7 @@ std::list<Source*>NVidiaThermalSrc::createInstances(TQWidget* inParent){
|
|
|
|
<< "-n" // don't load config
|
|
|
|
<< "-n" // don't load config
|
|
|
|
<< "-q" << "GPUCoreTemp"
|
|
|
|
<< "-q" << "GPUCoreTemp"
|
|
|
|
<< "-q" << "GPUAmbientTemp";
|
|
|
|
<< "-q" << "GPUAmbientTemp";
|
|
|
|
if(!proc.start(KProcess::Block))
|
|
|
|
if(!proc.start(TDEProcess::Block))
|
|
|
|
return list;
|
|
|
|
return list;
|
|
|
|
|
|
|
|
|
|
|
|
// now see what it printed...
|
|
|
|
// now see what it printed...
|
|
|
@ -144,7 +144,7 @@ void NVidiaThermalSrc::evaluateStdout(){
|
|
|
|
#ifndef HAVE_NVCONTROL
|
|
|
|
#ifndef HAVE_NVCONTROL
|
|
|
|
void NVidiaThermalSrc::createProcess() {
|
|
|
|
void NVidiaThermalSrc::createProcess() {
|
|
|
|
mProcess = new KProcIO;
|
|
|
|
mProcess = new KProcIO;
|
|
|
|
connect(mProcess, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(evaluateStdout()));
|
|
|
|
connect(mProcess, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(evaluateStdout()));
|
|
|
|
*mProcess << "nvidia-settings" << "-n"
|
|
|
|
*mProcess << "nvidia-settings" << "-n"
|
|
|
|
<< "-q" << mID;
|
|
|
|
<< "-q" << mID;
|
|
|
|
}
|
|
|
|
}
|
|
|
|