From 66f367e1d22335b0bbbe2f9acd70de275e3076d1 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Mon, 20 Feb 2023 14:42:38 -0500 Subject: [PATCH] Enable all-cpu governor dropdown by default for SD --- backend/src/settings/steam_deck/oc_limits.rs | 2 +- pt_oc.json | 2 +- src/components/cpus.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/settings/steam_deck/oc_limits.rs b/backend/src/settings/steam_deck/oc_limits.rs index fd060e0..7455621 100644 --- a/backend/src/settings/steam_deck/oc_limits.rs +++ b/backend/src/settings/steam_deck/oc_limits.rs @@ -73,7 +73,7 @@ impl Default for CpusLimits { fn default() -> Self { Self { cpus: [(); 8].iter().map(|_| CpuLimits::default()).collect(), - global_governors: false, + global_governors: true, } } } diff --git a/pt_oc.json b/pt_oc.json index 15f44db..3ee8234 100644 --- a/pt_oc.json +++ b/pt_oc.json @@ -104,7 +104,7 @@ "skip_resume_reclock": false } ], - "global_governors": false + "global_governors": true }, "gpu": { "fast_ppt": { diff --git a/src/components/cpus.tsx b/src/components/cpus.tsx index 778f821..6c94c22 100644 --- a/src/components/cpus.tsx +++ b/src/components/cpus.tsx @@ -238,7 +238,7 @@ export class Cpus extends Component { const governors = get_value(GOVERNOR_CPU); for (let i = 0; i < total_cpus; i++) { governors[i] = elem.data as string; - backend.resolve(backend.setCpuGovernor(i, elem.data as string), (_: string) => {}); + backend.resolve(backend.setCpuGovernor(i, governors[i]), (_: string) => {}); } set_value(GOVERNOR_CPU, governors); reloadGUI("CPUGlobalGovernor");