Hallo
I use libsynaptics in my own program (KToshiba) to deal with MousePad
enabling/disabling stuff.
When I had SUSE 10.0 installed with XOrg 6.8.something the library worked
without problems, but as soon as I updated XOrg to 6.9.0 it stopped working
somehow, and now that I have installed SUSE 10.1, I thought the problems
might be gone, wrong, the problem was still there. I thought the problem was
caused by the library, but I discovered it was because of the driver itself
(x11-input-synaptics).
I used the SUSE src.rpm to create an updated rpm of the synaptics driver
(version 0.14.5), after that I took some time browsing the code, the spec
file and the patches contained there in order to identify the offender, and
so I found it.
The problem resides on the patch that creates the Imakefile (
synaptics-0.14.4.diff) on line 14, the code is like this:
+DEFINES = -DVERSION="\"`cat VERSION`\"" -DVERSION_ID="\"`cat VERSION_ID`\""
As a result, the synaptics driver loads and works ok, but if you look at
XOrg log (/var/log/Xorg.0.log) and it reports the following
...
(II) Synaptics touchpad driver version 0.14.5 (-)
...
The first number is the VERSION which is displayed correctly 0.14.5, but the
second number is displayed wrong, it should be 1405 for synaptics driver
version 0.14.5 and should be 1404 for synaptics driver version 0.14.4.
So the offending part is on the definition of the VERSION_ID.
Changing -DVERSION_ID="\"`cat VERSION_ID`\"" to DVERSION_ID="`cat
VERSION_ID`" solves the problem.
-DVERSION="\"`cat VERSION`\"" is a string in the synaptics driver (
synaptics.c, line 327) BUT
-DVERSION_ID="\"`cat VERSION_ID`\"" is not a string, is an int, and thus,
making that small change on the patch file, now the synaptics driver shows
the correct VERSION_ID as it should
...
(II) Synaptics touchpad driver version 0.14.5 (1405)
...
Plase include this "fix" on the next update release of the driver, heres the
text containing the patch:
--- Imakefile
+++ Imakefile
@@ -0,0 +1,29 @@
+XCOMM $XFree86:
xc/programs/Xserver/hw/xfree86/input/acecad/Imakefile,v 1.52001/08/13
19:35:00 dawes Exp $
+
+#define IHaveModules
+#include