LIBEVDEV-TWEAK-DEVICE(1)
π LIBEVDEV-TWEAK-DEVICE(1) π
okay bestie, so this is a page straight out of the General Commands Manual β it's the glow-up guide for libevdev-tweak-device, and yes, it's as niche and iconic as it sounds π
β¨ NAME β¨
libevdev-tweak-device β modify an evdev kernel device π
πΈ SYNOPSIS πΈ
libevdev-tweak-device --abs ABS_X [--min a] [--max b] [--res c] [--fuzz
d] [--flat e] /dev/input/eventX libevdev-tweak-device --resolution
res[,yres] /dev/input/eventX
libevdev-tweak-device --led LED_NUML --on|--off /dev/input/eventX
π¦ DESCRIPTION π¦
So like, libevdev-tweak-device changes the properties of the evdev kernel device sitting at /dev/input/eventX. Right now it can do two things: force an LED on or off, or change the properties of an absolute axis (think its minimum/maximum range, or its resolution). And here's the tea β the changes are permanent until the device is removed. periodt. π₯
π OPTIONS π
π Changing absolute axes
--absaxis β change the given namedABS_kernel axis, likeABS_X. For the full list, go look atlinux/input.h. And get this: each of the optionsmin,max,res,fuzz,flatcan be given too. so many choices, we love options π«Ά--minv β set the absinfo minimum to the value v--maxv β set the absinfo maximum to the value v--resv β set the absinfo resolution to the value v--fuzzv β set the absinfo fuzz to the value v--flatv β set the absinfo flat to the value v
π Changing the x/y resolution
--resolutionres[,yres] β changes the resolution of theABS_X,ABS_MT_POSITION_X,ABS_Y, andABS_MT_POSITION_Yaxis to the resolution you give it. If you only hand over one resolution value, both the x and y axis get set to that same resolution. But if you give two? Then the first resolution value goes to the x axes and the second one goes to the y axes. it's giving coordinated. π
β Toggling LEDs
--ledled β change the given LED, likeLED_NUML. For the full list, hit uplinux/input.h.--onβ change the LED state to on β¨--offβ change the LED state to off π
π NOTES π
okay this part is important so listen up π The kernel does not notify processes about absinfo property changes. So any process that already grabbed the absinfo from the device is just gonna stay on the old information, blissfully unaware, main character energy but make it stale. Which means using this tool is potentially racy β use with caution. fr fr, be careful. π
and that's the whole page bestie π this lil doc is filed under the General Commands Manual and signed off as LIBEVDEV-TWEAK-DEVICE(1) β no cap, that's genuinely all the footer gave us, so take the title and the manual name and go slay some kernel devices. π§ββοΈπ
π¦ where this page comes from
- alpine 3.24: libevdev-doc 1.13.6-r0 Β· MIT
- arch rolling: libevdev 1.14.0-1 Β· MIT
- debian bookworm: libevdev-tools 1.13.0+dfsg-1 Β· MIT
- debian trixie: libevdev-tools 1.13.4+dfsg-1 Β· MIT
- fedora 43: libevdev-utils 1.13.4-2.fc43 Β· MIT
- fedora 43: libevdev-utils 1.13.6-1.fc43 Β· MIT
- fedora 44: libevdev-utils 1.13.6-2.fc44 Β· MIT
- fedora 44: libevdev-utils 1.13.7-1.fc44 Β· MIT
- nixos 26.05: libevdev 1.13.6
- nixpkgs unstable: libevdev 1.13.6
- opensuse-leap 16.0: libevdev-tools 1.13.3-160000.2.2 Β· MIT
- opensuse-leap 16.0: libevdev-tools 1.13.3-160000.2.2 Β· MIT
- opensuse-leap 16.0: libevdev-tools 1.13.3-160000.2.2 Β· MIT
- opensuse-leap 16.0: libevdev-tools 1.13.3-160000.2.2 Β· MIT
- ubuntu jammy: libevdev-tools 1.12.1+dfsg-1 Β· MIT
- ubuntu noble: libevdev-tools 1.13.1+dfsg-1build1 Β· MIT
- ubuntu questing: libevdev-tools 1.13.4+dfsg-1
- ubuntu resolute: libevdev-tools 1.13.6+dfsg-1 Β· MIT
- ubuntu stonking: libevdev-tools 1.13.6+dfsg-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms