summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* doc/user/timestamps: document which clock is usedHEADmainSimon Ser2023-05-091-0/+2
| | | | | | | Document that all timestamps are given in the CLOCK_MONOTONIC domain. Signed-off-by: Simon Ser <contact@emersion.fr>
* evdev: if a device's rotation is around 180 degrees, flip the wheelPeter Hutterer2023-04-273-0/+64
| | | | | | | | | | | For a device used upside-down, make sure the wheels correspond to the new physical directions. There's a grace range of 20 degrees either way since that seems like it makes sense. For 90 degree rotation (or 270 degree) the wheel is left as-is, the heuristics to guess what angle we want in this case is not clear enough. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* fallback: remove write-only rotation.is_enabled variablePeter Hutterer2023-04-272-2/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: add rotation support to debug-events and debug-guiPeter Hutterer2023-04-274-1/+19
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: carry the step as argument for arg testingPeter Hutterer2023-04-271-5/+3
| | | | | | Simplifies things a bit since it makes it all more explicit Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: update to use Fedora 38Peter Hutterer2023-04-202-44/+44
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools/debug-gui: fix a deprecated warningPeter Hutterer2023-04-201-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: fix a few scan-build dead store warningsPeter Hutterer2023-04-202-4/+4
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: fix the rpm build job's Fedora versionPeter Hutterer2023-04-202-4/+4
| | | | | | We have the variable set, we just didn't use it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc/user: add a section on natural scrollingPeter Hutterer2023-04-181-0/+20
| | | | | | Just for completeness, turns out we were missing that one. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc/user: fix documentation for rotationPeter Hutterer2023-04-181-5/+5
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: add a tool to update our Razer quirks for internal keyboardsPeter Hutterer2023-04-112-0/+87
| | | | | | | | | | | | | | | | | openrazer keeps a convenient list of keyboard devices that belong to the RazerBlade line and thus should be marked as internal by us. Let's use that one. This script git clones the current openrazer repo, imports the file we need and then overwrites our current quirks file with the sorted list of devices. For the second part of this to work reliable we need a marker in the quirks file that marks the start of autogenerated entries. Heavily influenced by @danryu in !887. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: sort the razer entries by PIDPeter Hutterer2023-04-111-55/+56
| | | | | | | No functional changes here, this should help with adding autogenerated entries since we no longer rely on the source order. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Disregard touchless clicks on flaky devicesRobert Glossop2023-04-1110-17/+162
| | | | | | | | Some touchpads, notably those on the Dell XPS 15 9500, are prone to registering touchpad clicks when the case is sufficiently flexed. Ignore these by disregarding any clicks that are registered without touchpad touch. Signed-off-by: Rob Glossop <robgssp@gmail.com>
* CI: remove unused meson-prep.sh and meson-test.sh scriptsPeter Hutterer2023-04-112-48/+0
| | | | | | | From an earlier version of the b2c patches, before meson-build.sh got updated to do what's required here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: Disable edge palm detection Apple touchpadsHector Martin2023-04-062-1/+5
| | | | | | | | | | | This hurts more than it helps, and users complain of dead trackpad edges. Apple touchpads have fairly sophisticated internal palm rejection algorithms going back many years, so let's just disable this one on everything Apple. Related to: #433 (need to figure out what other hardware may need this) Signed-off-by: Hector Martin <marcan@marcan.st>
* evdev: Enable natural scrolling by default on AppleHector Martin2023-04-064-4/+21
| | | | | | As suggested by the comment itself. I think most users expect this. Signed-off-by: Hector Martin <marcan@marcan.st>
* doc/user: the CI uses FEDORA_PACKAGES, not FEDORA_RPMSPeter Hutterer2023-04-041-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tablet: always enable touch arbitration with touchscreens/ext. touchpadsPeter Hutterer2023-03-302-14/+67
| | | | | | | | | | | | | | | Right now for touch arbitration to work, we require the device group to be the same (i.e. they're hanging off the same physical bus). That's not always the case and statistically we have a lot more devices that have a built-in tablet + touchscreen than we have Intuos-like external tablets. So let's default to the more common case - enabling arbitration with the first touchscreen/external touchpad we find. If a subsequent device is "better", swap it out. Right now, the only heuristic we have here is the device group check but in the future we could get more precise. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tablet: split out arbitration/rotation handling assignmentPeter Hutterer2023-03-301-22/+36
| | | | | | No functional changes Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: move arbitration test into a helper functionPeter Hutterer2023-03-301-23/+27
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* fallback: don't double-map if any left-handed buttons are downPeter Hutterer2023-03-292-1/+39
| | | | | | | | | | | | | The key_count array for buttons records the logical button sent to the client - for left-handed configurations that means a BTN_LEFT is recorded as BTN_RIGHT. When the device is suspended and we are releasing all keys we must thus release the button code as-is without trying to map it again. Fixes #881 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: bump to latest ci-templates for a new ci-fairyPeter Hutterer2023-03-292-2/+2
| | | | | | | This version includes the (possible) fix for our CI picking up the wrong range in the commit checks and failing the pipeline. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: minor cleanupsPeter Hutterer2023-03-292-6/+7
| | | | | | | A whitespace fix, moving a check-related #define closer to the #include and change a test that doesn't need a device to litest_add_no_device(). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc: document libinput_device_tablet_pad_get_* error caseJosé Expósito2023-03-251-3/+3
| | | | | | | | | Like in libinput_device_switch_has_switch()'s documentation, document the error case in libinput_device_tablet_pad_get_num_buttons(), libinput_device_tablet_pad_get_num_rings() and libinput_device_tablet_pad_get_num_strips(). Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* libinput 1.23.01.23.0José Expósito2023-03-251-1/+1
| | | | Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* quirks: add a bunch more Razer internal keyboardsPeter Hutterer2023-03-241-0/+76
| | | | | | | Generated with the same script as the list from commit 3dcfae3fb699bc72c34099f5a567a61e075971b5. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add a test to make sure we don't accidentally add Logitech receiversPeter Hutterer2023-03-231-0/+36
| | | | | | | IDs copied over from libratbag which has that same check, with C548 added. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add a quicks file validation testPeter Hutterer2023-03-232-0/+71
| | | | | | | | | Now that we're Python ConfigParser compatible (again), we can check our quirks file for things our actual parser doesn't care about, but that we should honour. Right now that means that bustypes and vid/pid matches are all spelled consistently. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: rm dead tp_palm_tap_is_palmTobias Bengfort2023-03-233-33/+0
| | | | | | | | | | | | | | | This was added in 39f11253471500cd380c8977b8cbe0683abe6b1d (https://bugs.freedesktop.org/show_bug.cgi?id=89625) Later, a more sophisticated palm detection was implemented in 46eab97538af18381243f5337bf3d29e4b21098f (https://bugs.freedesktop.org/show_bug.cgi?id=103210) The only place where `tp_palm_tap_is_palm()` is called is if the more sophisticated palm detection has already decided that this is not a palm, so it should never return true. Signed-off-by: Tobias Bengfort <tobias.bengfort@posteo.de>
* test: comment two tap testsPeter Hutterer2023-03-221-0/+6
| | | | | | | | | | | This is confusing without any explanation - the first set of touches is within the edge zone, the second set of touches is explicitly within the software button area but not inside the edge zone. Let's add comments so the intention is clear. Same-ish for the clickfinger test. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: make the ci-fairy commit check verbosePeter Hutterer2023-03-222-2/+2
| | | | | | | This way it prints the commit range which should help debug why it fails when it does. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: drop the explicit -n auto to the tool options testPeter Hutterer2023-03-201-1/+1
| | | | | | This script adds the option automatically where xdist is available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: honor FDO_CI_CONCURRENT in the tools option parserPeter Hutterer2023-03-201-1/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: change all 3-digit matches to zero-prefixed 4-digit matchesPeter Hutterer2023-03-204-23/+23
| | | | | | Time to get some standardization here! Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: fix duplicate section namesPeter Hutterer2023-03-203-13/+13
| | | | | | | Our parser doesn't care about this, but let's stick to the proper format so we can read those files with e.g. Python's ConfigParser Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: add a note to not quirk the Bolt ReceiverJosé Expósito2023-03-201-0/+5
| | | | | | | | | | | | | | | The Logitech Bolt Receiver can be used with multiple mice, but the kernel exposes the same product ID for all of them. Adding a quirk for the device trying to fix a specific mouse would break other mice. Since we avoided this problem during code review a couple of times [1] [2] add a warning to avoid it in the future. [1] https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/867#note_1759931 [2] https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/847#note_1725364 Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* doc/user: fix tap in palm exclusion zoneTobias Bengfort2023-03-172-38/+4
| | | | | | | See 211bed2c25e4282820e5155191d4dc09201f1210 and 79139ebcd1cc81eecdd2d0dc6f006fbec4c2c6f2 Signed-off-by: Tobias Bengfort <tobias.bengfort@posteo.de>
* test: give the generic MT touchscreen realistic rangesPeter Hutterer2023-03-171-4/+4
| | | | | | | | This way we can rely on physical coords on this screen being actually meaningful. Not currently in use but future tests will use this touch device as generic screen. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: add new workflow rulesPeter Hutterer2023-03-152-0/+10
| | | | | | | Required for pipelines to run after some infrastructure changes, see https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: update to latest ci-templatesPeter Hutterer2023-03-152-3/+2
| | | | | | | The commit fixes linebreaks at the end of the files for files generated with ci-fairy generate-templates. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* filter: add scroll movement type to the custom acceleration profileYinon Burgansky2023-02-2425-45/+177
| | | | | | | | Adds a dedicated scroll movement type to the custom acceleration profile. Supported by physical mouse and touchpad. Other profiles remain the same by using the same unaccelerated filter for the scroll filter. Signed-off-by: Yinon Burgansky <51504-Yinon@users.noreply.gitlab.freedesktop.org>
* quirks: fix DWT on Legion 5iJosé Expósito2023-02-131-0/+5
| | | | | | | | | | The keyboard present on this device is not recognized as internal and disable while typing does not work. Add a quirk to fix this feature. Fix https://gitlab.freedesktop.org/libinput/libinput/-/issues/848 Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gitlab CI: explicitly run the test in the systemd servicePeter Hutterer2023-02-131-1/+1
| | | | | | | | This shouldn't have functional changes because MESON_TEST_ARGS was set for all our b2c/qemu tests and thus the tests would run automatically. To make this script more generic, specify --run-test explicitly. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: remove a leftover use of a fedora imagePeter Hutterer2023-02-132-2/+0
| | | | | | This is overridden by the template users anyway Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: drop comment about weekly rebuild of imagesPeter Hutterer2023-02-132-8/+0
| | | | | | This was disabled many moons ago, pre the b2c work. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: bump to use Fedora 37Peter Hutterer2023-02-132-49/+49
| | | | | | | This was delayed by https://github.com/systemd/systemd/pull/25941 which is now available in F37 as of v251.11 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* add quirks for Logitech MX Master 3BAksel Stokseth2023-02-091-0/+5
| | | | Signed-off-by: Aksel Stokseth aksel.stokseth@gmail.com
* CI: bump b2c and kernelBenjamin Tissoires2023-02-082-5/+5
| | | | | | | Same than https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/106 We need to upgrade to a newer boot2container Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
* filter: simplify speed_factor()Tobias Bengfort2023-02-081-12/+2
| | | | | | The `speed_factor()` formula is unnecessarily complex, The behavior that is described in the comment can be achieved with a simple power function. And adjust the comment to explicitly state that 0.05 is the minimum.