AgeCommit message (Collapse)AuthorFilesLines
2018-06-22gitlab CI: add Arch to the list of built imageswip/archPeter Hutterer1-0/+65
Signed-off-by: Peter Hutterer <>
2018-06-22gitlab CI: add pkgconfig to the listPeter Hutterer1-2/+2
It's pulled in by some dependency anyway, but for the sake of being explicit, pull it in. Signed-off-by: Peter Hutterer <>
2018-06-22util: use assert() instead of abort() for testing for size limitsPeter Hutterer1-1/+1
This way we can send a message to the user, a simple abort() isn't informative enough. Fixes Signed-off-by: Peter Hutterer <>
2018-06-22test: don't require a device for quirks parsing testsPeter Hutterer1-34/+34
Signed-off-by: Peter Hutterer <>
2018-06-21libinput-private: constify inline helpersKonstantin Kharlamov1-10/+10
Signed-off-by: Konstantin Kharlamov <>
2018-06-21gitlab CI: run ninja test tooPeter Hutterer1-0/+8
Fixes Signed-off-by: Peter Hutterer <>
2018-06-21test: skip the test-suite runner based on SKIP_LIBINPUT_TEST_SUITE_RUNNERPeter Hutterer1-0/+3
The current /dev/input/* check isn't reliable enough. So rather than adding extra heuristics prone to fail add an environment variable that says "do not run the test suite runner". All other tests are run since they do not require/modify any specific system setup. Fixes Signed-off-by: Peter Hutterer <>
2018-06-21tools: libinput-replay: set INPUT_PROP_* properties on the devicePeter Hutterer1-0/+4
Fixes Signed-off-by: Peter Hutterer <>
2018-06-21doc: update docs to use a .yml suffix for libinput recorded filesPeter Hutterer1-5/+5
Signed-off-by: Peter Hutterer <>
2018-06-21tools: libinput-record: use .yml suffix in the man pagePeter Hutterer1-2/+2
Makes things easier when users save it as yml file Signed-off-by: Peter Hutterer <>
2018-06-21test: fix zalloc max size testsPeter Hutterer1-2/+2
Missing from 9873d68bf1f93b424f920a8c095e3d3ee7d3fdf5 Signed-off-by: Peter Hutterer <>
2018-06-21tools: touch-size: update to use the device quirksPeter Hutterer2-12/+21
Fixes Signed-off-by: Peter Hutterer <>
2018-06-21tools: touchpad-pressure: update man page for device quirksPeter Hutterer1-1/+1
Fixes Signed-off-by: Peter Hutterer <>
2018-06-21Merge branch 'wip/measure-thumb-pressure'Peter Hutterer2-15/+99
2018-06-21doc: use @verbatim, not @code for shell commandsPeter Hutterer5-58/+58
Signed-off-by: Peter Hutterer <>
2018-06-21doc: update docs to drop hwdb referencesPeter Hutterer5-130/+82
In favour of the device quirks system. Fixes #55 Signed-off-by: Peter Hutterer <>
2018-06-20zalloc limit fix for libinput-recordSergiusz Michalik1-2/+2
2018-06-20tools: touchpad-pressure: add thumb pressure handlingPeter Hutterer1-2/+15
Fixes Signed-off-by: Peter Hutterer <>
2018-06-20tools: touchpad-pressure: switch to using quirks for pre-loading thresholdsPeter Hutterer1-11/+20
Fixes Signed-off-by: Peter Hutterer <>
2018-06-20tools: list-quirks: make the output easier to parsePeter Hutterer1-1/+1
Print the "has no quirks" to stderr to keep stdout tidy. Signed-off-by: Peter Hutterer <>
2018-06-20tools: list-quirks: print the value of the quirk tooPeter Hutterer1-1/+63
Signed-off-by: Peter Hutterer <>
2018-06-20data: lenovo: fix device name for the X1 Carbon 6thPeter Hutterer1-1/+1
Possibly a typo, who knows. Signed-off-by: Peter Hutterer <>
2018-06-20tools: list-quirks: add the thumb pressure threshold propertyPeter Hutterer1-0/+1
Signed-off-by: Peter Hutterer <>
2018-06-20tools: list-quirks: fix usage to read "libinput list-quirks"Peter Hutterer1-6/+4
Signed-off-by: Peter Hutterer <>
2018-06-20tools: list-quirks: compress a conditionPeter Hutterer1-49/+49
Signed-off-by: Peter Hutterer <>
2018-06-20quirks: drop the JUMPING_SEMI_MT modelPeter Hutterer2-3/+0
Removed from the udev properties in a55693f87c58c24b6866ed0f38c5470124be3df7 but survived here while the branch was in process. Signed-off-by: Peter Hutterer <> add more overrides for coverityPeter Hutterer1-0/+4
"/usr/include/math.h", line 381: error #20: identifier "_Float32" is undefined # define _Mdouble_ _Float32 Same for a few others. Since we don't actually need those anyway, we can just cast those to the some close-enough sizes. We don't have stdint.h in config.h and meson cannot have a custom #include line in the config object. So let's go with what does the job for now. Signed-off-by: Peter Hutterer <> Reviewed-by: Matheus Santana <>
2018-06-20util: abort if we try to allocate more than a MBPeter Hutterer2-1/+18
The ssize_t cast upsets coverity for some reason but we can be a lot more restrictive here anyway. Quick analysis of the zalloc calls in the test suite show the largest allocation is 9204 bytes. Let's put a cap on for one MB, anything above that is likely some memory corruption and should be caught early. Signed-off-by: Peter Hutterer <> Reviewed-by: Matheus Santana <> add a libinput list-devices run to the test suitePeter Hutterer1-7/+9
This will only catch a segfault or some other bug since we don't actually look at the output. But that's still better than not running it at all. Signed-off-by: Peter Hutterer <>
2018-06-20tools: list-devices: unref the udev devicePeter Hutterer1-2/+5
Fixes a memory leak that prevents us from running list-devices in valgrind. Signed-off-by: Peter Hutterer <>
2018-06-20tools: pass a valid grab parameter to list-devicesPeter Hutterer2-2/+3
My kingdome for a compiler warning. Or a scan-build warning. Or a coverity warning. Or anything... But no, nothing. Also make the open_restricted() more robust to a NULL userdata, because effectively that's what we were passing here. Fixes Introduced in 0a13223c39fdf0f079715bf83d498c0dcd9cf4f8 Signed-off-by: Peter Hutterer <>
2018-06-19CI: WIP: attempt to clean up the registry before leavingBenjamin Tissoires1-12/+116
According to multiple sources, referenced in The garbage collector of the registry won't clean up docker images that still have blob references. We should clean up the manifests instead of simply overwriting the tag. Note: this requires to set up a personal token with api access from the maintainers in the form of (for instance): "PERSONAL_TOKEN_bentiss" Reviewed-by: Peter Hutterer <> Signed-off-by: Benjamin Tissoires <>
2018-06-19CI: speed up the docker_check stageBenjamin Tissoires1-4/+4
There is no point in login in to the registry if there is no need to create a new docker image. Reviewed-by: Peter Hutterer <> Signed-off-by: Benjamin Tissoires <>
2018-06-19CI: do not pull images when checking for the creation dateBenjamin Tissoires1-4/+30
Reviewed-by: Peter Hutterer <> Signed-off-by: Benjamin Tissoires <>
2018-06-19doc: point to the gitlab ci file for a list of required packagesPeter Hutterer2-5/+25
Signed-off-by: Peter Hutterer <>
2018-06-19test: remove a compiler warningPeter Hutterer1-1/+1
Leftover from a previous iteration of this code - having a static but unnecessarily large size for dirname results in: ../test/litest.c:1251:38: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] snprintf(dest, sizeof(dest), "%s/%s", dirname, filename); ^ ../test/litest.c:1251:3: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096 snprintf(dest, sizeof(dest), "%s/%s", dirname, filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Peter Hutterer <>
2018-06-19quirks: add more assertion to avoid API misusage (v2)Peter Hutterer1-0/+2
Signed-off-by: Peter Hutterer <>
2018-06-18Revert "quirks: add more assertion to avoid API misusage"Peter Hutterer1-3/+0
Ooops, this clearly didn't get tested and now aborts libinput list-quirks Fixes This reverts commit 2c4f963b18ff7f36cc14994c8b18bc4e4754ddde.
2018-06-18test: pass the open mode to open(O_CREAT)Peter Hutterer1-1/+1
Found by coverity Signed-off-by: Peter Hutterer <>
2018-06-18quirks: add more assertion to avoid API misusagePeter Hutterer1-0/+3
Signed-off-by: Peter Hutterer <>
2018-06-18quirks: explicitly cast the log priorityPeter Hutterer2-4/+5
The values are the same and this is ABI so they will never change. Make the cast explicit for coverity's benefit. Signed-off-by: Peter Hutterer <>
2018-06-18quirk: remove unused variablePeter Hutterer1-3/+0
Also fixes a coverity complaint about incrementing an uninitialized variable. Signed-off-by: Peter Hutterer <>
2018-06-18gitlab ci: use GIT_DEPTH of 1Peter Hutterer1-0/+1
We don't need the full repo Signed-off-by: Peter Hutterer <>
2018-06-18Drop the udev hwdb model quirksPeter Hutterer5-669/+0
Replaced with the quirks files in merge commit 000ac14c27f1920fc84c0ecb1512eb7495e67634 Signed-off-by: Peter Hutterer <>
2018-06-18Remove circle.ymlPeter Hutterer1-143/+0
This has been replaced with the GitLab CI in the repository proper. Circle CI was ony ever run on a private github repo. Signed-off-by: Peter Hutterer <>
2018-06-18Merge branch 'wip/quirks-fixes'Peter Hutterer25-11/+170
2018-06-18data: don't disable the keyboard on any Thinkpad Yoga modelsPeter Hutterer1-4/+6
These (probably) all disable the mechanical keyboard anyway, so let's keep it enabled to be able to access the screen keys, if any. Signed-off-by: Peter Hutterer <>
2018-06-18data: add the alps firmware version LUTPeter Hutterer1-0/+12
Just in case we need it Signed-off-by: Peter Hutterer <>
2018-06-18data: put a 'do not edit' warning into all data filesPeter Hutterer23-0/+46
Signed-off-by: Peter Hutterer <>
2018-06-18data: add ALPS v8 trackpoint rangePeter Hutterer1-0/+8
Got lost in the hwdb to quirks conversion Signed-off-by: Peter Hutterer <>