summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2017-07-02evdev-mt-touchpad: Enable timestamp smoothing support for bluetooth touchpadsHEADmasterHans de Goede1-1/+1
Bluetooth wreaks havoc with the timestamp of the input events coming from the touchpad, enable timestamp smoothing support to counter this. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2017-06-26tools: fix invocation of subtoolsPeter Hutterer1-1/+1
One dash too many. Oops. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-26tools: split the configuration option parsing outPeter Hutterer7-292/+290
We had one shared parsing function for all config options so tools parse options that don't actually make sense (e.g. --quiet or --show-keycodes for libinput-list-devices). This patch splits the actual libinput device configuration out and reshuffles everything to make use of that. One large patch, because splitting this up is more confusing than dumping it all. This means the actual option parsing is partially duplicated between debug-gui and debug-events but hey, not everything in life is perfect. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-22tools: shorten the --help output for the commandsPeter Hutterer7-88/+89
The full information is now in the man page, the usage() now just tells you how to use it. This way there's only one place to maintain it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-20tools: add the compat scripts installer script to the tarballPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-06-19tools: assert on malloc failurePeter Hutterer1-1/+3
No need for proper recovery here in this debugging tool. Also sneak in a whitespace fix while we're here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-15tools: grab the pointer in the debug guiPeter Hutterer2-1/+15
Because it's too annoying to trigger the hot corner every few seconds while pointer debugging. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-15Remove vestiges of the event-guiPeter Hutterer1-1/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-13tools: note that the touchpad-tap measuring tool picks a touchpadPeter Hutterer1-0/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-13tools: update the publish-doc tool to use ninjaPeter Hutterer1-3/+7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-13tools: free the tap data on errorPeter Hutterer1-1/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-13tools: add missing toffset copy from src to dest while duplicatingPeter Hutterer1-0/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-09tools: point out that measuring taps may be different to what libinput seesPeter Hutterer1-0/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-06tools: fix linker error with the debug-guiPeter Hutterer1-4/+4
Make sure we link libudev into everything that requires it Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-06tools: link libinput.la for libshared.laPeter Hutterer1-1/+1
Hopefully fixes the Semaphore CI build failures, apparently things are a bit more restrictive there than in Fedora 26. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: escape all dashes in man pages (for commands and options)Peter Hutterer6-42/+42
Apparently the rule is that if a dash may end up being copy/pasted, it needs to be escaped. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: man page cleanup - lowercase all command namesPeter Hutterer6-6/+6
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: add "libinput measure touchpad-tap"Peter Hutterer9-50/+870
This is the first tool of many more to come to enable users to gather information aobut their devices and/or usage of these devices. Previously, these required the users to record events, submit them to a bugzilla, have me run various scripts over it and then decree that the scripts have spoken. Push some of this into the hands of the users so they can query the numbers locally and start investigating (or at least get an idea of what's happening). This tool measures the time deltas between touch up and touch down and prints a basic summary, together with the ability to print a dat file with the data for visualization by e.g. gnuplot. Eventually, more of the current analysis scripts will be moved into this or other helpers. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: link to the online documentation from the libinput(1) man pagePeter Hutterer1-1/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: make the libinput tool usage staticPeter Hutterer7-49/+7
This now makes the header obsolete too Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: Reinstate libshared.la and add it to meson.build tooPeter Hutterer1-10/+12
Removed with commit 863fd1f0ebf145dc2b3a59e2a3e57dbc4ce77eaf but now that we exec each subcommand, the previous per-target compilation flags aren't needed anymore. Build a static library to avoid rebuilding the source files for each target. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: tidy up the usage() for the tools a bitPeter Hutterer4-21/+28
Now that the debug-gui is a user-visible tool, make sure the usage reflects the right command name. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02Fold the event-gui into the libinput toolPeter Hutterer5-10/+45
It's common enough for users to want to debug libinput behavior without interference by the compositor or the X server. Being able to run a GUI without having to compile from git is helpful. Note that this changes --enable-event-gui autotools option to --enable-debug-gui and the event-gui mesonconf option to debug-gui. This also drops the standalone event-gui binary in both autotools and meson. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: switch the libinput tool to be an exec-ing toolPeter Hutterer14-244/+139
Chaining args together inside a single binary would be nice, but it gets nasty quickly (as I found out adding 3, 4 extra commands). Switch over to using a git-style exec-ing command where libinput merely changes argv[0] and then executes whatever it assembled. And those binaries can hide in libexec so they don't clutter up the global namespace. This also makes it a lot easier to write man pages, adopt the same style as git uses. Compatibilty wrapper scripts are provided for libinput-list-devices and libinput-debug events. These warn the user about the changed command, then exec the new one. Expect these wrappers to be removed at some point in the future. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-02tools: drop event-debugPeter Hutterer2-12/+4
It's the same thing as libinput-debug-events and the newer "libinput debug-events" command. The only reason it existed after we started providing libinput-debug-events is the -no-install libtool flag that makes debugging with gdb bearable. Now that we're slowly moving to meson, this isn't needed anymore. If you want to gdb directly in the source tree, build with meson. Or use "libtool --mode=execute gdb" for an autotools build. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-26tools: fix minor coding style issuePeter Hutterer1-1/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-26tools: fix return codes on failurePeter Hutterer1-9/+10
Leftovers from an earlier version where we had booleans and more function nesting in the mix. Fix to return integers, and also rename the function name accordingly. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-18tools: hook libinput-debug-events into the libinput toolPeter Hutterer7-17/+116
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-18tools: add a 'libinput' toolPeter Hutterer5-18/+320
This tool will eventually replace the different libinput tools we ship atm with the various functionalities being commands to the single tool, rather than multiple tools. Right now, we still build both tools separately. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-18tools: rename a source file to match the future common file name paradigmPeter Hutterer2-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-18tools: drop libshared.laPeter Hutterer1-14/+13
Include the source files directly, we'll need per-target compiler flags that affect different tools differently in the future. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-12Include config.h from event-debug.cPeter Hutterer1-1/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-04Rename man pages to .1 suffix for meson's benefitPeter Hutterer3-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-04-20tools: update man page for debug-events --show-keycodes flagPeter Hutterer1-5/+7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-04-20tools: fix typo in list-devices man pagePeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-28test: add color to litest verbose outputPeter Hutterer1-3/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-24tools: use 'required_argument'/'no_argument' for getopt_longPeter Hutterer1-27/+27
See the getopt_long example, makes the code more obvious Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-22tools: print axes, but not capabilities on proximity outPeter Hutterer1-32/+34
Print the axis values on proximity out because it a) ensures we have the right values and b) makes the output better aligned with the proximity in, so it's easier to spot in a log file. But don't print the tool capabilities because they're unrelated to the prox out anyway and again it makes the output easier to spot. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-03-01tools: fix printing of tablet coordinatesPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-27tools: fix two comment typosPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-27Merge branch 'wip/log-function-rework'Peter Hutterer3-75/+87
2017-02-27tools: add mode group info to libinput-list-devicesPeter Hutterer1-1/+8
We don't cater for the special case of groups having a different number of modes, there is no hardware right now that does that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-24tools: add "--quiet" option to only log libinput messagesPeter Hutterer3-75/+87
Supresses any printf statements from the tool itself, i.e. it skips printing any of the events. Makes it easier to debug the internal state since it's not intermixed with a whole lot of messages about the events that are generated. Best combined with --verbose (yes, hilarious, isn't it...) Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Hans de Goede <hdegoede@redhat.com>
2017-02-21tools: print accel profiles up to 1000 mm/sPeter Hutterer1-1/+1
The range that matters is 0-200, maybe up to 400 if you account for really fast movements. But to match other, published, accel curves default to up to 1000 mm/s. It's easy enough in gnuplot to reduce the range. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-21tools: print the key as -1 for obfuscated keysPeter Hutterer1-0/+1
Missing from 8c1aa1de where we hid the human-readable parts but the keycode itself is still enough information to recover the typed bits. Print it as -1 as that keycode doesn't exist for real keys so it stands out nicely. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-20tools: size without decimals is good enoughPeter Hutterer1-1/+1
Sub-mm precision isn't needed for libinput-list-devices' size field. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-15tools: print errors as red, info as highlightedPeter Hutterer1-0/+18
makes it easier to filter out debugging messages Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-02-14tools: don't print device options on device removedPeter Hutterer1-47/+55
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-02-14tools: hide key codes by defaultPeter Hutterer3-4/+25
libinput-debug-events prints keycodes as they come in. This makes it dangerous to be run by users (especially in the background) because it will leak sensitive information as it is typed. Obfuscate the base set of keycodes by default, require a --show-keycodes switch to show it. The few times we actually need the keycodes, we can run the switch in the debugging tool. This does not affect keys outside of the main block on the keyboard (F-keys, multimedia keys). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2017-01-26Add a "switch" interface for parts of the SW_* rangeJames Ye2-0/+33
This will allow switch devices known to libinput to be exposed. Currently, this is SW_LID. libinput also handles switch events internally, e.g. a laptop touchpad will be disabled autmoatically when the lid is closed. This is transparent to the caller, although the caller will also receive the event. See https://bugs.freedesktop.org/show_bug.cgi?id=86223 This features is intended to be the main driver for the interface. Co-Authored-By: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: James Ye <jye836@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>