summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Gitlab CI: use the docker:latest image for image creationwip/gitlab-ci-f29Peter Hutterer2018-11-021-0/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Revert "Gitlab CI: add docker to the alpine image"Peter Hutterer2018-11-021-2/+0
| | | | This reverts commit 37accb7710dc1a21dc138393f0d8ac0605e41527.
* Gitlab CI: add docker to the alpine imagePeter Hutterer2018-11-021-0/+2
| | | | | | Because alpine:latest is missing it Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Revert "gitlab CI: switch the docker creation to use our jq image"Peter Hutterer2018-11-021-4/+0
| | | | This reverts commit 6083fb795bd5a34b94f8407ad12797b2fdae5a5b.
* gitlab CI: buildah requires the transport protocolPeter Hutterer2018-11-021-1/+1
| | | | | | | | Executing the script as illustrated sends it to nowhere (localhost maybe?), prepending docker:// makes it recognize the hostname correctly and actually upload it to gitlab. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: switch the docker creation to use our jq imagePeter Hutterer2018-11-021-0/+4
| | | | | | | | The alpine image apparently no longer has /usr/bin/docker, causing the scripts to fail. To prevent this from happening again in the future, switch to our own image that we can update with whatever we'll need to generate everything. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: swap Fedora 27 for Fedora 29Peter Hutterer2018-11-021-49/+49
| | | | | | And run all the special stuff we currently run on F28 on F29 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Don't disable keyboard for Lenovo X230 Tablet in tablet modeRyan Walklin2018-11-011-0/+7
| | | | This also disables the special buttons on the tablet screen. Re-enabling to allow screen rotation.
* quirks: switch a few model quirks over to use the new evcode disablingPeter Hutterer2018-10-2911-107/+53
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: add the ability to disable custom event codes/typesPeter Hutterer2018-10-298-3/+286
| | | | | | | | | | | | | | This is a more flexible approach than adding a model flag and the C code to just call libevdev_disable_event_code(). There's a risk users will think this is is a configuration API but there are some devices out there (e.g. the Microsoft Sculpt mouse) that need a more generic solution. Case in point: the Sculpt mouse insists on holding BTN_SIDE down at all times. We cannot ship any quirks for that device because we only have the receiver's generic VID/PID. So a local override is required, but we might as well make that one generic enough to catch other devices too in the future. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* evdev: log the wheel click angle settingPeter Hutterer2018-10-291-13/+15
| | | | | | | | Log if we use a non-default click angle setting, makes it easier to debug this. The condition to add the log was a bit unwieldly to read, so this also factors out the property names to temporary variables. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.12.21.12.2Peter Hutterer2018-10-241-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: move the custom parser test structs into the functionsPeter Hutterer2018-10-221-61/+45
| | | | | | No need to pollute the namespace here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Remove obsolete HAVE_CONFIG_H checkPeter Hutterer2018-10-221-2/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: disable debouncing on the VMware Virtual micePeter Hutterer2018-10-193-1/+12
| | | | | | | | | | | | | | At least on MacBooks, the host emulates two clicks 8ms apart in response to a doubletap. Those clicks are filtered by our debouncing code. Since these are emulated devices anyway and by definition cannot have a stuck button, let's tag them so we don't enable the debouncing code. If the button of the physical device is stuck, that's a problem that needs to be fixed in the host system. Fixes #158 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: don't disable keyboard for Lenovo X60 Tablet in tablet modeMichał Kopeć2018-10-181-0/+5
| | | | | Lenovo X60 tablet has bezel buttons that are bound to the keyboard. They should not be disabled.
* quirks: use basename in a POSIX compliant wayGreg V2018-10-161-1/+4
| | | | | | | | | | | The POSIX version of basename modifies the string (and therefore crashes on static strings), so use safe_strdup before calling it. glibc provides a POSIX version when libgen.h is included. FreeBSD 12 provides a POSIX version when nothing is included, which was causing a segfault. Using the POSIX version correctly is the right way to avoid any such issues.
* test: add tablet-mode suspend/resume keyboard and touchpad testsPeter Hutterer2018-10-161-0/+228
| | | | | | Related #155 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: handle a touch ending and restarting in the same framePeter Hutterer2018-10-152-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | If a touch ends and starts again in the same frame, our touch count gets out of whack. This later triggers an assertion when the tap touch count mismatches the real tap count. E: 0.105005 0003 0039 -001 # EV_ABS / ABS_MT_TRACKING_ID -1 E: 0.105005 0003 0035 8447 # EV_ABS / ABS_MT_POSITION_X 8447 E: 0.105005 0003 0036 4479 # EV_ABS / ABS_MT_POSITION_Y 4479 E: 0.105005 0001 014a 0000 # EV_KEY / BTN_TOUCH 0 E: 0.105005 0001 0145 0000 # EV_KEY / BTN_TOOL_FINGER 0 E: 0.105005 0003 0039 0074 # EV_ABS / ABS_MT_TRACKING_ID 74 E: 0.105005 0003 0035 8388 # EV_ABS / ABS_MT_POSITION_X 8388 E: 0.105005 0003 0036 4480 # EV_ABS / ABS_MT_POSITION_Y 4480 E: 0.105005 0001 014a 0001 # EV_KEY / BTN_TOUCH 1 E: 0.105005 0001 0145 0001 # EV_KEY / BTN_TOOL_FINGER 1 E: 0.105005 0003 0000 8388 # EV_ABS / ABS_X 8388 E: 0.105005 0003 0001 4480 # EV_ABS / ABS_Y 4480 E: 0.105005 0000 0000 0000 # ------------ SYN_REPORT (0) ---------- +19ms This is a kernel bug but let's paper over here because otherwise we crash and that's considered impolite. Fixes #161 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: only log the touch state if we have something to logPeter Hutterer2018-10-151-1/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: fix palm size threshold for the Wacom PTH660Peter Hutterer2018-10-101-1/+1
| | | | | | Copy/paste error in the hwdb to quirks transition Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: suppress tablet-mode for Lenovo X220T keyboard. Resolves #154Matthias Mayr2018-10-081-0/+8
| | | | | The special bezel buttons are associated to the keyboard and would therefore mistakenly be deactivated as well. See #154.
* touchpad: avoid motion events when moving one finger into AREAPeter Hutterer2018-10-044-1/+92
| | | | | | | | | | | | | | | | | If a 2fg scroll motion starts with both fingers in the bottom button area and one finger moves into the main area before the other, we used to send motion events for that finger. Once the second finger moved into the main area the scroll was detected correctly but by then the cursor may have moved out of the intended focus area. We have two transitions where we may start sending motion events: when we move out of the bottom area and when the finger moves by more than 5mm within the button area. In both cases, check for any touches that are in the bottom area and started at the 'same' time as our moving touch. Mark those as 'moved' to release them for gestures so we get the right finger count and axis/gesture events instead of just motion events. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: don't calculate movement for an already-moved touchPeter Hutterer2018-10-041-0/+3
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: align the button state log messagesPeter Hutterer2018-10-041-1/+1
| | | | | | | There's one state with a name longer than allocated but it's virtually never triggered so let's just ignore the misalignment in that case. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: if two fingers are within the lower thumb area, they're not thumbsPeter Hutterer2018-10-034-0/+103
| | | | | | | | | | The shape of the average hand implies that two fingers down within the lower thumb area (the bottom few mm of the touchpad) cannot be thumbs without significant contortion. So let's not mark them as thumb. Fixes #126 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.12.11.12.1Peter Hutterer2018-10-031-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc/user: add a warning that udevadm test doesn't always workPeter Hutterer2018-10-031-0/+5
| | | | | | | | We rely on the udev keyboard builtin to set the fuzz but that builtin isn't run during udevadm test. So running sudo udevadm test shows the LIBINPUT_FUZZ properties the first time round (still set from boot), but not the second time. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc/user: fix typoPeter Hutterer2018-10-031-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: ignore motion speed for hovering touchesPeter Hutterer2018-10-022-0/+42
| | | | | | | | | | | | | | | | | | | | | | | tp_detect_thumb_while_moving() assumes that of the 2 fingers down, at least one must be in TOUCH_UPDATE, otherwise we wouldn't have a speed to analyze for thumb. If a touch starts in HOVERING and exceeds the speed limit, we were previously increasing the 'exceeded count'. This later leads to an assert() in tp_detect_thumb_while_moving() when the second finger comes down because although we have multiple fingers, none of them are in TOUCH_UPDATE. This only happens when fingers 2 and 3 come down in the same event frame, because then we have nfingers_down at 2 (the hovering one doesn't count) but we don't yet have a finger in TOUCH_UPDATE. Fix this twofold, first by now calculating the speed on anything but TOUCH_UPDATE. And second by force-resetting the speed count on TOUCH_BEGIN/TOUCH_END so we definitely cover all the hover transitions. Fixes #150 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: fix the trackpoint multiplier for the Dell E7470Peter Hutterer2018-10-021-1/+1
| | | | | | Fixes #148 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: fix typoPeter Hutterer2018-09-281-1/+1
|
* fallback: cancel touches, don't just release them when we suspendPeter Hutterer2018-09-273-8/+33
| | | | | | | When we disable the touch device, any existing touches should be cancelled, not just released. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tablet: make evdev_reject_device return a boolPeter Hutterer2018-09-271-3/+3
| | | | | | Because that's how we use it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: align the rotation value with 3 digitsPeter Hutterer2018-09-271-1/+1
| | | | | | This is a 0-360 ranged value, so let's print it aligned. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: add a missing space in the proximity in axis listingPeter Hutterer2018-09-271-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* evdev: disable pressure on the Asus UX302LA touchpadPeter Hutterer2018-09-264-0/+21
| | | | | | | | | | | | | | This touchpad stops sending pressure data after the first frame of the second finger down. If the initial pressure is too light, the finger doesn't get detected even when the pressure increases in the future. This thing is from 2014, so let's just disable the pressure axes on it and skip the pressure-based touch detection code. Let's hope that it doesn't also have ghost touches on light interactions... Fixes #145 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* evdev: add a quirk for the Kensington OrbitPeter Hutterer2018-09-265-2/+15
| | | | | | | | Pretends to have a middle button where there is none. Fixes #142 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: replace the manual enumation of all quirks with a loopPeter Hutterer2018-09-203-162/+74
| | | | | | Reduces the places we need to update bits for new quirks. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* evdev: switch the model flags to use the quirks directlyPeter Hutterer2018-09-207-84/+72
| | | | | | | | | Anything that merely requires a once-off check during initialization can just use the quirks directly, no need to copy them over to the model flags. Fixes #146 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* evdev: align the model flags for easier readingPeter Hutterer2018-09-201-30/+30
|
* quirks: sort the quirks model flags in alphabetical orderPeter Hutterer2018-09-203-44/+44
|
* doc: fix libinput_event_destroy parameterDiego Rondini2018-09-181-1/+1
| | | | | | | Fix libinput_event_destroy call by passing the correct parameter (event) in the example code. Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
* Add issue templates for bugs and feature requestsPeter Hutterer2018-09-182-0/+63
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: extend/restore the Elan Touchpads quirksPeter Hutterer2018-09-181-0/+5
| | | | | | | | | | | | | | | | The hwdb match entry used to be this one: libinput:name:*Elan Touchpad*:dt:* LIBINPUT_ATTR_PRESSURE_RANGE=10:8 from commit 596777a3147d4070f9598f051f6d7ae96fa2f49a. It was intended to match for devicetree only but the way the udev rules were composed, it ended up matching on any system. Restore that for all systems to have compatibility with 1.11. For this one, let's also add the resolution hint and hope that that works too. Fixes #140 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: fix typos for the Dell XPSL322X touchpadPeter Hutterer2018-09-181-2/+2
| | | | | | | | Copy/paste typos introduced in the hwdb to quirks transition Fixes #141 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: fix the product ID for the MS Nano TransceiverPeter Hutterer2018-09-181-1/+1
| | | | | | | | | | Was 0x800 in the hwdb, became 0x8000 in th quirks transition because of inflation, but let's pretend the economy is back to normal and devalue our currency. (aka: "it was a typo", whoops and whatnot) https://bugs.freedesktop.org/show_bug.cgi?id=104415 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fixes incorrect bug reporting documentationBennett Hardwick2018-09-171-1/+1
|
* Updated: jumping cursor documentation linkBennett Hardwick2018-09-171-1/+1
|
* test: drop a condition from the safe_atou testPeter Hutterer2018-09-141-1/+0
| | | | | | | | | If sizeof(long) == sizeof(int), this test won't pass so let's drop it altogether. Fixes #137 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>