Disable screensaver/blanking on Raspberry Pi

For permanent display screens (e.g. digiclock) run by a Raspberry Pi it is useful to disable screen blanking and the screen-saver. These two config-edits seem to work: https://www.raspberrypi.org/forums/viewtopic.php?t=57552

In /etc/xdg/lxsession/LXDE-pi/autostart we want

@xset s noblank
@xset s off
@xset -dpms

And then in /etc/lightdm/lightdm.conf

xserver-command=X -s 0 dpms