Commit Graph

1537 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
436f80409a .github: use new common driver build actions
Using the new driver build actions in X11Libre/actions-build-driver repo,
instead of having lots of duplicated pipeline and script in all the
individual driver repos.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-23 10:14:52 +01:00
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>
xlibre-xf86-input-synaptics-25.0.0
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
Enrico Weigelt, metux IT consult
e293264d16 drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:50:01 +01:00
Enrico Weigelt, metux IT consult
8bfd4dcbd8 drop obsolete #ifdef HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-17 19:06:58 +01:00
Enrico Weigelt, metux IT consult
d82a504888 README.md: fix URLs
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 11:06:10 +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>
xlibre-xf86-input-synaptics-1.10.0.2
2025-07-29 18:55:48 +02:00
Enrico Weigelt, metux IT consult
44d4dbc70f .github: add CI pipeline
This pipeline builds the driver against the latest Xserver stable
release as well as current master.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-28 20:06:27 +02:00
callmetango
edb3d975d1 .github: Add issue forms
Add the following forms for issue creation:

* Bug report
* Feature request
* Code change
* Documentation update
* Organizational task

* add issue type selection page on "New Issue" call
* mention Github Discussions and the mailing list where appropriate

Part-of: X11Libre/misc#156
Signed-off-by: callmetango <callmetango@users.noreply.github.com>
2025-07-07 17:02:09 +02:00
Alan Coopersmith
42ac30568e Accept --help & --version as aliases to -? & -V
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/25>
xlibre-xf86-input-synaptics-1.10.0.1
2025-04-28 13:11:15 -07:00
Alan Coopersmith
252ca68fef syndaemon: add -V option to print version
Matches synclient -V

Also updates man page to include missing -v option that was listed
in the usage output.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/25>
2025-04-27 16:33:47 -07:00
Alan Coopersmith
a072d695bc Improve man page formatting
More closely follow common style as described on
https://man7.org/linux/man-pages/man7/man-pages.7.html

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/24>
2025-04-27 12:30:09 -07:00
Peter Hutterer
bd390922d8 gitlab CI: set standard workflow rules for fdo projects
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/23>
2025-03-03 11:32:34 +10:00
Icenowy Zheng
bbb6aea35c eventcomm: add VID 0x06cb for Synaptics devices
The vendor ID 0x06cb is used by HID devices from Synaptics.

Match it to MODEL_SYNAPTICS.

Tested on a Panasonic CF-SV equipped with "Synaptics TM3136-020"
touchpad, which previously uses MODEL_UNKNOWN to calculate edge width
and the result is too narrow.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/22>
2025-02-25 14:30:27 +08:00
Alan Coopersmith
9220a1b16d xf86-input-synaptics 1.10.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-input-synaptics-1.10.0
2025-01-05 10:46:04 -08:00
Alan Coopersmith
3d1486dbe9 Variable scope reductions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/20>
2024-12-04 16:19:31 -08:00
Alan Coopersmith
ca05a6034e Use snprintf instead of sprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/20>
2024-12-04 13:48:35 -08:00
Enrico Weigelt, metux IT consult
2a60fb4fb4 descriptive warning message instead of BUG_WARN() anymore
Since current xserver mainline dropped BUG_WARN() macro from os.h and
we only use it twice, it's trivial to just print the warning directly
and at that point make it a bit more descriptive.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/12>
2024-12-04 21:43:31 +00:00
Enrico Weigelt, metux IT consult
a0becc7957 fix FTBS against recent xorg server tree
Recent xserver master moved out the BUG_*() macros from os.h,
causing FTBS on xf86-input-synaptics:

> synaptics.c: In function 'clickpad_guess_clickfingers':
> synaptics.c:2638:5: error: implicit declaration of function 'BUG_RETURN_VAL' [-Werror=implicit-function-declaration]
> 2638 |     BUG_RETURN_VAL(hw->num_mt_mask > sizeof(close_point) * 8, 0);

Since that macro is only used once, and that particular case deserves some
more expressive error message anyways, it's trivial doing an explicit
error printout here, instead of having to support the BUG_* macros as
official module API on xserver side forever.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Reported-By: Peter Hutterer <peter.hutterer@who-t.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/12>
2024-12-04 21:43:31 +00:00
Enrico Weigelt, metux IT consult
89900bcf4d eventcomm: fix possible buffer overflow
eventcomm.c: In function 'EventAutoDevProbe':
eventcomm.c:1045:32: warning: '%s' directive writing up to 255 bytes into a region of size 53 [-Wformat-overflow=]
 1045 |             sprintf(fname, "%s/%s", DEV_INPUT_EVENT, namelist[i]->d_name);
      |                                ^~
