summaryrefslogtreecommitdiff
path: root/test/litest-device-synaptics-hover.c
Commit message (Collapse)AuthorAgeFilesLines
* udev: drop the JUMPING_SEMI_MT quirk, no-one uses itPeter Hutterer2018-05-311-10/+0
| | | | | | | Obsolete since 342bc510164e89d7c9a742406fb98f9deabf5c8f when we disabled MT on all semi-mt touchpads. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: switch to a TEST_DEVICE macro for all the litest test devicesPeter Hutterer2017-09-211-11/+2
| | | | | | | | | | | | | | | | The test device initialization code was a bit of duplicated boilerplate and required adding a reference to the devices to the 'devices' list in litest.c. Automate this with a new TEST_DEVICE macro that adds the devices to a custom section in the binary, then loops throught that section to get the device out. This reduces the boilerplate for each test device to just the TEST_MACRO and the LITEST_foo device enum entry. It also now automates the shortname of the device. The device's shortname was standardised in this approach as well, lowercase and dashes only. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: use pressure values for touch is-down decisionPeter Hutterer2017-01-301-0/+14
| | | | | | | | | | | | | | | | | | | | Don't rely on BTN_TOUCH for "finger down", the value for that is hardcoded in the kernel and not always suitable. Some devices need a different value to avoid reacting to accidental touches or hovering fingers. Implement a basic Schmitt trigger, same as we have in the synaptics driver. We also take the default values from there but these will likely see some updates. A special case is when we have more fingers down than slots. Since we can't detect the pressure on fake fingers (we only get a bit for 'is down') we assume that *all* fingers are down with sufficient pressure. It's too much of a niche case to have this work any other way. This patch drops the handling of ABS_DISTANCE because it's simply not needed anymore. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: switch the semi-mt devices to use the litest semi-mt handlingPeter Hutterer2017-01-261-45/+23
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Drop HAVE_CONFIG_H ifdefPeter Hutterer2016-12-011-2/+0
| | | | | | | | We have one. Yay. Lucky us. Go forth and celebrate. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
* test: fix the udev rule for the synaptics hover devicePeter Hutterer2016-02-041-1/+1
| | | | | | Missing \\ for a udev rule split across two lines Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: disable 2fg scrolling on Synaptics semi-mt touchpadsPeter Hutterer2015-07-271-0/+10
| | | | | | | | | | | These touchpads have a terrible resolution when two fingers are down, causing scrolling to jump around a lot. That then turns into bug reports that we can't do much about, the data is simply garbage. https://bugs.freedesktop.org/show_bug.cgi?id=91135 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
* test: prefix all test device files with litest-devicePeter Hutterer2015-07-131-0/+133
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>