diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-06-01 18:43:57 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-06-01 18:43:57 -0500 |
commit | 2b2945858fe2382d53b80dda26004f8e2fb06b8b (patch) | |
tree | 9fb0f4d728c15caa400326e1177c44a4864df9be | |
parent | cee6e93e17babc59640f447679ae7eaf0bd34484 (diff) | |
download | tdepowersave-2b2945858fe2382d53b80dda26004f8e2fb06b8b.tar.gz tdepowersave-2b2945858fe2382d53b80dda26004f8e2fb06b8b.zip |
Enable triggerless hardware updates on startup
-rw-r--r-- | src/hardware_battery.cpp | 3 | ||||
-rw-r--r-- | src/hardware_cpu.cpp | 3 |
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); } |