diff --git a/hardware/power/Power.cpp b/hardware/power/Power.cpp index ed045d172e9a9d6fdc8715537db8300a7b022b3c..dc9ad1b4678425f0ed7d2012f7b364de321acf8f 100644 --- a/hardware/power/Power.cpp +++ b/hardware/power/Power.cpp @@ -70,8 +70,6 @@ out: set("/sys/power/cpuhotplug/max_online_cpu", interactive ? "8" : "6"); - setProfile(interactive ? PowerProfile::POWER_SAVE : PowerProfile::BALANCED); - return Void(); } @@ -146,7 +144,7 @@ Return Power::getFeature(LineageFeature feature) { void Power::initialize() { findInputNodes(); - current_profile = PowerProfile::BALANCED; + setProfile(PowerProfile::BALANCED); for (const std::string& interactivePath : cpuInteractivePaths) { hispeed_freqs.emplace_back(get(interactivePath + "/hispeed_freq", "")); @@ -217,6 +215,8 @@ void Power::setProfile(PowerProfile profile) { default: break; } + + current_profile = profile; } void Power::sendBoostpulse() {