Commit Graph

113 Commits

Author SHA1 Message Date
Peter Hutterer
a7d76f4275 synaptics 1.8.99.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-10-09 19:29:29 +10:00
Peter Hutterer
2a1a17244f synaptics 1.8.99.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-04-29 08:49:07 +10:00
Peter Hutterer
5378a020a0 Revert "Support the new Lenovo X1 Carbon 3rd trackpoint buttons"
This reverts commit 064445364b.

The Lenovo *50 series, including the X1 Carbon 3rd always require multiple
kernel patches to enable the touchpad buttons. This patch in synaptics only
addresses the re-routing of the top buttons.

The final iteration of the kernel patches also route the trackpoint buttons
through the trackpoint device, rendering this patch unnecessary. These patches
are queued for 4.0.

See kernel patch series up to commit cdd9dc195916ef5644cfac079094c3c1d1616e4c
Author: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Date:   Sun Mar 8 22:35:41 2015 -0700

    Input: synaptics - re-route tracksticks buttons on the Lenovo 2015 series

Currently in Dmitry's for-linus branch.

Distributions running older kernels or the kernel stable series which has
partial backports of the above patch series are encouraged to leave the
0644453 commit in and undo this revert.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-03-18 07:25:31 +10:00
Peter Hutterer
064445364b Support the new Lenovo X1 Carbon 3rd trackpoint buttons
This device has the trackpoint buttons wired up to the touchpad to send BTN_0,
BTN_1 and BTN_2 for left, right, middle. This conflicts with previous
touchpads that used those event codes for dedicated scroll buttons.

Add an option HasTrackpointButtons that can be set via a xorg.conf.d
snippets. This option is not intended as a user-set option, rather
we expect distributions to ship some conglomerate of udev/hal rules with
xorg.conf snippets that take effect.

If the option is set, we look at the three affected buttons at the beginning
of HandleState and send button events immediately for them. The HW state is
reset to neutral and other processing continues. This saves us from having to
synchronize these buttons with software buttons (also present on this device),
tapping, etc.

Since the buttons are physically different and (mentally) associated with the
trackpoint device we also don't need to worry about having finger motion event
correctly synced up with the button presses - it's acceptable to send the
presses before the motion events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2015-01-30 09:39:38 +10:00
Peter Hutterer
a36edf8307 Use libevdev's per-device logging functions instead of the global handler
Per-device logging functions don't interfere with other drivers if they also
use libevdev, so use those instead the global log handler if available. If not
available, drop libevdev logging, I don't want to maintain the ifdef mess and
the logging doesn't give us _that_ much benefit.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-08-08 11:09:01 +10:00
Peter Hutterer
c1457c0f71 synaptics 1.8.99
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-08-08 11:02:41 +10:00
Peter Hutterer
3a4cc96590 synaptics 1.8.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-05-13 11:20:25 +10:00
Peter Hutterer
a31ecb669f synaptics 1.7.99.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-04-30 11:41:03 +10:00
Peter Hutterer
fd70990044 synaptics 1.7.99.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-18 07:28:44 +10:00
Peter Hutterer
2e5c0cf439 eventcomm: drop mtdev
All kernel touchpad devices now support slots, there isn't really a need to
support protocol A devices in synaptics. If such devices exist, we just treat
them as non-multitouch devices.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2014-03-12 07:36:40 +10:00
Peter Hutterer
5d8cdaf4b1 Drop the half-baked test suite
This suite was never really maintained anyway, and it is quite hard to do so
anyway. The driver is linked to the server's API too tightly to easily do
independent testing. We need to re-implement stubs for the API the driver
uses, have to track API changes, etc. Not worth the effort.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-02-10 09:03:36 +10:00
Peter Hutterer
48fbf44a39 Bump to 1.7.99
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-01-17 08:18:03 +10:00
Peter Hutterer
03b4faeadf Drop maintainer mode
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-11-04 15:23:02 +10:00
Peter Hutterer
41840a656f Switch to libevdev for the eventcomm backend
This has a potential bug that would need to be fixed in mtdev first:
if we get a SYN_DROPPED and we miss out on events, the current code emulates a
normal EV_SYN, feeds that to mtdev and hopes that that fills the mtdev output
queue.

