libinput-m...chpad-size(1)

πŸ“¦
version 1.32.0 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 πŸ’œ