From 83f9147362a6deaeeb00ddfe6a4cf669a5c80fb7 Mon Sep 17 00:00:00 2001 From: steel99xl Date: Mon, 6 Jan 2025 19:46:33 -0500 Subject: [PATCH] Improved Range Improved the effective amount of distinct brightness levels by 5x *You can lower LevelSteps to get more distinct levels but you will need to change the AnimationDelay to compensate --- AutomaticBrightness.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AutomaticBrightness.sh b/AutomaticBrightness.sh index d0d0054..7dc08c1 100755 --- a/AutomaticBrightness.sh +++ b/AutomaticBrightness.sh @@ -10,10 +10,10 @@ SensorDelay=1 # NOW WITH FLOAT SUPPORT SensorToDisplayScale=24.09 -#This should match your refesh rate other wise it will either change the back light more times than needed or too few for a smooth animation -LevelSteps=60 -# The is should match the LevelSteps but in the acual time each event should take to see -AnimationDelay=0.016 +# 12 steps is the most similar on a Macbook 2017 running Arch compared to MacOS +LevelSteps=12 +# Playes the 12 stesp effectivly at 30 FPS 32ms +AnimationDelay=0.032 # Read the variable names