diff --git a/AutomaticBrightness.sh b/AutomaticBrightness.sh old mode 100644 new mode 100755 index defea77..48737ca --- a/AutomaticBrightness.sh +++ b/AutomaticBrightness.sh @@ -118,7 +118,7 @@ do CurrentBrightness=$(cat $BLightPath) # Add MinimumBrighness here to not effect comparison but the outcome - Light=$(( $Light + $MinimumBrightness )) + Light=$(LANG=C printf "%.0f" $(echo "scale=2; $Light + ( $MinimumBrightness * $SensorToDisplayScale ) " | bc )) # Gernate a TempLight value for the screen to be set to # Float math thanks Matthias_Wachter