|
|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
#include <kdebug.h>
|
|
|
|
|
|
|
|
|
|
#ifndef HAVE_NVCONTROL
|
|
|
|
|
#include <kprocio.h>
|
|
|
|
|
#include <tdeprocio.h>
|
|
|
|
|
#else
|
|
|
|
|
#include <tqpaintdevice.h> // for the Device* pointer
|
|
|
|
|
|
|
|
|
|
@ -68,7 +68,7 @@ std::list<Source*>NVidiaThermalSrc::createInstances(TQWidget* inParent){
|
|
|
|
|
// and "GPUAmbientTemp" and create two instances for each
|
|
|
|
|
// of them
|
|
|
|
|
// start nvidia-settings, if available and wait for it to exit.
|
|
|
|
|
KProcIO proc;
|
|
|
|
|
TDEProcIO proc;
|
|
|
|
|
proc << "nvidia-settings"
|
|
|
|
|
<< "-n" // don't load config
|
|
|
|
|
<< "-q" << "GPUCoreTemp"
|
|
|
|
|
@ -143,7 +143,7 @@ void NVidiaThermalSrc::evaluateStdout(){
|
|
|
|
|
|
|
|
|
|
#ifndef HAVE_NVCONTROL
|
|
|
|
|
void NVidiaThermalSrc::createProcess() {
|
|
|
|
|
mProcess = new KProcIO;
|
|
|
|
|
mProcess = new TDEProcIO;
|
|
|
|
|
connect(mProcess, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(evaluateStdout()));
|
|
|
|
|
*mProcess << "nvidia-settings" << "-n"
|
|
|
|
|
<< "-q" << mID;
|
|
|
|
|
|