The following used to work:
gsettings set com.canonical.Unity.Devices devices-option "Never"
But after I reinstalled yesterday the devices-option key is gone and so it fails. dconf-editor only shows that the key is not there, but doesn't allow me to create one.