Peter Hutterer
98ba56fb31
libinput 1.26.0
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2024-06-06 14:09:40 +10:00
Peter Hutterer
a2f0cc35c5
quirks: add support for Uniq matching
...
Same as MatchName but matches on the UNIQ udev property instead. This
is needed for some Huion, Gaomon and other tablet devices that only
differentiate each other through the Uniq string which contains the
firmware version.
Closes #997
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1006 >
2024-06-05 11:35:59 +00:00
Peter Hutterer
e72ee0b1c8
pre-commit: ignore subprojects for ruff and black
...
We don't have any subprojects yet but let's not fail badly for something
that's not our fault.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1005 >
2024-06-05 10:38:08 +00:00
Peter Hutterer
fdb693a6ee
tools/record: record the DRIVER property in the recording
...
So we know which kernel driver is handling the device. Quite useful,
sometimes, without having to ask for extra logs.
This of course requires that we ignore said property in libinput replay
since no uinput device will have that driver property set.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1007 >
2024-06-04 16:54:28 +10:00
Peter Hutterer
f1792dec46
quirks: add a default resolution for Huion devices
...
The Inspiroy 2S H641P in default mode (without hid-uclogic support) says
the pen interface has a Logical Maximum of 32767. Over the 160x100mm
active surface this is ca 205x328 units/mm. This isn't correct across all
devices but let's use it as fallback value so the tablets work out of
the box.
It's hard to set these tablets via 60-evdev.hwdb otherwise because most
Huion tablets share a few PIDs only.
Note: this doesn't overwrite the kernel resolution it merely provides a
fallback where no kernel resolution is set.
The firmware report descriptor does set a physical range (2048) but it
sets it in cubic inch which is ignored by the kernel:
# 0x65, 0x33, // Unit (EnglishLinear: in³) 48
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1004 >
2024-05-27 14:51:25 +10:00
Peter Hutterer
fe3175748a
evdev: don't return a size for 0-1 axes
...
Tablet pads historically need to have ABS_X/Y to be detected as tablets
but their min/max values are 0 and 1. Let's not return a size for those.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1004 >
2024-05-27 14:51:23 +10:00
Yaraslau Furman
e802715785
quirks: lenovo: mark Lenovo 16ARX8 keyboard as internal
...
Fixes "Disable touchpad while typing" setting not working.
This quirk should work for all other keyboards with the same issue
listed above, as well as those that might come up in the future.
Signed-off-by: Yaraslau Furman <yaro330@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1001 >
2024-05-22 12:00:31 +03:00
Putu Wiramaswara Widya
e7499aeb49
added quirks for Thinkpad X390 Yoga's trackpoint
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1003 >
2024-05-21 09:17:00 +08:00
José Expósito
a2515fc3f6
evdev: log the right mouse wheel angle
...
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1002 >
2024-05-18 18:55:29 +02:00
José Expósito
5f1b46370b
quirks: fix end-of-file in 50-system-huawei.quirks
...
Picked up by the pre-commit hook.
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1002 >
2024-05-18 18:55:29 +02:00
Peter Hutterer
430c1b89c6
CI: bump to Fedora 40
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1000 >
2024-05-13 11:19:21 +10:00
PLTorrent
7c87d3e671
Add support for Matebook X Pro 2024 Touchpad
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/998 >
2024-05-05 21:23:45 +00:00
Marge Yang
0c347a9728
quirks: add quirk for HP Haptics Touchpad.
...
This Touchpad is a pressure pad and needs the pressure
handling disable.
Signed-off-by: Marge Yang <marge.yang@synaptics.corp-partner.google.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/995 >
2024-04-30 06:59:42 +00:00
Julian Orth
857780ede7
Ring positions increase clockwise
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/994 >
2024-04-29 15:06:13 +00:00
Peter Hutterer
ace22ad0b0
gitlab CI: don't run MR pipelines in forks
...
Commit originally by Simon Ser in wayland/wayland-protocols!305 .
Currently our CI setup has a downside: for each push on a merge
request, two pipelines are triggered. The first is triggered in
the context of the forked repository, and the second is triggered
in the context of the MR in the parent repository.
Replace the workflow rules with the ones in the official docs [1],
so that a branch pipeline isn't triggered when a MR exists for that
branch.
[1]: https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/993 >
2024-04-29 14:50:07 +10:00
Martin Rys
a191a46a78
Include COMPOSE and KANA keys in tests
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/990 >
2024-04-28 23:59:14 +00:00
Martin Rys
7c91e3539c
Add definitions for LIBINPUT_LED_COMPOSE and LIBINPUT_LED_KANA
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/990 >
2024-04-28 23:59:14 +00:00
Yogas Kung
ed9570df60
quirks: increase MacBook touchpad AttrPalmSizeThreshold
2024-04-24 04:11:51 +00:00
Peter Hutterer
aebd81162b
quirks: add quirk for RazerBladeAdvancedLate2019
...
Generated by tools/razer-quirks-lister.py
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/992 >
2024-04-23 13:52:48 +10:00
Peter Hutterer
ba761664e8
pad: implement strip support for non-Wacom tablets
...
Wacom's strips are a log(2) value range which is a quirk specific to
that vendor. On other devices let's normalize the value normally.
Related #989
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/989 >
2024-04-23 01:31:48 +00:00
Peter Hutterer
c5b732cc38
pad: rename two helper functions
...
This is the specific behavior of the Wacom strips and rings, so let's
add wacom to the name.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/989 >
2024-04-23 01:31:48 +00:00
Maarten de Vries
a8acd4a692
quirks: add quirk for Lenovo Legion keyboard 048d:c103
2024-04-22 12:37:46 +02:00
Tarcísio Eduardo Moreira Crocomo
955158f982
fix: unnecessary braces and mistake in doc
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/988 >
2024-04-09 23:40:34 -03:00
Tarcísio Eduardo Moreira Crocomo
46d1fff0b0
touchpad: add clickfinger button map
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/988 >
2024-04-09 19:08:17 -03:00
José Expósito
1d5d45a251
touchpad: use boolean operator for booleans
...
Detected while compiling with Sparse enabled.
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/987 >
2024-03-18 23:35:34 +00:00
José Expósito
f6a1f264df
sparse: make some variables static
...
Fix warnings about variables that should be made static when compiling
with Sparse enabled:
$ CC=cgcc meson builddir
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/987 >
2024-03-18 23:35:34 +00:00
Peter Hutterer
74f69dc9a0
test: replace an assert with double_ge
...
Better test debugging this way.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/986 >
2024-03-18 23:02:05 +00:00
Peter Hutterer
4d9b25b234
test: force the apple magicmouse to 1000dpi
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/986 >
2024-03-18 23:02:05 +00:00
Peter Hutterer
47f94633fe
test: remove some old compat code for kernel<4.5
...
Kernel 4.5 and libevdev 1.5 were released in 2016, this code is no
longer necessary.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/986 >
2024-03-18 23:02:05 +00:00
Peter Hutterer
3d246ef248
test: remove a workaround for libevdev 1.2 and earlier
...
libevdev 1.3 was released in 2014.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/986 >
2024-03-18 23:02:05 +00:00
Peter Hutterer
02d01a53c6
util: slightly improve the trace() macro
...
Only one printf call instead of three, means better termination of the
color code. And auto-append the newline while we're there and use the
ANSI defines we have since added.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
bb1b1304df
test: fix two wrong timeout calls
...
This are tests with drag lock enabled, so our timeout needs to be
be the tap and drag timeout (which is higher than the normal tap timeout).
Only worked because they're similar enough that if there's a bit of a
delay, the extra ms push us over the line.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
09b59e42fb
test: fix some tests that may cause pointer jumps
...
Increase the number of events to move from one position to the next to
avoid accidental pointer jumps.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
34f86489a8
Revert "test: allow for substring matching in the various --filter- arguments"
...
Substring matching means it's impossible to select filters that are
substrings of others, making it too painful to test one specific filter.
This reverts commit a524cf9761 .
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
c775c23121
test: slightly increase the finger switch timeout wait
...
In touchpad_2fg_scroll_return_to_motion we sometimes fail because the
timeout is too close to the actual timeout expiry, creating a race
condition on whether the scroll stop event (triggered by the gesture
end) is sent before or after the timeout expiry.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
30c6d5983d
test: add two more more libinput_dispatch() calls
...
We're writing a lot of events here, if the system isn't fast enough or
(in the future) if we have a custom socket instead of a kernel device we
might fill up the write buffer, causing the test to fail.
Easy workaround is to dispatch more often to ensure the data is being
read from the fd.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
d6e54c3597
util: fix error in mkdir_p if a parent directory fails to be created
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
9c69152428
Move mkdir_p into a utility header
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
3644372696
test: add helpers for checking (negative) errnos
...
This way we get to see the actual error when it happens.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
4935e52652
util: add a LIST_INIT macro
...
Necessary for the case where we need a compile-time initialized list.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984 >
2024-03-18 16:25:47 +00:00
Peter Hutterer
3a935507ae
ci: bump to Fedora 39 and FreeBSD to 13.2
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/985 >
2024-03-18 12:31:59 +10:00
Peter Hutterer
301895685e
tools: fix two black warnings
...
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/985 >
2024-03-18 12:29:57 +10:00
Peter Hutterer
bf061ad157
quirks: Add a the onebutton apple touchpad quirk for an old MacBook
...
This is a 2006 Macbook, model A1181. Should fix the warning:
event9 - appletouch: kernel bug: missing right button, assuming it is a clickpad.
Related #981
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/983 >
2024-03-13 11:52:00 +00:00
Peter Hutterer
15609213a6
touchpad: disable the immediate scroll state if tapping is enabled
...
On a touchpad without gestures we would take a 2-finger touch as
immediate start to a 2-finger scroll gesture. This effectively removes
the 1mm threshold we otherwise have before scrolling is assumed to have
started.
If tapping is enabled and a user triggers a small motion event this
results in scroll events being sent before the two-finger tap.
Closes #981
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/982 >
2024-03-12 15:19:59 +10:00
Derrick Timmermans
6faab3a1d4
Add quirk for the Legion Slim 7 Gen 8 keyboard
...
Signed-off-by: Derrick Timmermans <derrick.timmermans@outlook.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/980 >
2024-03-06 10:14:35 +01:00
José Expósito
bee06c10ce
quirks: add quirk for Dell Precision 5480 touchpad
...
The Dell Precision 5480 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 being too small. Disable
the quirk for this specific model.
Closes : #976
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/979 >
2024-02-29 09:51:43 +01:00
José Expósito
a43f1edbfe
Add libinput_device_get_id_bustype()
...
Allow to get the device bus type ID in addition to its vid and pid.
Closes: https://gitlab.freedesktop.org/libinput/libinput/-/issues/975
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/977 >
2024-02-28 22:49:29 +00:00
José Expósito
7ac26ed9c2
CONTRIBUTING: Add CONTRIBUTING.md
...
Add a very basic CONTRIBUTING.md file with a link to the documentation.
Closes : #974
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/978 >
2024-02-28 17:07:45 +01:00
José Expósito
b5b825a7c3
doc/user: Document "Closes" and "Fixes" tags
...
Describe how the tags should be used. The guidelines for the "Fixes"
tag are taken from the Linux kernel documentation [1][2].
[1] https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes
[2] https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#describe-changes
Closes : #974
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/978 >
2024-02-28 16:59:58 +01:00
Peter Hutterer
399ba5e0ee
CI: only check the MR if we're in a merge request pipeline
2024-02-28 18:53:25 +10:00