libevdev/tools
Peter Hutterer fa3c5622de tools: print out evdev override udev rule from touchpad edge detector
We're starting to collect overrides for custom devices, making this easier for
users and saves us time. Once we measured everything, print out a
guesstimated udev rule and instructions on how to calculate the resolution.
Extra output now is:

	Touchpad size as listed by the kernel: 132x111mm
	Calculate resolution as:
		x axis: 6076/<width in mm>
		y axis: 5021/<height in mm>

	Suggested udev rule:
	# <Laptop model description goes here>
	evdev:input:b0005v05ACp030E*
	 EVDEV_ABS_01=-2694:2862:<x resolution>
	 EVDEV_ABS_02=-20:121:<y resolution>
	 EVDEV_ABS_35=-2694:2862:<x resolution>
	 EVDEV_ABS_36=-20:121:<y resolution>

The ABS_MT_ axes are only printed if the device have them, if the device isn't
bluetooth/usb we print the dmi modalias instead.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2015-08-24 08:16:09 +10:00
..
.gitignore tools: add a tool to change kernel devices 2015-02-04 11:02:02 +10:00
libevdev-events.c tools: pass -rc to strerror, not rc 2014-08-22 11:50:15 +10:00
libevdev-tweak-device.1 tools - tweak-device: add a --resolution command 2015-07-01 11:59:20 +10:00
libevdev-tweak-device.c tools - tweak-device: add a --resolution command 2015-07-01 11:59:20 +10:00
Makefile.am tools: add a tool to change kernel devices 2015-02-04 11:02:02 +10:00
mouse-dpi-tool.c tools: widen frequency resolution to µs in the DPI tool 2015-05-21 11:52:40 +10:00
publish-doc Point to new API documentation URL 2013-07-22 08:34:55 +10:00
touchpad-edge-detector.c tools: print out evdev override udev rule from touchpad edge detector 2015-08-24 08:16:09 +10:00