summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-01 18:43:57 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-01 18:43:57 -0500
commit2b2945858fe2382d53b80dda26004f8e2fb06b8b (patch)
tree9fb0f4d728c15caa400326e1177c44a4864df9be /src
parentcee6e93e17babc59640f447679ae7eaf0bd34484 (diff)
downloadtdepowersave-2b2945858fe2382d53b80dda26004f8e2fb06b8b.tar.gz
tdepowersave-2b2945858fe2382d53b80dda26004f8e2fb06b8b.zip
Enable triggerless hardware updates on startup
Diffstat (limited to 'src')
-rw-r--r--src/hardware_battery.cpp3
-rw-r--r--src/hardware_cpu.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/hardware_battery.cpp b/src/hardware_battery.cpp
index 6011b72..ee9f0b9 100644
--- a/src/hardware_battery.cpp
+++ b/src/hardware_battery.cpp
@@ -65,11 +65,12 @@ Battery::Battery( TQString _udi ) {
if (trace) kdDebug() << funcinfo << "IN , udi: " << udi << endl;
m_hwdevices = TDEGlobal::hardwareDevices();
+ m_hwdevices->setTriggerlessHardwareUpdatesEnabled(true);
udi = _udi;
connect(m_hwdevices, TQT_SIGNAL(hardwareUpdated(TDEGenericDevice*)), this, TQT_SLOT(updateProperty(TDEGenericDevice*)));
-
+
initialized = false;
initDefault();
diff --git a/src/hardware_cpu.cpp b/src/hardware_cpu.cpp
index 618af0a..a47fa31 100644
--- a/src/hardware_cpu.cpp
+++ b/src/hardware_cpu.cpp
@@ -48,7 +48,8 @@ CPUInfo::CPUInfo() {
numOfCPUs = -1;
m_hwdevices = TDEGlobal::hardwareDevices();
-
+ m_hwdevices->setTriggerlessHardwareUpdatesEnabled(true);
+
kdDebugFuncOut(trace);
}