by Scotty Hall
This is a simpler AutoWiFi. It is based off screen state. The assumption is if the screen is off you likely do not need the WiFi on, conversely when the screen is on, you do.
Additionally, a check is made when the screen is on as to whether or not you have established a WiFi connection, if not the WiFi is turned off to save power.
From there everything loops back to the screen state check. It should be fairly transparent other than the delay in reconnecting once the screen is turned on. There is some delays built in in case of incidental screen activation or brief activations.