Do not redraw when screen is off

Use DPMS to check if the screen is off before redrawing.