feature: add low power mode ability for X19 possibly.

This commit is contained in:
UpstreamData
2023-02-23 14:44:43 -07:00
parent 3d137f95d9
commit 91c0e1c125
3 changed files with 8 additions and 1 deletions

View File

@@ -326,6 +326,8 @@ class MinerConfig:
if data[key]:
if data[key] == 1:
self.autotuning_wattage = 0
if data[key] == 2:
self.autotuning_wattage = 1200
elif key == "fan_control":
for _key in data[key].keys():
if _key == "min_fans":
@@ -462,6 +464,9 @@ class MinerConfig:
if self.autotuning_wattage == 0:
cfg["miner-mode"] = 1 # Sleep Mode
if self.autotuning_wattage < 1800:
cfg["miner-mode"] = 2 # LPM?
if not self.temp_mode == "auto":
cfg["bitmain-fan-ctrl"] = True