Your first code change should be sufficient. The only case your first code change does not cover is when the user changes the brightness, and then changes it back to the $MINIMUMBRIGHTNESSONSTART. This should be such a rare event that I believe we can ignore it.
|