If mtdev doesn't generate events on that EV_SYN, we're stuck in limbo and may
get weird results. The loop will continue and sync the device, but there's the
off chance we get odd events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-10-14 16:34:10 +10:00
Peter Hutterer
96cf04dce1 synaptics 1.7.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-05-13 10:03:48 +10:00
Peter Hutterer
691e8db4d8 synaptics 1.7.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-04-02 13:12:09 +10:00
Samuel Thibault
89cffd403b Enable ps2comm and alpscomm build on GNU/Hurd
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2012-09-15 23:52:38 +02:00
Peter Hutterer
1770c8a7e8 Remove @DRIVER_NAME@ from Makefile.am
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-05-18 16:49:06 +10:00
Peter Hutterer
3430f4af41 Require xserver 1.12 and inputproto 2.2
This drops conditional compilation of multitouch support, smooth scrolling
support and old ABIs.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10 09:42:54 +10:00
Peter Hutterer
6dea359bc8 Bump to 1.6.99
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-05-10 09:25:55 +10:00
Peter Hutterer
a1162f8032 synaptics 1.6.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-05-03 08:06:32 +10:00
Peter Hutterer
6f086b86e4 Fail if no backends can be found
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-02 10:45:00 +10:00
Niveditha Rau
655d3100fc Include a build for solaris
Signed-off-by: Niveditha Rau <niveditha.rau@oracle.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-05-02 10:45:00 +10:00
Peter Hutterer
085662e9fe synaptics 1.5.99.904
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-04-27 09:20:56 +10:00
Peter Hutterer
d90003383c synaptics 1.5.99.903
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-04-16 16:47:38 +10:00
Peter Hutterer
4a80c0dc38 synaptics 1.5.99.902
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-23 10:38:20 +10:00
Peter Hutterer
dd650a064b synaptics 1.5.99.901
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-14 08:56:45 +10:00
Peter Hutterer
fadf9cf5e8 Always require mtdev on eventcomm
Since a missing mtdev disables all of multitouch on eventcomm, we might as
well always require it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-03-13 16:18:27 +10:00
Chase Douglas
b1b9745979 eventcomm: Initialize touch device and axes
Use mtdev to ensure touches are tracked and of evdev MT protocol type
B.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-01-26 15:51:24 +10:00
Chase Douglas
56d32619b9 Add touch device class support
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-01-26 15:48:37 +10:00
Daniel Stone
299a44cd20 Bump minimum xorg-server requirement to 1.7
This means we can also drop support for pre-ABI v7.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2011-08-25 09:50:32 +10:00
Peter Hutterer
05fb9b5f24 Bump to 1.5.99
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-25 09:50:27 +10:00
Peter Hutterer
98e8481cf4 Bump to 1.4.99.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-19 15:57:08 +10:00
Gaetan Nadon
e3d5c39796 Add distcheck support for header files when sdk is not writable
During distcheck, a writable location is supplied for the install test.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-07-11 08:10:58 -04:00
Gaetan Nadon
cb6818b623 Revert "build: collapse all Makefile.am files into a single non-recursive one."
This reverts commit 39afe69ad7.

1. For such a small module, the build time improvement is most likely
negligible. At least, I'd like to see some timings proving it's
worthiness before seeing the patch go back in.

2. This kind of change would need a thorough review. The need to
operate the build from a single toplevel Makefile is a significant
change. The two most noticeable issues for me are that collapsing all
the Makefiles could easily cause namespacing issues with the
variables, and operating on files outside the current directory can
introduce subtle bugs. I feel that the non-recursive style is
generally less robust than the standard recursive make scheme.

3. It's unlike all the other X.org modules. This isn't a showstopper
for me, but the recursive style is well understood here and you've
beaten all the modules into a consistent format that makes build bugs
unique to specific modules less likely.

