magic: default screen brightness to 65%

This commit is contained in:
Maxime Desroches
2025-11-11 14:45:54 -08:00
parent 34367efce5
commit ac3ca9efd4
+1 -1
View File
@@ -55,7 +55,7 @@ def power_screen():
with open("/sys/class/backlight/panel0-backlight/bl_power", "w") as f:
f.write("0")
with open("/sys/class/backlight/panel0-backlight/max_brightness") as f:
max_brightness = int(f.read().strip())
max_brightness = int((int(f.read().strip()) / 100) * 65)
with open("/sys/class/backlight/panel0-backlight/brightness", "w") as f:
f.write(str(max_brightness))
except Exception: