diff --git a/README.md b/README.md index d99fba4..4d52803 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ NOTE: You cannot enable or disable cpu0, hence why there are only 7 in the range Enable: `echo 1 > /sys/devices/system/cpu/cpufreq/boost` enables boost across all threads. -Disable: `echo 1 > /sys/devices/system/cpu/cpufreq/boost` disables boost across all threads. +Disable: `echo 0 > /sys/devices/system/cpu/cpufreq/boost` disables boost across all threads. ### Set CPU frequency diff --git a/extras/ui.png b/extras/ui.png index 971e813..a282a17 100644 Binary files a/extras/ui.png and b/extras/ui.png differ diff --git a/main.py b/main.py index cb8ce62..6809f50 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,7 @@ class Plugin: CPU_COUNT = 8 SCALING_FREQUENCIES = [1700000, 2400000, 2800000] - # call from main_view.html with setCPUs(onclick_event) or call_plugin_method("set_cpus", count) + # call from main_view.html with setCPUs(count, smt) async def set_cpus(self, count, smt=True) -> int: # print("Setting CPUs") if smt: @@ -51,7 +51,10 @@ class Plugin: if read_scaling_governor_cpu(cpu) != "userspace": write_scaling_governor_cpu(cpu, "userspace") path = cpu_freq_scaling_path(cpu) - write_to_sys(path, selected_freq) + if index == len(self.SCALING_FREQUENCIES) - 1: + write_scaling_governor_cpu(cpu, "schedutil") + else: + write_to_sys(path, selected_freq) updated += 1 return updated diff --git a/main_view.html b/main_view.html index 9c60be0..294f330 100644 --- a/main_view.html +++ b/main_view.html @@ -114,7 +114,8 @@ -
+ +