Sets the mode.
One of the modes returned by the modes property.
if setting the mode failed or the device was removed.