We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2d6050 commit 7925c21Copy full SHA for 7925c21
auto_cpufreq/battery_scripts/ideapad_laptop.py
@@ -24,7 +24,7 @@ def conservation_mode(value):
24
25
def check_conservation_mode():
26
try:
27
- value = check_output(["cat", CONSERVATION_MODE_FILE], text=True)
+ value = check_output(["cat", CONSERVATION_MODE_FILE], text=True).rstrip()
28
if value == "1": return True
29
elif value == "0": return False
30
else:
0 commit comments