From 7925c21023f7d9090e1dc1cd25e79558155e66e9 Mon Sep 17 00:00:00 2001 From: Geffo029 <68825059+Geffo029@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:52:29 +0200 Subject: [PATCH] Fix check_conservation_mode() function in ideapad_laptop.py (#766) --- auto_cpufreq/battery_scripts/ideapad_laptop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_cpufreq/battery_scripts/ideapad_laptop.py b/auto_cpufreq/battery_scripts/ideapad_laptop.py index 766160aa..db775c29 100644 --- a/auto_cpufreq/battery_scripts/ideapad_laptop.py +++ b/auto_cpufreq/battery_scripts/ideapad_laptop.py @@ -24,7 +24,7 @@ def conservation_mode(value): def check_conservation_mode(): try: - value = check_output(["cat", CONSERVATION_MODE_FILE], text=True) + value = check_output(["cat", CONSERVATION_MODE_FILE], text=True).rstrip() if value == "1": return True elif value == "0": return False else: