Handle display on/off cycles correctly

Signed-off-by: Simon Busch <morphis@gravedo.de>
Merge pull request #58 from webOS-ports/morphis/display

Handle display on/off cycles correctly