libinput-m...chpad-size(1)
β¨ NAME β¨
libinput-measure-touchpad-size β bestie, it measures the size of your touchpad π
πΈ SYNOPSIS πΈ
libinput measure touchpad-size [--help] WxH [/dev/input/event0]
π¦ DESCRIPTION π¦
okay so the libinput measure touchpad-size tool measures the size of a touchpad. yes literally that's the whole gig π
it's an interactive tool, meaning you are part of the show. when you run it, it's gonna prompt you to go touch your touchpad, and while you do that it records the axis ranges and then does the math on the size and the resolution based on those ranges. on termination it prints out a hwdb entry that you can drop into the 60-evdev.hwdb file that system provides. iconic behavior tbh β¨
for the details, the online documentation lives right here:
https://wayland.freedesktop.org/libinput/doc/latest/absolute-coordinate-ranges.html
β οΈ heads up bestie: this is a debugging tool only, and its output may change at any time. do not rely on the output. no cap. π
also, this tool usually needs to be run as root so it can actually get at the /dev/input/eventX nodes. permission check = vibe check π₯
π OPTIONS π
you must hand this tool the physical dimensions of the device in mm. no dimensions, no measuring, periodt.
like, if your touchpad is 100mm wide and 55mm high, you run it like this:
libinput measure touchpad-size 100x55
if you give it a device node, it opens that device node. if you don't, it goes hunting for the first node that looks like a touchpad and uses that one instead π΅οΈβοΈ
--helpβ prints help, the classic. π«Ά
π LIBINPUT π
part of the libinput(1) suite π
and that's the whole page, bestie π this one signs off as libinput-m...chpad-size(1), straight out of the General Commands Manual β go measure something cute π
π¦ where this page comes from
- alpine 3.24: libinput-doc 1.31.3-r0 Β· MIT
- arch rolling: libinput-tools 1.32.0-1 Β· MIT
- centos-stream 10: libinput-utils 1.30.1-2.el10 Β· MIT
- debian trixie: libinput-tools 1.28.1-1+deb13u1 Β· MIT
- fedora 43: libinput-utils 1.29.1-1.fc43 Β· MIT
- fedora 43: libinput-utils 1.30.3-1.fc43 Β· MIT
- fedora 44: libinput-utils 1.31.0-1.fc44 Β· MIT
- fedora 44: libinput-utils 1.31.3-1.fc44 Β· MIT
- nixos 26.05: libinput 1.31.3
- nixpkgs unstable: libinput 1.31.3
- opensuse-leap 16.0: libinput-tools 1.28.1-160000.3.1 Β· MIT
- opensuse-leap 16.0: libinput-tools 1.28.1-160000.3.1 Β· MIT
- opensuse-leap 16.0: libinput-tools 1.28.1-160000.3.1 Β· MIT
- opensuse-leap 16.0: libinput-tools 1.28.1-160000.3.1 Β· MIT
- ubuntu noble: libinput-tools 1.25.0-1ubuntu2 Β· MIT
- ubuntu noble: libinput-tools 1.25.0-1ubuntu3.7 Β· MIT
- ubuntu questing: libinput-tools 1.28.1-1build1
- ubuntu questing: libinput-tools 1.28.1-1ubuntu0.4
- ubuntu resolute: libinput-tools 1.31.1-1 Β· MIT
- ubuntu resolute: libinput-tools 1.31.1-1ubuntu1.2 Β· MIT
- ubuntu stonking: libinput-tools 1.31.3-1ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms