Added "Turn on the screen" item in the settings. Added additional checks
in the mechanism of switching the screen, just in case.
Merge pull request #942 from jtrax/bugfixes

Added "Turn on the screen" item in the settings. Added additional checks