Revert "Simplify max_screen_off fix provided by @aidfarh"

This reverts commit affe26530e8e6946439549e73f19635a5d417894.
Revert "intelliplug: hack for screen_off_max"

This reverts commit f82df32dcf514c83b352797ded27bd476b2dcc4c.