Set the mode for an X Input Device