Acked-by: Dan Nicholson <dbn.lists@gmail.com>

To give a concrete example for #3 above, the 175 man pages are much
easier maintained using a very similar makefile in the man directory
of all X.Org module.

The cost of maintaining a single makefile is much higher. Every target
in the makefile has to be reviewed and tested when changes are made.
Not everyone has the all the skills to handle widely different targets
such as man pages, DocBook/XML, librairies, C code, distribution hooks,
and so on.

Acked-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-07-05 16:39:33 -04:00
Gaetan Nadon
9803edca13 Revert "build: create object files following the sources' structure."
This reverts commit dac624ad2b.

Acked-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-07-05 16:39:32 -04:00
Gaetan Nadon
414a6aac17 Revert "build: apply the distcheck tricks used in xf86-input-evdev"
This reverts commit 6eb829e07e.

Althought this feature is desirable, it introduces a dormant bug.

The value of sdkdir during distcheck points to an empty xserver sdkdir
where xserver-properties.h is expected by the tools.

Specifying XORG_CFLAGS for the tools worked around the issue by supplying
the real path to the xserver sdk. tools must not depend on xserver.
In any case it would be a brittle workaround.

--with-xorg-conf-dir='$${sysconfdir}/xorg':
althought this value will work, it brings some confusion as it is
unrelated to the where the configuration files are normally placed,
relative to $prefix which is /usr/share/X11 and not /etc.

This feature can be reintroduced later with the proper solution.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-07-05 16:39:32 -04:00
Diego Elio Pettenò
6eb829e07e build: apply the distcheck tricks used in xf86-input-evdev
With this change it is possible to complete "make distcheck" safely on the
module, as it no longer tries to write to system directories.

Since synaptics also installs a configuration file, xorg-conf-dir also
needs to be overridden during distcheck.

Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-26 12:11:34 +10:00
Diego Elio Pettenò
dac624ad2b build: create object files following the sources' structure.
This allows building object files following the same subdirectory structure
as it was used before with the recursive build system, while keeping the
build non-recursive.

Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-26 12:11:34 +10:00
Diego Elio Pettenò
39afe69ad7 build: collapse all Makefile.am files into a single non-recursive one.
With this change, the whole of the build is done non-recursively in the
top-level Makefile.am. This reduces the amount of overhead due to recursing
into directories only to build one file.

Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
Signed-off-by: Christoph Brill <egore911@egore911.de>
2011-05-15 21:46:06 +02:00
Diego Elio Pettenò
4d4c4d0ff5 build: report a fatal error if XORG_DRIVER_CHECK_EXT is undefined.
Just to give a bit of an idea of what the problem is when configure fails
later on.

Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
Signed-off-by: Christoph Brill <egore911@egore911.de>
2011-05-15 21:43:47 +02:00
Peter Hutterer
9290ce357b Add basic framework for unit-testing.
Also adds a bunch of fake symbols so we can link. Note that any of these
symbols will return false, 0 or whatever the zero value for the symbol is.
Care must be taken when writing test that this doesn't screw up the test.

Tests are always built but only run on make check.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04 09:39:19 +10:00
Peter Hutterer
bc89d7db42 Require macros 1.13 for unit testing
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-04-04 09:39:19 +10:00
Peter Hutterer
43c3720cc2 Bump to 1.4.99
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-21 11:38:13 +10:00
Peter Hutterer
d6fc5be296 Merge branch 'next' 2011-03-04 12:47:00 +10:00
Peter Hutterer
de0dfb7644 synaptics 1.4.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-04 12:36:24 +10:00
Alexandr Shadchin
cf451f34e3 Now ps2comm and alpscomm backend optional
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01 12:02:10 +10:00
Peter Hutterer
8ec84d1850 synaptics 1.3.99.901
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-21 12:57:21 +10:00
Peter Hutterer
6f7daad930 Bump to 1.3.99
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-09-01 13:42:56 +10:00
Peter Hutterer
1a9495a74c synaptics 1.3.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-09-01 09:04:11 +10:00