-
81e6179b
by Alyssa Ross
at 2020-08-15T17:55:40+00:00
quirks: add Google Pixelbook (eve)
Signed-off-by: Alyssa Ross <hi@alyssa.is>
-
36f1c85b
by Peter Hutterer
at 2020-08-20T06:18:02+00:00
gitlab CI: drop Fedora 30
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
e926d3d9
by Peter Hutterer
at 2020-08-24T08:35:12+10:00
tools: fix a replay exception when a recording has an empty quirks list
Fixes https://gitlab.freedesktop.org/libinput/libinput/-/issues/520
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
9d729096
by Rosen Penev
at 2020-08-27T00:58:40-07:00
[clang-tidy] remove pointless return in void function
Found with readability-redundant-control-flow
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-
cd71a73d
by Rosen Penev
at 2020-08-27T01:00:31-07:00
[clang-tidy] fix inconsistent declarations
Found with readability-inconsistent-declaration-parameter-name
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-
46775204
by Rosen Penev
at 2020-08-27T01:17:24-07:00
[clang-tidy] do not use else after return
Found with readability-else-after-return
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-
9f8b9f5f
by Peter Hutterer
at 2020-09-04T09:54:49+10:00
doc: fix a wrongly named parameter
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
0c511215
by Peter Hutterer
at 2020-09-07T02:13:40+00:00
touchpad: ignore the ALPS jump to 4095/0
Some ALPS touchpad send the occasional 4095/0 event on slot 1 during
two-finger interaction before snapping back to the actual position of the
finger. There doesn't seem to be a specific heuristic to predict this so let's
hardcode those values. When detected, overwrite the current touch point with
the position of the last point. This will likely cause a small pointer jump
when the finger later moves to the real position but based on #492 this could
be a second later, so all bets are off anyway.
Fixes https://gitlab.freedesktop.org/libinput/libinput/-/issues/492
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
6e03da63
by weizhixiang
at 2020-09-07T09:50:07+00:00
remove extra paramenter in libinput-debug-events
Signed-off-by: weizhixiang <1138871845@qq.com>
-
852f7f8e
by Peter Hutterer
at 2020-09-09T11:36:07+10:00
meson.build: bump to 1.16.900
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
9fa57c6e
by Peter Hutterer
at 2020-09-09T11:36:07+10:00
meson.build: drop a meson < 0.43 condition
We require meson 0.45, so this can no longer be triggered.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
d007a815
by Peter Hutterer
at 2020-09-09T11:36:07+10:00
meson.build: we no longer install a hwdb file, so drop the directory define
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
a62e2b14
by Peter Hutterer
at 2020-09-09T11:36:07+10:00
Drop the trailing slash from the HTTP_DOC_LINK
It makes the printf statements nicer and we ne don't use it on its own
anywhere anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
5201ed8c
by Peter Hutterer
at 2020-09-09T12:36:09+10:00
meson.build: update libwacom dependency to 0.27 or newer
Released in 2017, that's enough waiting
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
5ef4329c
by Peter Hutterer
at 2020-09-09T12:36:28+10:00
doc/api: drop the doxygen/graphviz version checks
Both of our minimum versions were released in 2012, no more need to check..
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ad2216b4
by Peter Hutterer
at 2020-09-09T12:36:28+10:00
meson.build: bump minimum version to 0.47
It's been out for 2 years.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
c6f87ade
by Peter Hutterer
at 2020-09-09T13:57:39+10:00
meson.build: drop the separate cpp flags
All we care about for C++ is that we build.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
f00e3886
by Peter Hutterer
at 2020-09-09T13:57:39+10:00
quirks: fix a logical error checking for A..Z
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
7ad97698
by Peter Hutterer
at 2020-09-09T13:57:39+10:00
timer: fix a logic error checking the list node
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
f86d6a6e
by Peter Hutterer
at 2020-09-09T13:57:39+10:00
meson.build: add a few compiler warnings and make them compiler-conditional
These seem like a decent-enough set to have, only -Wlogical-op actually
produced a new warning.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
5ebd7bd1
by Peter Hutterer
at 2020-09-11T04:36:03+00:00
tools/replay: check the recorded udev properties against the local properties
Where a device is replayed locally for testing, its udev properties should
match the recorded properties. Otherwise the testing results will not be
reliable.
The exception here is the device group which we currently don't set for
emulated devices and even if we did, it may intentionally differ anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
bb84fcc7
by weizhixiang
at 2020-09-15T10:42:47+08:00
check return value for udev_new()
Signed-off-by: weizhixiang <1138871845@qq.com>
-
7f2989e2
by weizhixiang
at 2020-09-16T15:56:19+08:00
remove extra parameter in path_disable_device()
Signed-off-by: weizhixiang <1138871845@qq.com>
-
7dee6166
by weizhixiang
at 2020-09-16T23:32:51+00:00
check return value for libudev/udev_monitor_filter_add_match_subsystem_devtype
Signed-off-by: weizhixiang <1138871845@qq.com>
-
2d641e6b
by Peter Hutterer
at 2020-09-16T23:59:57+00:00
tools/record: add --grab option
Useful to record devices like power buttons, lid switches, etc.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
6e8aba93
by Peter Hutterer
at 2020-09-17T12:38:53+10:00
tools/record: prefix the device list with a # character
Too many recordings end up with the device list at the top when users redirect
stderr and stdout to the recordings file. This breaks yaml parsing and
requires manual removal of the first few lines.
Avoid this by prefixing the lines with a command character, this way the yaml
stays correct.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
1303adbf
by Peter Hutterer
at 2020-09-17T12:38:53+10:00
tools/record: compress a set of printfs into one
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
0e9fe09f
by Peter Hutterer
at 2020-09-22T17:35:41+10:00
tablet: group the pressure related bit into a substruct
No functional changes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
5eb294e4
by Peter Hutterer
at 2020-09-22T17:35:41+10:00
test: remove duplicate tool type
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
e8860fcf
by Peter Hutterer
at 2020-09-22T17:35:41+10:00
test: don't run the tool switch test on tablets that require forced prox out
This test only worked because we're emulating events that the device never
sends that way. Just skip the test, devices that require a forced prox out
probably don't handle (or even have) erasers ayway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
06e7adfc
by Peter Hutterer
at 2020-09-22T17:35:41+10:00
tablet: split a ternary condition into a normal if else for readability
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
df275970
by Peter Hutterer
at 2020-09-22T17:35:41+10:00
test: auto-assign the tool type for tablet tests
The current tool type test merely sends BTN_TOOL_RUBBER (and others) manually
and expects libinput to do the right thing. This only tests the perfect
sequence but not test weird devices that behave differently on a tool type
switch.
So let's fix this by setting the tool type as property on the libinput test
device itself, and then emulate the tool switch through litest.
For special devices this will need extra callbacks, this is just the initial
framework to handle those buttons.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
5cda7dfa
by Peter Hutterer
at 2020-09-22T17:35:41+10:00
test: move the x/y coords a bit when testing tool type switches
More realistic, there's no way you can get the x/y coordinates exactly the
same when moving the pen back into prox.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
d35f1319
by Peter Hutterer
at 2020-09-22T17:35:41+10:00
test: set the elan test device to always double up on tool bits
This is the device from
https://gitlab.freedesktop.org/libinput/libinput/-/issues/259 which sets
BTN_TOOL_PEN in addition to the real tool. Integrate this into the test device
proper so it always does this to catch various outliers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
5e6d03ff
by satrmb
at 2020-09-25T06:01:28+00:00
touchpad: track the release of all fingers in a three-finger tap
This is in preparation for three-finger tap-and-drag, which will start from
a completed tap with no fingers down.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
0e569077
by satrmb
at 2020-09-25T06:01:28+00:00
touchpad: allow tap-and-drag for two-finger and three-finger taps
This commit duplicates the tap states responsible for tap-and drag (TAPPED
and all DRAGGING* states) to cover two-finger and three-finger taps;
the code for the new states is shared with the existing machinery for
one-finger tap-and-drag.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
44912aa3
by satrmb
at 2020-09-25T06:01:28+00:00
touchpad: fix multitaps with more than one finger while dragging is enabled
Also permits any number of fingers in the tap that terminates drag-lock.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
f2faf370
by satrmb
at 2020-09-25T06:01:28+00:00
test: expand drag and multitap tests to tap with up to 3 fingers
This covers the addition of two- and three-finger tap-and-drag,
as well as the fix for multitaps with more than one finger in later taps
and the multifinger enhancement to the tap ending drag-lock.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
03e24309
by satrmb
at 2020-09-25T06:01:28+00:00
doc: update touchpad tapping state machine diagram
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
f0997536
by Kai-Chuan Hsieh
at 2020-09-28T12:12:51+08:00
quirks: Customize ALPS i2c touchpad palm detect pressure threshold
ALPS i2c touchpad support ABS_PRESSURE and ABS_MT_PRESSURE capabilities,
The default threshold 130 is too easy to across while finger movement.
It will cause the cursor stalled after the threshold is achieved, which
impacts user experience.
Test with some ALPS touchpads 0488:101A, 0488:101D, 0488:101E, the value
180 is good on those platforms.
Signed-off-by: Kai-Chuan Hsieh <kaichuan.hsieh@canonical.com>
-
788c7179
by Peter Hutterer
at 2020-09-29T17:48:31+10:00
doc/api: fix the doxygen output handling
Using output: ['.'] broke ninja after ninja clean - it removed the whole
directory and thus the meson-generated configure_files (i.e. all the
doxygen sources we copied). ninja didn't know how to build those.
Fix this by rearranging the doxygen output to build into a different
directory now and setting the output to that. This doesn't exactly *fix*
things since that directory is no longer removed during ninja clean, but at
least the build no longer fails.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ec939611
by Davide Depau
at 2020-10-05T20:57:05+00:00
quirks: fix force-press on Apple Magic Trackpad 2
The current defaults detect force presses as palm or thumb.
The values provided here work for a 99% accurate palm/thumb detection
and provide close zero false positives in my tests.
Signed-off-by: Davide Depau <davide@depau.eu>
-
7244e36b
by Peter Hutterer
at 2020-10-06T16:12:17+10:00
tools: only call libinput_dispatch() once per poll
This is a closer approximation of all callers anyway, and it makes it easier
to debug which events are handled per libinput_dispatch() call.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
4f282688
by Peter Hutterer
at 2020-10-06T16:12:17+10:00
tools: print the libinput_dispatch() counter for debugging messages
The messages with priority DEBUG refer to the various internal state machines
updating, so it's useful to know when they did so. Let's count up every time
we trigger libinput_dispatch() so we know how the messages group together..
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
82bf473d
by Peter Hutterer
at 2020-10-07T07:22:52+10:00
tools: color-group the debugging messages
Alternate between two randomly-chosen colors for each batch of debug messages
to make it easier to visually group the two.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
442b7b4e
by Peter Hutterer
at 2020-10-07T07:27:13+10:00
gitlab CI: add git depth to the coverity job and save the artifacts
A default git depth of 1 means git describe won't work, let's set it to
something high enough that we should always have at least one tag in the
history.
And save the artifacts after the coverity compilation, where the submission
fails for whatever reason we can just resubmit those manually without having
to rebuild the whole image locally.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
a80fe325
by Peter Hutterer
at 2020-10-07T09:38:39+10:00
fallback: expand the range of valid keys
The kernel has since added a bunch of keys in the range between
KEY_ONSCREEN_KEYBOARD and BTN_TRIGGER_HAPPY. Let's designate those as keys so
we handle them correctly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
546b7623
by Peter Hutterer
at 2020-10-08T12:45:10+10:00
test: fix the tablet relative calibration test
This test only worked because axis smoothing mangled the coordinates, moving
from 5/10 to 10/20 cannot possibly have a dx of zero.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
b121c350
by Peter Hutterer
at 2020-10-08T12:45:10+10:00
test: fix the tip one axis test
Only worked because of axis smoothing mangling the coordinates - x is not
supposed to change where we're moving along a vertical line. And the same for
y and horizontal lines.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
08999899
by Peter Hutterer
at 2020-10-21T09:09:50+10:00
Print the event name when using an invalid event type
Where an invalid event type is passed to a function (e.g. a keyboard event to
a touch-related function) we used to only print the event code. That makes
debugging less obvious than necessary, so let's print the event name too.
This requires the function to be moved below event_type_to_str()
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
1ebdc605
by Peter Hutterer
at 2020-10-21T09:09:50+10:00
tools/debug-events: rework touch event printing
Previously, touch up events did not contain the slot number which makes the
logs ambiguous (e.g. see the one in #532). Fix that, and since doing so would
require extra conditions anyway get rid of the current with/without coords
function and just handle it all inside one function instead.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
fa0c3ee3
by Peter Hutterer
at 2020-10-23T12:53:35+10:00
evdev: quirks_get_tuples can deal with a NULL quirks
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
30502dee
by Peter Hutterer
at 2020-10-23T12:54:54+10:00
evdev: localize two variables during quirks handling
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
e3c4ff38
by Peter Hutterer
at 2020-10-23T13:35:50+10:00
quirks: add AttrEventCodeEnable as counterpoint to the disable one
Currently unused, but let's get this in because we may need this very soon for
broken tablets.
Enabling EV_ABS axes requires an absinfo struct - we default to a simple 0-1
axis range for those as the most generic option. Anything more custom will
need more custom treatment when we need it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
e882bd02
by Peter Hutterer
at 2020-10-23T13:35:50+10:00
quirks: add AttrInputPropEnable and Disable
The latter requires libevdev 1.10 but since that'll take a while to filter
into our various CI systems, let's make it conditional.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
b925a087
by Peter Hutterer
at 2020-10-23T13:35:50+10:00
quirks: switch the models with missing buttonpad to use the new attr
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
69959c8a
by Scott Jann
at 2020-10-23T13:35:50+10:00
quirks: add quirk for Dell Precision 7550/7750 touchpad
Signed-off-by: Scott Jann <sjann@knight-rider.org>
-
5faa3b7a
by Peter Hutterer
at 2020-10-28T02:58:03+00:00
evdev: reduce the "your system is slow" warning to 5 per hour
Two cases where this can happen: system is currently slow and delaying events,
n which case we'll get a burst and it'll show up in the log files anyway. Or
the system is generally slow and we get these warnings all the time. In the
latter case, let's not spam the log.
Fixes #533
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
11d517f9
by Peter Hutterer
at 2020-10-28T02:58:03+00:00
doc/user: update the timer offset warning for the new "too slow" message
Related #533
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
61947b33
by Peter Hutterer
at 2020-10-28T03:20:06+00:00
gitlab CI: trigger the wayland website pipeline directly
See the documentation here:
https://docs.gitlab.com/ee/ci/multi_project_pipelines.html#trigger-a-pipeline-when-an-upstream-project-is-rebuilt
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
3144d3af
by Peter Hutterer
at 2020-11-03T14:06:55+10:00
gitlab CI: remove a now-unused VERSION variable
This became obsolete with FDO_DISTRIBUTION_VERSION being autogenerated by
templates.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
87e37453
by Peter Hutterer
at 2020-11-03T14:07:08+10:00
gitlab CI: update to latest ci-templates
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
024162e6
by Peter Hutterer
at 2020-11-03T14:07:54+10:00
gitlab CI: update the comments
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
34fe17f7
by Peter Hutterer
at 2020-11-10T14:27:22+10:00
Fix the termination of the readlink result
nread is the number of bytes put into the buffer, let's terminate it there
instead of one byte over. This only worked because execdir was initialized to
zero.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
cfd8e6c7
by Peter Hutterer
at 2020-11-10T14:27:22+10:00
Fix a few coverity complaints
All minor:
- execdir does not need initialization, it's not used until written to
- 'newest' could be NULL
- zalloc(-1) confuses coverity
- 't' is never used in that test
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
2c50ffab
by Peter Hutterer
at 2020-11-10T14:27:22+10:00
tools: print the AttrEventCodeEnable and AttrInputPropEnable/Disable quirks
Introduced in e3c4ff3 and e882bd02
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
d7ba7b18
by Peter Hutterer
at 2020-11-10T22:44:15+00:00
gitlab CI: pass MESON_ARGS down to the wayland-web job
Now that we're firing the wayland website generation as trigger, we're
automatically passing down the variables to the pipeline. Let's pass down
something sensible, we already had one issue with our space-separated
'build dir' and let's not require more than absolutely necessary to build
the docs.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ef5919cd
by Peter Hutterer
at 2020-11-12T09:31:37+10:00
gitlab CI: switch to the vmctl script
See ci-templates commit acda94e139030dc2caa058118956225e55bbec5f, it replaces
vm interactions with vmctl start/stop/exec and sets up an ssh config for the
hostname 'vm'.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
c23af9e1
by Peter Hutterer
at 2020-11-12T09:31:37+10:00
gitlab CI: use a template for the various ci-fairy jobs
And switch to python:alpine, an image that is tiny and sufficient for the job
we want.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ed2e791f
by Peter Hutterer
at 2020-11-12T09:31:37+10:00
gitlab CI: Fedora only needs git-core, not git
The other lines are just for indentation to match up
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
b2dbe196
by Peter Hutterer
at 2020-11-12T09:31:37+10:00
gitlab CI: switch the coverity job to Debian stable
coverity doesn't work with gcc 10, it fails with "invalid GNU version
number: 201". F31 is about to be EOL but we can't use to F32 or later.
So let's switch to debian stable instead, that one will stick around for a bit
longer.
Debian packages are the same as the Ubuntu packages
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
05df169d
by Peter Hutterer
at 2020-11-12T09:31:37+10:00
gitlab CI: rename FREEBSD_PKGS to FREEBSD_PACKAGES for consistency
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
eef14179
by Peter Hutterer
at 2020-11-12T09:31:37+10:00
gitlab CI: update Ubuntu to current distros
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
833b8d2d
by Peter Hutterer
at 2020-11-12T09:38:28+10:00
gitlab CI: remove unused custom ubuntu install script
Looks like this has been obsolete since
4df2ac731ff3ae420081b3e243fc2cec636bdfd6 where it stopped passing in the
packages.
And a bug caused the template to checked the "version" against "ubuntu", so
the script hasn't actually been included in any job anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
8bb34dce
by Peter Hutterer
at 2020-11-12T09:39:26+10:00
gitlab CI: update to latest templates
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
8691b83d
by Peter Hutterer
at 2020-11-12T10:51:20+10:00
gitlab CI: generate the package lists from the config.yaml
The string list is getting too confusing.
This gets rid of the separate packageset for qemu. That packageset only
differed by adding valgrind, we can just keep that in the same list.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
dd475309
by Peter Hutterer
at 2020-11-16T13:30:27+10:00
gitlab CI: add curl to the debian image
The coverity job on debian needs curl.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
b7df846a
by Peter Hutterer
at 2020-11-24T07:05:57+10:00
gitlab CI: use the CI-fairy image
This removes the need to pull a docker image for each of those stages.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
60e09953
by Peter Hutterer
at 2020-11-24T07:05:58+10:00
gitlab CI: use ci-fairy generate-template --verify
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
bbd1be7a
by Peter Hutterer
at 2020-11-24T07:05:58+10:00
gitlab CI: check commits/CI template generation before spinning up containers
If either of those fails, no point in trying to generate containers.
And move the MR check down to the deploy stage where it belongs.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
cd37dcfa
by Peter Hutterer
at 2020-11-24T23:47:31+00:00
udev: update rules to handle bind/unbind events
Summary: we expect add, change or remove but kernel 4.12 added bind and
unbind. These events were previously discarded by udevd. Our rules should
handle any event *but* remove, so update as suggested in the announce email
linked below.
For a longer explanation, see the system 247rc2 announcement
https://lists.freedesktop.org/archives/systemd-devel/2020-November/045570.html
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
a506d092
by Peter Hutterer
at 2020-11-25T03:54:47+00:00
tablet: disable smoothing for AES devices
Data in
https://gitlab.freedesktop.org/libinput/libinput/-/issues/225#note_379034
suggests that AES devices have lower noise than the older EMR
devices, so let's try disabling it for those devices.
We can't directly get the AES devices in libinput unless we want to add a
whole bunch of quirks for the various vid/pid combinations. But we can get
that info from libwacom, primarily because we know that libwacom will list all
known AES pens for any device. So we can check for one that we know of (0x11)
and if it's in the list, the tablet is an AES tablet.
Setting the history size to 1 means we never do any actual smoothing.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
56f4af51
by Peter Hutterer
at 2020-12-08T09:59:03+10:00
test: add a test for model quirk overrides
Related to #545
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
4ce0d41b
by Jef Driesen
at 2020-12-09T08:43:28+01:00
quirks: add quirk for Dell XPS 15 9500 touchpad
The Dell XPS 15 9500 has a large touchpad without any visible markers
for the touchpad buttons. Since the ModelTouchpadVisibleMarker quirk is
enabled by default for all Dell touchpads, the middle button area ends
up too small. Disable the quirk again for this specific model.
Fixes #545
Signed-off-by: Jef Driesen <jefdriesen@telenet.be>
-
61d34276
by Peter Hutterer
at 2020-12-09T21:22:32+10:00
test: plug a memleak in a quirks test
Introduced in 56f4af51eca4ceec30e382d0d7c9972a57fd1aa2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
62a0b170
by Peter Hutterer
at 2020-12-14T18:57:51+10:00
test: plug a leak in the tablet smoothing test
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
bfa077d2
by Peter Hutterer
at 2020-12-14T18:57:51+10:00
gitlab CI: don't allow VM test failures
The VM runs are much more reliable now and where they do fail, they can be
retriggered.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
535f92a5
by Peter Hutterer
at 2020-12-14T09:32:13+00:00
touchpad: increase the jump detection interval to 30ms
On serial touchpads it's common enough that frames slow down tofrom the usual
12ms to 24ms. That's too close to our 25ms cutoff so if we have a minor delay,
we end up missing out on jump detection.
Fixes #541
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
aec8e0b4
by Blaž Hrastnik
at 2020-12-15T12:42:25+09:00
Match all Surface (Pro/Laptop/Book) devices.
Signed-off-by: Blaž Hrastnik <blaz@mxxn.io>
-
306b00a1
by Peter Hutterer
at 2020-12-15T15:49:17+10:00
doc/user: document that we're only using internal devices for DWT
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
8c5a850d
by Peter Hutterer
at 2020-12-16T10:47:58+10:00
doc: somewhat document the write_open for lid switches
Not a full documentation but slightly more information than before. This is
too niche to document it fully, we're only using it on one device anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
18c92652
by Torstein Husebø
at 2020-12-16T22:08:23+01:00
treewide: fix typos
Signed-off-by: Torstein Husebø <torstein@huseboe.net>
-
ba0aed7b
by Peter Hutterer
at 2021-01-04T12:02:46+10:00
gitlab CI: fix flake8 complaints
tools/libinput-measure-fuzz.py:212:15:
F523 '...'.format(...) has unused arguments at position(s): 1
But the E741 is better turned off in general:
tools/libinput-measure-fuzz.py:319:29: E741 ambiguous variable name 'l'
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
b43dc88c
by Peter Hutterer
at 2021-01-04T12:02:46+10:00
gitlab CI: use Fedora 33
This requires the latest CI templates for the updated mkosi fixes.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
2ed0f24e
by weizhixiang
at 2021-01-06T17:46:14+08:00
check return value for libudev/udev_device_get_action
Signed-off-by: weizhixiang <1138871845@qq.com>
-
f2baea50
by Peter Hutterer
at 2021-01-07T22:48:35+00:00
doc/user: list the known package repositories for libinput from git
Because dnf install is a lot easier than building from git where one just
wants to test the latest libinput.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
53595cb2
by Peter Hutterer
at 2021-01-14T13:42:59+10:00
quirks: disable pressure on the Lenovo Yoga 9i touchpad
This touchpad is a true pressurepad and the pressure axis gives us physical
pressure down. Using it as contact size gives flaky touch detection, so let's
just disable the axis until we do something with that value.
Fixes #562
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
2ea65898
by weizhixiang
at 2021-01-18T17:46:17+10:00
modify macro streq/strneq for check one null pointer
Signed-off-by: weizhixiang <1138871845@qq.com>
Minor modifications applied by Peter Hutterer <peter.hutterer@who-t.net>
-
c0364f23
by Jonas Ådahl
at 2021-01-28T08:32:03+01:00
doc: fix IRC channel name
It said #wayland-devel, but it's #wayland.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
1dbdef8f
by Peter Hutterer
at 2021-01-28T21:02:45+00:00
Use python black for all pyhon file formatting
Let's enforce a consistent (and verifiable) style everywhere.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
f2133ef0
by Peter Hutterer
at 2021-01-29T07:31:46+10:00
tools/record: initialize all pollfds in the same loop
Minor tidying up the code, set the default values for all fds in the same loop
instead of having it split to wherever the fd is created.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
b1f8ea0a
by Peter Hutterer
at 2021-01-29T07:31:46+10:00
tools/record: narrow the scope of two variables
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
773287e7
by Peter Hutterer
at 2021-01-29T07:31:46+10:00
tools/record: use a pointer to the signalfd poll entry
No functional changes, this makes the code slightly more readable, especially
once we start adding more "special" fds.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
0b8ad776
by Peter Hutterer
at 2021-01-29T07:31:46+10:00
tools/record: use a pointer to the libinput fd poll entry
No functional changes, this makes the code slightly more readable, especially
once we start adding more "special" fds.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
99255942
by Peter Hutterer
at 2021-01-29T07:31:46+10:00
tools/record: print the wall clock time every few seconds
For long-running recordings it's useful to know what the actual time was when
a particular event occured. A user can simply check the clock or system logs
for the time and thus know which portion of the recording to focus on.
Let's print the time into the recording, every 5 seconds (aligned at the 5,
10, 15s marks) or, if no events occured in the last 5 seconds, before the next
event. This granularity should be enough to identify the interesting parts of
a recording.
Let's print this as a comment until we have a use-case that requires parsing
this data.
The timer is the simplest approach, it just repeats at a fixed 5 seconds
interval from startup. There may be time drift, we can fix that if needed..
Fixes #560
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ff598741
by Peter Hutterer
at 2021-01-29T08:06:53+10:00
tools: add a tool to analyze the finger count from a recording
Given a libinput recording, print the timestamps of any finger changes, i.e.
which slots are currently logically down. For example:
Timestamp | Rel time | Slots |
--------------------------------------
0.000000 | +0.000s | + | | | |
0.454631 | +0.454s | | | | |
5.065401 | +4.610s | + | | | |
6.140281 | +1.074s | + | + | | |
7.410377 | +1.270s | | + | | |
7.420200 | +0.009s | | | | |
11.233108 | +3.812s | + | + | | |
11.850206 | +0.617s | | | | |
13.827740 | +1.977s | + | | | |
14.704027 | +0.876s | + | + | | |
16.050577 | +1.346s | + | | | |
16.905186 | +0.854s | | | | |
This data is available with the per-slot-delta tool but the output here is
more compressed, making it easier to detect stuck fingers. Pressure
thresholds are not currently supported.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
3f15bc39
by Gary Wolfe
at 2021-01-29T02:42:12+00:00
Dell touchpad was too sensitive with default settings
The touchpad for the Dell Inspiron 15R N5110 was too sensitive with default settings, leading to excessive movement when lifting finger.
Fixes #565
Signed-off-by: Gary Wolfe <avidgamefan@yahoo.com>
-
affc3d92
by Peter Hutterer
at 2021-02-01T19:14:10+10:00
libinput 1.16.901
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
14bec5b6
by Peter Hutterer
at 2021-02-02T11:54:14+10:00
quirks: improve the README
Make the headers valid markdown and reword/reformat a few other things
to make it clearer and easier to read.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
4c4a0e1f
by Peter Hutterer
at 2021-02-03T17:09:09+10:00
doc/user: some whitespace fixes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
081f9146
by Peter Hutterer
at 2021-02-03T17:09:09+10:00
doc/user: expand the explanations on how to submit a merge request
I keep answering this in bug reports, much easier to just have a link to
copy/paste.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ff7c52d7
by Peter Hutterer
at 2021-02-03T07:45:12+00:00
quirks: reword the requirements section in the quirks README
Change the wording from "these will fail" to "this must be followed" which is
easier to understand. And add the requirement for uppercase hex numbers as
enforced since c412924003b3154.
Related #568
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
4422e957
by Peter Hutterer
at 2021-02-05T16:04:54+10:00
test: don't require root to list tests
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
61e41df9
by Peter Hutterer
at 2021-02-08T03:38:26+00:00
touchpad: disable the pressure axes wherever the resolution is nonzero
The kernel/udev set the pressure resolution to nonzero to indicate the value
is in a known scale (units/g). We use that information to disable the
pressure axis on such devices - real pressure cannot be translated to
contact size.
For the kernel patch see:
https://www.spinics.net/lists/linux-input/msg71237.html
Fixes #569
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
d1f900f7
by Peter Hutterer
at 2021-02-08T04:28:42+00:00
Create /etc/libinput on install
Users that need to create the local-overrides.quirks are sometimes hesitant to
do so because /etc/libinput doesn't exist by default. Let's create it on
install.
Related #568
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
9f594664
by Gablegritule
at 2021-02-09T09:23:01+10:00
quirks: add pressure ranges for the Dell Latitude E5510 TouchPad
The default setting makes the "Dell Latitude E5510 TouchPad" too sensitive and
consequently difficult to use.
Note that the the size of the TouchPad is detected to be higher than it is
(the side-bars are half out of the TouchPad), see
https://github.com/systemd/systemd/pull/18493 for the hwdb overrides for this
device.
Signed-off-by: Gablegritule <guillet.gabriel@laposte.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
0dd8b972
by наб
at 2021-02-09T13:50:57+01:00
totem: fix suspension-as-addition and resumption-as-removal in interface
Ref: https://gitlab.freedesktop.org/libinput/libinput/-/commit/bf4277623f7c24286b9f1e4b3ace51fbb5bb6a98#note_793592
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
-
e51be409
by наб
at 2021-02-09T13:52:20+01:00
totem: separate X/Y resolution from touch size in discriminator
Ref: https://gitlab.freedesktop.org/libinput/libinput/-/commit/bf4277623f7c24286b9f1e4b3ace51fbb5bb6a98#note_793589
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
-
51da77f9
by Peter Hutterer
at 2021-02-11T02:56:49+00:00
gitlab CI: rename the VM stage "test-suite"
A much more sensible name than "vm"
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
1d714e68
by Peter Hutterer
at 2021-02-11T15:53:53+10:00
test: don't set the log handler 10 times
Once is enough, we don't need to set it inside the loop.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
c83c739a
by Peter Hutterer
at 2021-02-11T15:54:17+10:00
tests: drop the duplicate test for pointer event conversion
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
6c32f780
by Peter Hutterer
at 2021-02-12T07:35:58+10:00
tools/record: add some curly braces
list_for_each is just a fancy for loop but it looks weird without braces.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
595d8704
by Peter Hutterer
at 2021-02-12T07:35:58+10:00
test: init an array to zero to silence scan-build
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
f6c05ae4
by Peter Hutterer
at 2021-02-12T07:35:58+10:00
tools/record: remove a useless assignment
It's overwritten a few lines south of here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
3eb428ef
by Peter Hutterer
at 2021-02-12T07:35:58+10:00
gitlab CI: run the scan-build analysis jobs in script
after_script ignores any exit status so we can't actually fail the job here
Fixes #573
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
db0a2be1
by Peter Hutterer
at 2021-02-12T11:04:46+10:00
test: move a helper function close to its caller
This is a custom log function for one single test, let's move it next to that
test.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
aed15dd7
by Peter Hutterer
at 2021-02-12T11:04:57+10:00
test: wrap the litest user data into a struct
litest itself requires the libinput user_data to be set to its own context
struct (see close_restricted). A test that needs its own user_data must not
override this struct - if the context is accessed during libinput_dispatch()
we'll get memory corruption.
See #574
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
d838e3a3
by Peter Hutterer
at 2021-02-12T11:05:38+10:00
test: use motion events to check the "system is too slow" message
Using buttons for this test can trigger debounce warnings instead (in
addition?) to the warning we actually check for. Let's use motion events
instead and double the loop while we're at it so we have double the chance of
triggering at least one warning.
Fixes #574 for unknown reasons
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
8ab2581d
by Peter Hutterer
at 2021-02-12T14:31:48+10:00
gitlab CI: make the test suite names a list
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
e6ed506d
by Peter Hutterer
at 2021-02-12T14:31:50+10:00
utils: add a trunkname() function to extract the trunk of a filename
/path/to/foo.bar returns "foo"
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
d3115f48
by Peter Hutterer
at 2021-02-12T15:24:15+10:00
test: drop the custom group names
The group names are forced by check (they are called suite names there) but
for our test suite they provide very little benefit. Much easier to just
use the filename a test is in as group name.
This removes the pure substring match for --filter-group, it's now fnmatch
only. group names are short enough that the typing isn't an issue and we don't
want to run tests twice (e.g. 'pad' is also in 'touchpad').
This patch caused #574 until it got fixed in d838e3a3a4c
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
d0d29942
by Peter Hutterer
at 2021-02-12T15:24:15+10:00
gitlab CI: add a job to make sure we're running all test suites
Only needs to run when meson.build or the CI script update
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
03280de5
by Peter Hutterer
at 2021-02-15T15:22:42+10:00
doc/user: generate the required package list for the CI distributions
Use yq to extract the package list from the CI configuration, then dump that
into the user docs. This provides the long-requested commands to install all
dependencies without the maintenance effort or risk of going stale.
Note that we are *not* building this in the CI, it's just not needed.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
a91ecbde
by satrmb
at 2021-02-15T05:46:46+00:00
touchpad: stretch the tap-and-drag timeout a bit depending on finger count
Some users reported problems triggering multi-finger tap-and-drag,
with reliability decreasing as the finger count increased.
This is plausible because they may shift towards moving the whole hand
up and down, which obviously takes more time than just a finger.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
4ccdacaf
by satrmb
at 2021-02-15T05:46:46+00:00
touchpad: permit only one finger on the touchpad at the start of a tap-drag
This only affects the actual dragging part of the tap-and-drag interaction;
n-finger tap-and-drag is supposed to be performed with a n-finger tap
followed by a 1-finger drag.
Allowing a second finger in the middle of a drag is still necessary for a
finger swap, which users may need in long-distance drags, especially when
drag-lock is disabled.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
37e6e89e
by satrmb
at 2021-02-15T05:46:46+00:00
test: fix a few missing or wrong drag-lock timeouts
These had no consequences apart from occasional "system is too slow" messages,
because the test suite's shorter tap timeout is just barely long enough
for drag-lock, and/or because litest_assert_button_event waits for an event
anyway.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
da5bdd20
by Peter Hutterer
at 2021-02-15T16:28:44+10:00
gitlab CI: move the no-libwacom test suite into its own stage
Easier to spot visually in the GUI that way
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
a0d842a6
by Peter Hutterer
at 2021-02-15T17:13:46+10:00
doc: update the docs with a note regarding multifinger dragging
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
b8d41976
by Peter Hutterer
at 2021-02-15T17:34:51+10:00
test: print the event type on mismatch
We already have a helper function for this, let's use it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
06ef838b
by Peter Hutterer
at 2021-02-15T18:03:34+10:00
test: drop the needless base event conversion
This was just there to avoid unused variable warnings but the simpler approach
to that is to just not assign a variable in the first place.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
e96852ac
by Peter Hutterer
at 2021-02-15T18:03:34+10:00
test: add test cases for 2/3 finger movement after tap
We have two behaviors here:
- tap + 2fg -> scrolling
- tap + 1fg move + 2f down -> dragging
Let's document this. The 3fg case only has one situation, so let's test that.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
115a8ff1
by Peter Hutterer
at 2021-02-16T13:10:18+10:00
libinput 1.16.902
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
dc936707
by satrmb
at 2021-02-17T08:14:11+01:00
test: add test cases for 2/3 finger movement after drag-lock
Same as after a tap, just with a short drag between tap and 2/3 finger movement.
Also fixes a finger coord typo in one of the previously added test cases.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
-
82e974ef
by Peter Hutterer
at 2021-02-18T01:00:53+00:00
meson.build: drop the dummy config data and use copy: true instead
We require the meson version this was introduced in, so let's use it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
1b8dd970
by Peter Hutterer
at 2021-02-18T01:00:53+00:00
meson.build: consolidate all man pages
They all use the same configure_file() process, so let's do them all in a
loop.
Exceptions are the test-suite man page.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ea4f89bd
by Peter Hutterer
at 2021-02-19T09:09:53+10:00
tools/record: correct the evdev data format in the man page
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
a8597e3a
by Peter Hutterer
at 2021-02-19T09:09:53+10:00
tools/record: de-inline our functions
Let's leave this up to the compiler, the usual side-effect of inline (compiler
doesn't complain about an unused static function) doesn't apply here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
4b0f2009
by Peter Hutterer
at 2021-02-19T09:09:53+10:00
tools/record: fix outdated comment
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
201b81eb
by yuri1969
at 2021-02-19T22:14:38+01:00
Fix worng quirk name in doc
The doc mentioned 'AttrTouchPressureRange' quirk but `src/quirks.c` defines
'AttrPressureRange' instead. This led to unknown quirk name errors.
Signed-off-by: yuri1969 <1969yuri1969@gmail.com>
-
59ca9718
by Peter Hutterer
at 2021-02-22T14:53:41+10:00
tools/record: print a header as first line
To make the file format easier to detect
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
f3034264
by Peter Hutterer
at 2021-02-23T10:43:52+10:00
tools/replay: search for the first event with a timestamp
When running with --with-libinput, the first event is the DEVICE_ADDED event
for our device. Those events do not have a timestamp.
We have to find the first event in the recording with a timestamp instead..
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ff871517
by Peter Hutterer
at 2021-02-23T10:53:31+10:00
tools/replay: Enter quits if there are no events
If we have no events in any of the recorded devices, state that this is the
case and make Enter simply quit instead of a pointless while loop.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
fd9d165a
by Peter Hutterer
at 2021-02-23T10:56:53+10:00
tools/record: simplify the behavior to emulate Python's join()
Instead of a boolean "is_first", just change the separator.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
671eb8cb
by Peter Hutterer
at 2021-02-23T10:56:53+10:00
utils: add a safe version of basename
So we don't need to worry about the libgen.h include game.
And we can switch trunkname over to that, making it a bit simpler.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
ca906799
by Peter Hutterer
at 2021-02-23T10:56:53+10:00
tools/record: use safe_basename() to get to the hid report descriptor
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
d8b64d41
by Peter Hutterer
at 2021-02-23T10:56:53+10:00
tools/record: reword parts of the man page
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
4a7dece8
by Peter Hutterer
at 2021-02-23T10:56:53+10:00
tools/record: switch record over to using epoll
Using poll means more difficult fd management, epoll (together with am
modified version of the libinput_sources) makes this a lot easier by simply
using dispatch.
This means we are no longer reliant on a specific file descriptor order in the
poll array.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
627a3dd2
by Peter Hutterer
at 2021-02-23T10:56:53+10:00
tools/record: use a helper function to get the next event for a device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
9323cdfc
by Peter Hutterer
at 2021-02-23T13:30:42+10:00
meson.build: build libinput replay as well
Just like the other python-based tools it's just a basename copy, so let's be
consistent here and have all tools perform that way.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
6a6435ae
by Peter Hutterer
at 2021-02-23T13:46:00+10:00
tools: add a tool to print a libinput recording as a table
This makes it easier to visualize changes in various axes or key states that
should not be there, doubly so for long recordings.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
1b00eb5e
by Peter Hutterer
at 2021-02-23T16:55:58+10:00
tools/record: fix two coverity complaints
In both cases we only read to drain the fd, we don't care about the return
value.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
9477d91d
by Peter Hutterer
at 2021-02-23T19:02:45+10:00
libinput 1.17.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
1ca2f115
by Pedro Ribeiro
at 2021-03-24T14:44:29+10:00
Add Lenovo Legion 5 keyboard to 50-system-lenovo.quirks
Signed-off-by: Pedro Ribeiro <pedrib@gmail.com>
(cherry picked from commit 5e69c5f9ae793430d8ad07592d3e5bbd1d4e0e5b)
-
7624497d
by Peter Hutterer
at 2021-03-24T14:44:31+10:00
completion: add missing libinput analyze subtools to the zsh completions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 40b83b11058bcc4c02ea3e7b631c8777c01b4291)
-
b8f90d07
by Peter Hutterer
at 2021-03-24T14:44:47+10:00
doc/user: explain why we are doing motion normalization
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 2f8dab4537dda4205763ef2a48f298da9765a408)
-
f905054b
by Greg V
at 2021-03-24T14:45:16+10:00
quirks: recognize SPI bus
Apple MacBooks (Broadwell/Skylake/Kaby Lake and Apple Silicon)
use SPI to communicate with the keyboard and trackpad.
Signed-off-by: Greg V <greg@unrelenting.technology>
(cherry picked from commit 5f00c32d9ec8878948696f7c89ffb8b29a591fb6)
-
a49826a7
by Greg V
at 2021-03-24T14:45:17+10:00
quirks: add quirks for Apple SPI input devices
The Linux applespi driver currently uses the Synaptics vendor ID
on the trackpad for some reason (even though, at least from bcm5974
we only know that Broadcom is involved..) but my upcoming FreeBSD driver
uses the Apple vendor ID everywhere, so add two quirks.
Signed-off-by: Greg V <greg@unrelenting.technology>
(cherry picked from commit d8b1a773e306e1055b2a6fc1e71cc7af77c682a2)
-
4c1862c1
by Greg V
at 2021-03-24T14:45:18+10:00
quirks: implement DMI support on FreeBSD
FreeBSD does not use Linux modaliases, so we have to generate these strings.
Unfortunately for us, the data in kenv has the chassis type pre-parsed into
a nice string, so we have to match these strings back into numbers.
Only relevant types are included to avoid bloating the code.
Signed-off-by: Greg V <greg@unrelenting.technology>
(cherry picked from commit 6941f74070ec0e639bb045107b969b7798947fae)
-
4f2f1d29
by Greg V
at 2021-03-24T14:45:24+10:00
quirks: add wildcard to HID-over-I2C names (for FreeBSD)
The FreeBSD HID stack adds the device type to the evdev name,
so we get e.g. "ACPI0C50:00 18D1:5028 TouchPad".
(Maybe this shouldn't be matched by name at all though...)
Signed-off-by: Greg V <greg@unrelenting.technology>
(cherry picked from commit 06697b5e85e54965952bfd8efac67c8bde3ff4bc)
-
6df51692
by Peter Hutterer
at 2021-03-24T14:46:08+10:00
libinput 1.17.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
0d3d885a
by Ben Weston
at 2021-04-29T10:58:13+10:00
quirk: fix sensitivity for Dell Latitude 7490 pointing-stick
Signed-off-by: Ben Weston <b.weston60@gmail.com>
(cherry picked from commit 74f6821d7ab9697f3b81aa110ca46cf936fb2b10)
-
0cfe00f4
by Jonas Ådahl
at 2021-04-29T10:58:24+10:00
tablet-pad-leds: Open led file with O_NONBLOCK | O_CLOEXEC
We don't want the file to be left open after any fork/exec, and we don't
want the read to be blocking; so open it as such.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
(cherry picked from commit f723b28220adc64552c4ce26c4c9054494ea0141)
-
eea702e3
by Peter Hutterer
at 2021-04-29T10:58:43+10:00
evdev: don't check the event time if it's higher than the dispatch time
The dispatch time is taken during libinput_dispatch(), i.e. at the beginning
of an event sequence. We always read all events off the device, so where
events come in while we're inside the main dispatch loop, our event time may
be later than the saved dispatch_time. This causes an uint underflow and our
tdelta > 10 will be true for that case.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 95a72990ad71285b834646210c5a483baabd4b4e)
-
b8d79df6
by Peter Hutterer
at 2021-04-29T10:58:44+10:00
evdev: don't truncate event time to 32 bits
This causes a bunch of "your system is too slow" messages in e.g. the various
gesture tests.
Fixes 95a72990
Fixes #601
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 04dc67e09250cdf275b139ac9ab0b9a118a7de29)
-
a3103ded
by Chris Dickson
at 2021-04-29T10:58:50+10:00
quirks: mark the 0x252 razer keyboard as internal
Signed-off-by: Chris Dickson <hobochili@pm.me>
(cherry picked from commit 9ce8d561c1bcd9bfe2047d3bb6e099bb5ef3eb2b)
-
26c65758
by Peter Hutterer
at 2021-04-29T10:59:04+10:00
quirks: add palm size quirk for the Gigabyte Aero 15
Fixes #599
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 10124797b502f3dd308919b7bab80752483d0f6b)
-
4813e63f
by Udo Rader
at 2021-04-29T10:59:06+10:00
quirks: add quirk for Lenovo Yoga Slim 9 Touchpad
This touchpad is a pressure pad and needs the pressure
handling disabled.
Fixes #604
Signed-off-by: Udo Rader <udo.rader@bestsolution.at>
(cherry picked from commit 144f5ed93dc70873ee7d07b0acc00d1fe5560ead)
-
f42b8dd1
by Peter Hutterer
at 2021-04-30T13:52:07+10:00
libinput 1.17.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>