Depends on: xset
A simple shell script around xset to turn off the display.
sleep four seconds before switching off the display to allow a remote connection (e.g. VNC) to mouse out of the window, to terminate the remote session. Usually, VNC'ing doesn't require turning on the display but for KDE, it may be necessary so the screen saver doesn't kick back on.