libinput-measure-touchpad-size(1)

libinput-measure-touchpad-size1

Measure the size of a touchpad

Usage

libinput measure touchpad-size [--help] WxH [/dev/input/event0]

Overview

The libinput measure touchpad-size tool measures the size of a touchpad. This is an interactive tool. When executed, the tool will prompt the user to interact with the touchpad. The tool records the axis ranges and calculates the size and resolution based on those. On termination, the tool prints a hwdb entry that can be added to the 60-evdev.hwdb file provided by system.

For details see the online documentation here: https://wayland.freedesktop.org/libinput/doc/latest/absolute-coordinate-ranges.html

This is a debugging tool only, its output may change at any time. Do not rely on the output.

This tool usually needs to be run as root to have access to the /dev/input/eventX nodes.

Options

This tool must be provided the physical dimensions of the device in mm. For example, if your touchpad is 100mm wide and 55mm high, run this tool as libinput measure touchpad-size 100x55

If a device node is given, this tool opens that device node. Otherwise, this tool searches for the first node that looks like a touchpad and uses that node.

--help

Print help

Libinput

Part of the libinput(1) suite

Releases

4 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13–Arch

From libinput-tools 1.32.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.