128 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
22cb2440aa configure.ac: increase minimum xserver version to 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-19 16:00:27 +01:00
Enrico Weigelt, metux IT consult
997366c31a release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 18:45:31 +01:00
Enrico Weigelt, metux IT consult
a23c402a9e configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 18:45:04 +01:00
Enrico Weigelt, metux IT consult
aa8243fff9 drop xorg-synaptics.pc
Nothing is compiling against this driver, so need for .pc file.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 17:53:18 +01:00
b-aaz
42f463c307 configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver.
Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc.

Signed-off-by: b-aaz <b-aazbsd.proton.me>
2025-07-29 18:55:48 +02:00
Alan Coopersmith
9220a1b16d xf86-input-synaptics 1.10.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2025-01-05 10:46:04 -08:00
Enrico Weigelt, metux IT consult
64407e809d bump minimal xorg version to 1.18
1.18 was released a decade ago, so it seems reasonable stop supporting
older ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/18>
2024-05-14 11:07:56 +02:00
Alan Coopersmith
dbc772982e Quiet -Wredundant-decls from xorg/os.h fallbacks for timingsafe_memcmp
The Xorg headers provide their own version of timingsafe_memcmp for
platforms that don't have them in libc yet, but rely on configure to
set HAVE_* defines to determine if they should be defined in the headers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/17>
2024-05-12 23:03:21 +00:00
Alan Coopersmith
d21c533fd5 Raise minimum supported Xserver version from 1.12 to 1.15
Drops support for ABI_XINPUT_VERSION < 20, including removing support
for driver-side coordinate scaling, since the X server handles it now.

Xserver 1.15 was released in Dec. 2013.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-05-12 14:27:20 -07:00
Alan Coopersmith
8cdcdd1279 configure: updates to quiet obsolete macro warnings
Clears autoconf warnings:

configure.ac:38: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:38: You should run autoupdate.
aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from...
configure.ac:38: the top level
configure.ac:68: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:68: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:68: the top level
configure.ac:78: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:78: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:78: the top level

libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-12-02 15:03:41 -08:00
Alan Coopersmith
bf3c0cb38a xf86-input-synaptics 1.9.2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-10 16:32:38 -07:00
Alan Coopersmith
6d6c2e7922 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16 12:37:06 -08:00
Alan Coopersmith
f8d896ddca Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 12:50:31 -08:00
Peter Hutterer
a46338a992 synaptics 1.9.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-05-29 13:17:59 +10:00
Peter Hutterer
3261e07c92 synaptics 1.9.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-11-18 13:00:09 +10:00
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