summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2014-02-21Revert "Drop circular pad support"Peter Hutterer
This reverts commit 3b02e7fd81da4b100fb9ac32378f6d50f54cf0e2. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Conflicts: man/synaptics.man src/synaptics.c Acked-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit 4f543ce1d6ae9ca11086a3009d149505590584a8)
2014-02-21Revert "Purge scrollbuttons (repeat)"Peter Hutterer
This reverts commit 0903d99ada1755f11a2a5cbf89a345de896e18ec. Scroll buttons are still present in some modern devices, e.g. the Fujitsu Lifebook E782 and others in the series. Conflicts: include/synaptics.h man/synaptics.man src/synaptics.c (cherry picked from commit e0069c154440305ece6def92a9813a9f8004b2fb)
2013-03-26syndaemon: list -? in help/man pagePeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-03-26synclient: support -? for usagePeter Hutterer
man page and help claim we support this, so let's do so Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-03-26synclient: remove 'm' and 'h' from getopt and man pagePeter Hutterer
Removed as of 83d88b253139f9c92d619e7ad7c3981138893536 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-03-26tools: drop -s listing in synclient's help output. SHM is gone.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-05-31tools: un-typedef TouchpadStatePeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-11tools: coasting speed is not capped at 20, cap it at 255Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-05-10Move synaptics.h leftovers to synapticsstr.h, drop synaptics.hPeter Hutterer
This leaves us with a duplicated define for the maxbuttons but I'll live with that for now. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Drop circular pad supportPeter Hutterer
Do such devices still exist? Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Purge scrollbuttons (repeat)Peter Hutterer
I doubt devices that have scrollbuttons are still manufactured. Having untested code around is just asking for trouble. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Purge edge motionPeter Hutterer
A funny feature, but unreliable and mostly untested. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Drop trackstick emulation modePeter Hutterer
"Trackstick emulation mode? That exists?" I hear you say? Yes, indeed. Well, no, not anymore. This driver is already unmaintainable without features like this. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Bury shm - or what was left of itPeter Hutterer
SHM configuration was removed in Apr 2009 (c09a3d50e9), since then it has only been usedful for debugging. And we have better tools (evtest) for debugging hardware events. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10tools: undo indentation in synclient's parameter listPeter Hutterer
more more readable this way Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Indent consistentlyPeter Hutterer
x-indent-all.sh from xorg/util/modular as of c2d630fab65dbe3409af3947f6f442782ddb026f Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-04-16Support inverted scroll direction.Alyssa Hung
This patch allows scroll direction to be inverted by allowing VertScrollDelta and HorizScrollDelta to be set to negative values. This enables behaviour that is consistent with modern touchscreen devices, where the content scrolls in the same direction as the user's finger movement. Signed-off-by: Alyssa Hung <ahung@isisview.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-04-11tools: skip non-existing propertiesPeter Hutterer
If a property doesn't exist on a device, skip it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-03-14Add soft button areas propertyChase Douglas
Some clickpad devices have button areas painted on them. Set this property to the area of the right and middle buttons to enable proper click actions when clicking in the areas. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-14Add clickpad device propertyChase Douglas
Add it as a writable device property. We may not know how to probe some clickpads so allow the user to override it. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-03-13tools: add hysteresis support to synclientPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-02-21synclient: accept XA_CARDINAL as 32-bit type (#46330)Peter Hutterer
PressureMotionMaxZ and PressureMotionMinZ were changed from float to XA_CARDINAL in 24c44375025576dd600ccf370ba365e5d94dc22. Accept the new type. Fixes: PressureMotionMinZ = format mismatch (32) PressureMotionMaxZ = format mismatch (32) X.Org Bug 46330 <http://bugs.freedesktop.org/show_bug.cgi?id=46330> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-04synclient: fix indentation of "format mismatch" parametersPeter Hutterer
Prefix is 4 spaces, not three. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-28syndaemon: Remove superfluous message.Peter Hutterer
toggle_touchpad() already prints if we're running verbose. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-28syndaemon: document exit codes and change them to fall into categories.Peter Hutterer
Changing pid file creation failure to same exit code that fork() failure uses. Changing XRECORD init failure to unique code. This way clients can trap exit code 4 and re-start syndaemon without the -R flag. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-11tools: remove unrequired sdkdir include directiveGaetan Nadon
Now that xserver-properties.h is no longer included, the path to the xserver header files is no longer needed. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-07-11tools: don't include xserver-properties.hPeter Hutterer
Remove the header inclusion to avoid dependency of synclient on the xserver headers. The only property we need from the server is FLOAT and we can simply define that here. Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-05Revert "build: sort building of tools, ensure that cross-pkg-config works."Gaetan Nadon
This reverts commit 4005df66072ceac175ea71427deb16176262f197. The patch introduces a couple of issues. 1) These tools are apps and conceptually do not depend on Xserver, so XORG_CFLAGS should not be used. It included pixman header files. Only drivers depend xserver 2) XORG_CFLAGS may contain, depending on the platform, a compiler visibilty flag. Compiler flags cannot be assigned to AM_CPPFLAGS preprocessor flags variable. There were two changes introduced by the patch. 1) Possible wrong order of include directives The commit text does not mention which paths may be in the wrong order. 2) Incorrect usage of AM_LDFLAGS The patch does not really change anything. If the intention was for the tools to link directly to the libraries, it would look like: LDADD = $(top_builddir)/src/libpciaccess.la # scanpci example This is only possible for libraries built in the same package. There is nothing wrong in putting -l -L flags in LDADD, but should there be other flags, LDFLAGS would be required, ending with two variables. It looks easier to revert the patch to the previosuly known good version which has been in service for a year. Unfortunatly, the reversal breaks distcheck as it removes an unsuspected workaround. The value of sdkdir during distcheck points to an empty xserver sdkdir where xserver-properties.h is expected by the tools. Specifying XORG_CFLAGS worked around the issue by supplying the real path to the xserver sdk. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-07-05Revert "build: collapse all Makefile.am files into a single non-recursive one."Gaetan Nadon
This reverts commit 39afe69ad7d2258d4043044d1283bd6e311e48da. 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-05-26syndaemon: don't compare against a null-property. (#37459)Peter Hutterer
synaptics_property is not set, touchpad_off_prop is the property we need to check against. False check for (nprops != 0) instead of (nprops < 0) would result in syndaemon always reporting a touchpad device, even if none are present. X.Org Bug 37459 <http://bugs.freedesktop.org/show_bug.cgi?id=37459> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-26syndaemon: add vim snippet for right indentation/tabstop, etc.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-26syndaemon: fix abysimal indentation in dp_get_device.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-15build: collapse all Makefile.am files into a single non-recursive one.Diego Elio Pettenò
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-15build: sort building of tools, ensure that cross-pkg-config works.Diego Elio Pettenò
Without this change, cross-pkg-config could bring up the wrong paths to $includedir/xorg, but also fixes linkage to not use LDFLAGS where LDADD should have been used. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com> Signed-off-by: Christoph Brill <egore911@egore911.de>
2011-04-18Drain XRecord connection of any events after handling repliesChase Douglas
If the X server sends an event to the XRecord connection the event will never be handled. This will cause the event queue to fill up in Xlib and lead to syndaemon running away at 100% cpu usage. This change drains any events from the connection. It's not a fix for the underlying bug in the server or Xlib, but it does paper over the issue for now. https://bugs.launchpad.net/bugs/754470 http://bugs.freedesktop.org/show_bug.cgi?id=31921 Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18Revert "Add synaptics orientation support"Peter Hutterer
This patch needs more work before we can ship it. This reverts commit 049d5fb6037b34d94b24cb8300849cf4e3b67437. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-09Add synaptics orientation supportAapo Rantalainen
This patch allows usage of "synclient Orientation=0" (values from 0 to 3). It will rotate the touchpad similar to "xrandr -o". Original patch was extended for alps and ps2. Signed-off-by: Christoph Brill <egore911@egore911.de>
2011-02-17syndaemon: reset idle time if the system time has changed (#31968)Peter Hutterer
If the system time is changed backwards while the touchpad is disabled through syndaemon it remains disabled until the time catches up with the previous idle time again. Avoid this by resetting last_activity with a time that will trigger re-enabling of the device. X.Org Bug 31968 <http://bugs.freedesktop.org/show_bug.cgi?id=31968> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-01-17syndaemon.c: Add #include <string.h>Alan Coopersmith
Solaris FD_ZERO is defined using memset, but <sys/select.h> doesn't include <string.h> itself, leading to compiler warning: "syndaemon.c", line 404: warning: implicit function declaration: memset Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-01-17synclient.c: Replace old index() function with C89-standard strchr()Alan Coopersmith
Fixes Solaris compiler warnings of: "synclient.c", line 152: warning: implicit function declaration: index "synclient.c", line 152: warning: improper pointer/integer combination: op "=" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-12-06syndaemon: decouple background mode from quietnessAlessandro Guido
syndaemon currently outputs lots of stuff when not running in background mode. However, current init daemons and session managers can manage to launch the daemon in background without "-b" just fine (if not better), by doing the fork() themselves. Indeed, if one uses that setup, ie. by having syndaemon launched by GNOME at login, it gets the ~/.xsession-errors file spammed by Enable/Disabled messages. This patch fixes this by introducing a new verbose (-v) flag that enables those messages and makes syndaemon quiet by default. Signed-off-by: Alessandro Guido <ag@alessandroguido.name> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-08-20Added "friction physics" so coasting can stop on its own.Patrick Curran
When you are coasting (but not corner coasting) you might want the scrolling to slow down and stop on its own. This also lets you start coasting while using a two finger scroll. Signed-off-by: Patrick Curran <pjcurran@wisc.edu> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Tested-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-08-17synclient: don't print "missing" if a property doesn't exist.Peter Hutterer
Virtually all touchpads still in use have one or more properties missing anyway. If it's not in the list, then it's missing. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-17Purge GuestMouse support.Peter Hutterer
Guest mouse dates back to quite a while ago, hasn't been tested for ages and the current synaptics interface guide claims the bit that we used to check if guestmouse is available is "reserved for future use. The host should ignore the values of reserved bits when reading the capability bits." Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-17synclient: allow Min|MaxSpeed values of > 1.0.Peter Hutterer
With the new accel mechanisms, the old ranges don't apply anymore. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-05-31config: add AC_CHECK_LIB for math library functionsGaetan Nadon
It ensures library is installed and sets LIBS = -lm Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-31config: unconditionaly build synclient and syndaemon appsGaetan Nadon
The current conditional building of the apps was introduced by commit 080caee95c46bb471d1442dcab246460cad8c7be due to optional support properties. This is no longer an issue. There are no longer any reason not to build these bona fide apps. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-31config: fix warnings, m4 quoting and layoutGaetan Nadon
Fix some m4 quoting Fix some autoconf warnings Regroup statements per section Add comments Regroup xtst and recordproto (a prereq) flags together Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-31config: rework the synclient and syndaemon dependenciesGaetan Nadon
The driver does not require inputproto package The hunting for record.h is done only if libXtst is installed AC_CHECK_HEADERS is used rather than checking for package versions HAVE_PROPERTIES is no longer required Normal config output: checking for XI... yes checking for XTST... yes checking for X11/extensions/record.h... yes Permutations of --enable-tools and dependencies: build_tools libXi installed Result ----------- --------------- --------- yes yes build tools auto yes build tools no yes skip build yes no abort configuration auto no warn and skip build no no warn and skip build Permutations of libXtst, record.h and recordproto libXtst record.h recordproto syndaemon installed installed installed using XRecord? yes yes yes yes yes no yes no no no yes no no yes yes no no no no no Other scenarios are possible where you have 2 different versions of record.h installed in different $prefix locations. The order of *_CFLAGS will determine which one gets picked first. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-20Building syndaemon and synclient needs $(XI_CFLAGS) and $(AM_CFLAGS)Gabor Z. Papp
Reported-by: Gabor Z. Papp <gzp@papp.hu> Signed-off-by: Gabor Z. Papp <gzp@papp.hu> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>