Skip to content

Commit

Permalink
#728 Disable Blink Energy Saver by default
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed May 1, 2024
1 parent b83d9d6 commit 0dc5d37
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build/patches/WIN-enable-HighEfficiencyMode-by-default.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Subject: WIN enable HighEfficiencyMode by default

License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
---
components/performance_manager/user_tuning/prefs.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
components/performance_manager/user_tuning/prefs.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/performance_manager/user_tuning/prefs.cc b/components/performance_manager/user_tuning/prefs.cc
--- a/components/performance_manager/user_tuning/prefs.cc
+++ b/components/performance_manager/user_tuning/prefs.cc
@@ -23,12 +23,12 @@
@@ -23,15 +23,15 @@
namespace performance_manager::user_tuning::prefs {

void RegisterLocalStatePrefs(PrefRegistrySimple* registry) {
Expand All @@ -24,5 +24,9 @@ diff --git a/components/performance_manager/user_tuning/prefs.cc b/components/pe
+ kMemorySaverModeState, static_cast<int>(MemorySaverModeState::kEnabled));
registry->RegisterIntegerPref(
kBatterySaverModeState,
static_cast<int>(BatterySaverModeState::kEnabledBelowThreshold));
- static_cast<int>(BatterySaverModeState::kEnabledBelowThreshold));
+ static_cast<int>(BatterySaverModeState::kDisabled));
registry->RegisterTimePref(kLastBatteryUseTimestamp, base::Time());
}

--

0 comments on commit 0dc5d37

Please sign in to comment.