mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-31 01:24:29 +02:00
Repare stop threshold message
This commit is contained in:
parent
95b0afa246
commit
af95428d4d
@ -33,6 +33,6 @@ def ideapad_acpi_print_thresholds():
|
||||
print(f"battery count = {len(batteries)}")
|
||||
for bat in batteries:
|
||||
try:
|
||||
print(f'{bat} start threshold = {check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_start_threshold")}')
|
||||
print(f'{bat} start threshold = {check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_stop_threshold")}')
|
||||
print(bat, "start threshold =", check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_start_threshold"))
|
||||
print(bat, "stop threshold =", check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_stop_threshold"))
|
||||
except Exception as e: print(f"ERROR: failed to read battery {bat} thresholds:", repr(e))
|
||||
|
@ -64,6 +64,6 @@ def ideapad_laptop_print_thresholds():
|
||||
print(f"battery count = {len(batteries)}")
|
||||
for bat in batteries:
|
||||
try:
|
||||
print(f'{bat} start threshold = {check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_start_threshold")}')
|
||||
print(f'{bat} start threshold = {check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_stop_threshold")}')
|
||||
print(bat, "start threshold =", check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_start_threshold"))
|
||||
print(bat, "stop threshold =", check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_stop_threshold"))
|
||||
except Exception as e: print(f"ERROR: failed to read battery {bat} thresholds:", repr(e))
|
||||
|
@ -34,6 +34,6 @@ def thinkpad_print_thresholds():
|
||||
print(f"battery count = {len(batteries)}")
|
||||
for bat in batteries:
|
||||
try:
|
||||
print(f'{bat} start threshold = {check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_start_threshold")}')
|
||||
print(f'{bat} start threshold = {check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_stop_threshold")}')
|
||||
print(bat, "start threshold =", check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_start_threshold"))
|
||||
print(bat, "stop threshold =", check_output(f"cat {POWER_SUPPLY_DIR}{bat}/charge_stop_threshold"))
|
||||
except Exception as e: print(f"ERROR: failed to read battery {bat} thresholds:", repr(e))
|
||||
|
Loading…
x
Reference in New Issue
Block a user