Set the mode for an X11 input device
