From 1cd755cab8f4567c589b89150f538da8f4f44c54 Mon Sep 17 00:00:00 2001 From: steel99xl Date: Sat, 16 Dec 2023 14:33:59 -0500 Subject: [PATCH] CPU priority levels By default the priority level is set to 19 (the normal lowest priority a non-root user can set in Linux) thank you for the suggestion and input Theluga. --- AutomaticBrightness.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AutomaticBrightness.sh b/AutomaticBrightness.sh index c4a8a68..a407b2c 100644 --- a/AutomaticBrightness.sh +++ b/AutomaticBrightness.sh @@ -62,6 +62,13 @@ then fi +# This was moved down here to not affect performance of setting AB.offset +priority=19 # Priority level , 0 = regular app , 19 = very much background app + +# Set the priority of the current script, Thank you Theluga. +renice "$cpu_limit" "$$" + + touch '/tmp/AB.running'