summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libinput 1.17.31.17.31.17-branchPeter Hutterer2021-05-261-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: add palm rejection support for all Razer Blade modelsdan g2021-05-241-7/+155
| | | | | | | | | | | | | Generated with a script to scrape the openrazer project for Razer Blade internal keyboard VIDs, see `razer_quirk_util.py` [1] This allows us to potentially bulk-add all Razer Blade models to benefit from palm rejection, rather than processing individual requests and merges. [1] https://gist.github.com/danryu/ee0c24ac50af40321550462bbf9ab594 Signed-off-by: dan g <dan.garton@gmail.com> (cherry picked from commit 3dcfae3fb699bc72c34099f5a567a61e075971b5)
* gitlab CI: bump from Fedora 32 to 34Peter Hutterer2021-05-243-56/+56
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 5a6f141bd86c5c141bbf0ac8007198fa11685657)
* Add quirk for Lenovo Legion 5 Pro.Hans Gaiser2021-05-241-0/+8
| | | | | Signed-off-by: Hans Gaiser <hansg91@gmail.com> (cherry picked from commit b1f958a178230c728b589436046f47eed8faa691)
* libinput 1.17.21.17.2Peter Hutterer2021-04-301-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: add quirk for Lenovo Yoga Slim 9 TouchpadUdo Rader2021-04-291-0/+9
| | | | | | | | | | 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)
* quirks: add palm size quirk for the Gigabyte Aero 15Peter Hutterer2021-04-291-0/+5
| | | | | | | Fixes #599 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 10124797b502f3dd308919b7bab80752483d0f6b)
* quirks: mark the 0x252 razer keyboard as internalChris Dickson2021-04-291-0/+7
| | | | | Signed-off-by: Chris Dickson <hobochili@pm.me> (cherry picked from commit 9ce8d561c1bcd9bfe2047d3bb6e099bb5ef3eb2b)
* evdev: don't truncate event time to 32 bitsPeter Hutterer2021-04-291-1/+1
| | | | | | | | | | | 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)
* evdev: don't check the event time if it's higher than the dispatch timePeter Hutterer2021-04-291-2/+4
| | | | | | | | | | | 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)
* tablet-pad-leds: Open led file with O_NONBLOCK | O_CLOEXECJonas Ådahl2021-04-291-1/+1
| | | | | | | | 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)
* quirk: fix sensitivity for Dell Latitude 7490 pointing-stickBen Weston2021-04-291-0/+6
| | | | | Signed-off-by: Ben Weston <b.weston60@gmail.com> (cherry picked from commit 74f6821d7ab9697f3b81aa110ca46cf936fb2b10)
* libinput 1.17.11.17.1Peter Hutterer2021-03-241-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: add wildcard to HID-over-I2C names (for FreeBSD)Greg V2021-03-242-2/+2
| | | | | | | | | | 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)
* quirks: implement DMI support on FreeBSDGreg V2021-03-241-5/+73
| | | | | | | | | | 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)
* quirks: add quirks for Apple SPI input devicesGreg V2021-03-241-0/+25
| | | | | | | | | | 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)
* quirks: recognize SPI busGreg V2021-03-241-0/+7
| | | | | | | | 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)
* doc/user: explain why we are doing motion normalizationPeter Hutterer2021-03-241-0/+5
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 2f8dab4537dda4205763ef2a48f298da9765a408)
* completion: add missing libinput analyze subtools to the zsh completionsPeter Hutterer2021-03-241-0/+23
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 40b83b11058bcc4c02ea3e7b631c8777c01b4291)
* Add Lenovo Legion 5 keyboard to 50-system-lenovo.quirksPedro Ribeiro2021-03-241-0/+16
| | | | | Signed-off-by: Pedro Ribeiro <pedrib@gmail.com> (cherry picked from commit 5e69c5f9ae793430d8ad07592d3e5bbd1d4e0e5b)
* libinput 1.17.01.17.0Peter Hutterer2021-02-231-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools/record: fix two coverity complaintsPeter Hutterer2021-02-231-2/+2
| | | | | | | 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>
* tools: add a tool to print a libinput recording as a tablePeter Hutterer2021-02-235-0/+236
| | | | | | | 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>
* meson.build: build libinput replay as wellPeter Hutterer2021-02-232-3/+1
| | | | | | | 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>
* tools/record: use a helper function to get the next event for a devicePeter Hutterer2021-02-231-21/+20
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools/record: switch record over to using epollPeter Hutterer2021-02-231-97/+184
| | | | | | | | | | | 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>
* tools/record: reword parts of the man pagePeter Hutterer2021-02-231-3/+3
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools/record: use safe_basename() to get to the hid report descriptorPeter Hutterer2021-02-231-8/+5
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* utils: add a safe version of basenamePeter Hutterer2021-02-233-12/+66
| | | | | | | 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>
* tools/record: simplify the behavior to emulate Python's join()Peter Hutterer2021-02-231-14/+13
| | | | | | Instead of a boolean "is_first", just change the separator. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools/replay: Enter quits if there are no eventsPeter Hutterer2021-02-231-3/+10
| | | | | | | 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>
* tools/replay: search for the first event with a timestampPeter Hutterer2021-02-231-13/+10
| | | | | | | | | 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>
* tools/record: print a header as first linePeter Hutterer2021-02-221-0/+1
| | | | | | To make the file format easier to detect Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix worng quirk name in docyuri19692021-02-191-1/+1
| | | | | | | 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>
* tools/record: fix outdated commentPeter Hutterer2021-02-191-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools/record: de-inline our functionsPeter Hutterer2021-02-191-37/+39
| | | | | | | 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>
* tools/record: correct the evdev data format in the man pagePeter Hutterer2021-02-191-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: consolidate all man pagesPeter Hutterer2021-02-181-89/+49
| | | | | | | | | 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>
* meson.build: drop the dummy config data and use copy: true insteadPeter Hutterer2021-02-181-8/+1
| | | | | | We require the meson version this was introduced in, so let's use it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add test cases for 2/3 finger movement after drag-locksatrmb2021-02-171-1/+194
| | | | | | | 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>
* libinput 1.16.9021.16.902Peter Hutterer2021-02-161-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add test cases for 2/3 finger movement after tapPeter Hutterer2021-02-153-0/+211
| | | | | | | | | | 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>
* test: drop the needless base event conversionPeter Hutterer2021-02-151-6/+4
| | | | | | | 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>
* test: print the event type on mismatchPeter Hutterer2021-02-151-2/+1
| | | | | | We already have a helper function for this, let's use it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc: update the docs with a note regarding multifinger draggingPeter Hutterer2021-02-151-0/+5
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move the no-libwacom test suite into its own stagePeter Hutterer2021-02-152-0/+12
| | | | | | Easier to spot visually in the GUI that way Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: fix a few missing or wrong drag-lock timeoutssatrmb2021-02-151-3/+10
| | | | | | | | | 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>
* touchpad: permit only one finger on the touchpad at the start of a tap-dragsatrmb2021-02-154-280/+26
| | | | | | | | | | | 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>
* touchpad: stretch the tap-and-drag timeout a bit depending on finger countsatrmb2021-02-152-8/+30
| | | | | | | | | 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>
* doc/user: generate the required package list for the CI distributionsPeter Hutterer2021-02-153-0/+47
| | | | | | | | | | 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>