XSETDEVICEMODE(3)
β¨ XSETDEVICEMODE(3) β¨
okay so bestie, welcome to XSetDeviceMode from the XSETDEVICEMODE(3) manual, she's giving input-device glow-up energy and honestly? iconic π
πΈ NAME πΈ
XSetDeviceMode β change the mode of a device π
π¦ SYNOPSIS π¦
#include <X11/extensions/XInput.h>
XSetDeviceMode( Display *display,
XDevice *device,
int mode);
displayβ the connection to the X server, your little hotline to the mothership πdeviceβ the device whose mode we're about to switch up, main character of this whole operation πmodeβ the mode itself, bestie. You can passAbsolute, orRelative. Those are the two, no third option, periodt β¨
π DESCRIPTION π
The XSetDeviceMode request changes the mode of an input device that is capable of reporting either absolute positional information or relative motion information. Like, it literally just flips the vibe of the device between "here's exactly where I am" and "here's how far I moved," iykyk π¦
ngl though, not every device is built for this. Not all input devices are capable of reporting motion data, and not all are capable of changing modes from Absolute to Relative. So before you go feral with this request, just know your device might simply not be that girl π
XSetDeviceMode can generate a BadDevice or BadMode error. Yeah. She can be dramatic π
π DIAGNOSTICS π
BadDeviceβ an invalid device was specified, oops. The specified device does not exist or has not been opened by this client viaXOpenInputDevice. This error may also occur if some other client has caused the specified device to become the X keyboard or X pointer device via theXChangeKeyboardDeviceorXChangePointerDevicerequests. Basically someone else claimed your fave, awkward πBadMatchβ this error may occur if anXSetDeviceModerequest is made specifying a device that has no valuators and reports no axes of motion. Like bestie, there's nothing to measure here, what are we even doing πBadModeβ an invalid mode was specified. This error will also be returned if the specified device is not capable of supporting theXSetDeviceModerequest. Not everyone can sit with us, and that's okay π
fr fr, remember:AbsoluteorRelative, that's the whole mode menu. Don't invent a third one, she will not slay π
and that's the whole page, bestie!! this was XSETDEVICEMODE(3), dated 05/18/2026, and it lives in the XSETDEVICEMODE(3) manual section π«Ά go forth and set some device modes, you've got this, no cap πβ¨πΈ
π¦ where this page comes from
- fedora 44: libXi-devel 1.8.3-1.fc44 Β· MIT-open-group AND SMLNJ AND MIT
- fedora 44: libXi-devel 1.8.3-1.fc44 Β· MIT-open-group AND SMLNJ AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms