Enable or disable the device.