diff options
| -rw-r--r-- | src/tdepowersave.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tdepowersave.cpp b/src/tdepowersave.cpp index 3519d45..0ad806c 100644 --- a/src/tdepowersave.cpp +++ b/src/tdepowersave.cpp @@ -2653,7 +2653,7 @@ bool tdepowersave::do_setCPUFreqPolicy( TQString policy ) { bool ret = true; - /* + if (hwinfo->isCpuFreqAllowed() && hwinfo->isOnline()) { if (policy == "PERFORMANCE") { hwinfo->setCPUFreq(PERFORMANCE); @@ -2668,7 +2668,7 @@ bool tdepowersave::do_setCPUFreqPolicy( TQString policy ) { } else { ret = false; } - */ + kdDebugFuncOut(trace); return ret; } @@ -2743,12 +2743,12 @@ TQStringList tdepowersave::listSchemes(){ * \param _scheme TQString with the scheme to set, scheme should be * named as list from list_schemes() */ -bool tdepowersave::do_setScheme( TQString /*_scheme*/ ) { +bool tdepowersave::do_setScheme( TQString _scheme ) { kdDebugFuncIn(trace); -/* int index; + int index; index = settings->schemes.findIndex(_scheme); - + kdDebug() << funcinfo << " index: " << index << endl; if (index != -1) { do_setActiveScheme(index); kdDebugFuncOut(trace); @@ -2758,7 +2758,6 @@ bool tdepowersave::do_setScheme( TQString /*_scheme*/ ) { kdDebugFuncOut(trace); return false; } -*/ kdDebugFuncOut(trace); return false; } |