eventcomm.c:1045:13: note: 'sprintf' output between 12 and 267 bytes into a destination of size 64
 1045 |             sprintf(fname, "%s/%s", DEV_INPUT_EVENT, namelist[i]->d_name);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/15>
2024-12-04 21:37:23 +00:00
Enrico Weigelt, metux IT consult
373139dd06 drop compat with ancient Linux kernel
linux-2.6.30 was released 15 years ago - doesn't seem to be necessary
to still support such ancient kernels.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-10 11:14:19 +02: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
6330833fd1 Take care of -Wempty-body warning from call to empty PS2DBG macro
ps2comm.c: In function ‘ps2_synaptics_get_packet’:
ps2comm.c:477:49: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
  477 |                 PS2DBG("faked reset received\n");
      |

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
7e68eb70ca Clear 9 of 9 -Wimplicit-fallthrough warnings
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
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
e3f6c5c642 Fix -Wold-style-declaration warning
synaptics.c:143:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
  143 | const static struct {
      | ^~~~~

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
46d0532962 Handle a -Wstrict-prototypes/-Wold-style-definition pair of warnings
synclient.c:196:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  196 | dp_init()
      | ^~~~~~~
synclient.c: In function ‘dp_init’:
synclient.c:196:1: warning: old-style function definition [-Wold-style-definition]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 17:10:41 -08:00
Alan Coopersmith
a9bf2939f0 Handle 5 -Wmissing-prototypes warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 17:08:13 -08:00
Alan Coopersmith
f52912d062 Fix 185 -Wdiscarded-qualifiers warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 17:01:50 -08:00
Alan Coopersmith
13a26918d8 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-05 16:55:03 -08: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
f642d1700c gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-01 12:13:46 -07:00
Alan Coopersmith
8970519bf9 gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09 12:06:54 -08:00
Alan Coopersmith
bf3c0cb38a xf86-input-synaptics 1.9.2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-input-synaptics-1.9.2
2022-07-10 16:32:38 -07:00
Alan Coopersmith
ae160fc87b Convert remaining source files from ISO-8859-1 to UTF-8
Most were already converted.  Fixes error raised by FlawFinder in CI:
Error: encoding error in ./src/synaptics.c
'utf-8' codec can't decode byte 0xa9 in position 16: invalid start byte

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16 13:04:35 -08:00
Alan Coopersmith
74282e856c gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16 12:46:06 -08:00
Alan Coopersmith
592215a584 Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-16 12:42:17 -08: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
Pip Cet
3e4bc35dfe synclient: allow negative/large values for AreaLeftEdge etc. 2021-04-09 16:58:38 +00:00
Ariadne Conill
7c32bc6f1f eventcomm: fix compile with pre-time64 kernels 2020-07-28 04:04:23 -06:00
Ariadne Conill
073b1b40bd eventcomm: use 64-bit time safe accessors instead of timeval directly
when building on a 32-bit host with 64-bit time_t, using the
input_event and input_event_usec accessors are necessary to deal with
translation.
2020-07-22 02:29:08 -06:00
Matthieu Herrb
a4e5f74b58 Use fabs() instead of abs() on double values.
Silences clang warnings.

Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
Reviewed-by: Walter Harms <wharms@bfs.de>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-02-11 10:58:04 +10: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
Alan Coopersmith
8e61f0d57e Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 12:05:15 -08:00
Peter Hutterer
a46338a992 synaptics 1.9.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xf86-input-synaptics-1.9.1
2018-05-29 13:17:59 +10:00
Peter Hutterer
9f3a6ac97e eventcomm: if we get a read error other than EAGAIN, remove the fd
Otherwise poll() keeps on triggering on our fd until udev gets around to
notifying the server that the device is in some state of deadness. Meanwhile,
the input thread is busy filling the log up with "Read error" messages. Great
way to test file systems and their capacity to handle out of space scenarios
but otherwise a bit pointless. Those FS developers should write their own
tests instead of relying on the synaptics driver!

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-05-15 10:35:38 +10:00
Luca Castagnini
59eb0c372b Replace SA_ONESHOT with the more portable SA_RESETHAND.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-10-26 08:41:12 +10:00