Merge "Added hysteresis check to screen brightness." into pi-dev