libinput-tools helpful in debugging libinput
                
list-devices: List all devices with their default configuration options
 
debug-events: Print events to stdout
 
debug-gui: Display a simple GUI to visualize libinput's events.
 
measure {feature}: Measure various device properties. See the man page for more info
 
analyze {feature}: Analyze device events. See the man page for more info
 
record: Record event stream from a device node. See the man page for more info
 
replay: Replay a previously recorded event stream. See the man page for more info
 
calibrate-touchscreen: Bonus utility to help with touchscreen calibration.
 
https://mir-server.io/docs/howto-calibrate-a-touchscreen-device