This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit e029527a53e04319d7fbb6eaa0066040971d1385
Author: Carsten Haitzler <[email protected]>
AuthorDate: Sun Jan 25 18:51:00 2026 +0000
system - cpufreq - ensure acpi profile set covers all possible options
---
src/bin/system/e_system_cpufreq.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/bin/system/e_system_cpufreq.c b/src/bin/system/e_system_cpufreq.c
index 5affa8844..d3d03f0ba 100644
--- a/src/bin/system/e_system_cpufreq.c
+++ b/src/bin/system/e_system_cpufreq.c
@@ -37,10 +37,10 @@ sys_cpu_set_all_min_freq(void)
}
static int
-sys_cpu_acpi_setall(const char *control, const char *value)
+sys_cpu_acpi_set(const char *control, const char *value)
{
FILE *f;
- char buf[4096];
+ char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "/sys/firmware/acpi/%s", control);
f = fopen(buf, "w");
@@ -210,10 +210,10 @@ sys_firmware_pwr_energy_set(int v)
char *p, **strs;
char buf[1024];
char *wrstr[4] = { NULL };
- const char *lv0[] = { "low-power", "cool", NULL };
- const char *lv1[] = { "quiet", NULL };
- const char *lv2[] = { "balanced", NULL };
- const char *lv3[] = { "balanced-performance", "performance", NULL };
+ const char *lv0[] = { "low-power", "cool", "quiet", "balanced", "balanced-performance", "performance", NULL };
+ const char *lv1[] = { "quiet", "cool", "balanced", "low-power", "balanced-performance", "performance", NULL };
+ const char *lv2[] = { "balanced", "balanced-performance", "quiet", "cool", "performance", "low-power", NULL };
+ const char *lv3[] = { "performance", "balanced-performance", "balanced", "quiet", "cool", "low-power", NULL };
f = fopen("/sys/firmware/acpi/platform_profile_choices", "r");
if (!f) return 0;
@@ -233,7 +233,7 @@ sys_firmware_pwr_energy_set(int v)
wrstr[1] = find_preferred(strs, lv1, "quiet");
wrstr[2] = find_preferred(strs, lv2, "balanced");
wrstr[3] = find_preferred(strs, lv3, "performance");
- sys_cpu_acpi_setall("platform_profile", wrstr[v]);
+ sys_cpu_acpi_set("platform_profile", wrstr[v]);
free(strs[0]);
free(strs);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.