bilegt/autobrightness — pull request #1 by nightsh (2014-01-09 04:03:17+00:00)
Title: Sampling before sleep(), so it will begin with the adjustments

Sampling should happen before sleeping :)
Also, I changed the mode to +x for the shell script.