Skip to content

Commit

Permalink
fix distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Dec 13, 2023
1 parent 9686cde commit a4dd7ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion backend/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def set_fanPercent(self, value:int):

try:
if self.FAN_HWMON_IS_MULTI_PWM and self.FAN_HWMON_PWM_PATH_LIST:
time.sleep(0.9) # sleep 不能超过1秒,否则循环会堆积
fanWriteValue = max(min(int(value/100*FAN_RPMWRITE_MAX),FAN_RPMWRITE_MAX),0)
for pwm_path in self.FAN_HWMON_PWM_PATH_LIST:
open(pwm_path,'w').write(str(fanWriteValue))
Expand Down
2 changes: 1 addition & 1 deletion backend/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def fix_gpuFreqSlider(self):
# 判断是否为 ChimeraOS
if distribution == 'chimeraos':
result = subprocess.run(['frzr-unlock'])
elif distribution == 'steamos':
elif distribution == 'SteamOS':
result = subprocess.run(['steamos-readonly', 'disable'])
if result.stdout:
logging.info(f"stdout {result.stdout.strip()}")
Expand Down

0 comments on commit a4dd7ad

Please sign in to comment.