[SLE] x11-input-synaptics problem
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
On Jun 12, 06 19:31:25 -0600, Azael Avalos wrote:
... (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.
So you're saying libsynaptics doesn't work at all just because the driver version is not displayed correctly? Whoow...
Plase include this "fix" on the next update release of the driver, heres the text containing the patch:
Please create a bug report and attach your patch. I cannot entirely assure you that we will use this fix, as the next version of SuSE Linux will use the modularized X tree. For service packs and updated packages it is up to Stefan whether he thinks the problem is severe enough to be addressed.
I didn't knew where to send this, so I opted for the mailing list in hopes that some SUSE folks see it and included the "fix", If this needs to be sent somewhere else, I'll gladly do, just tell me where, jeje ;-)
https://bugzilla.novell.com/
Thanks
Matthias
--
Matthias Hopf
On 6/13/06, Matthias Hopf
... (II) Synaptics touchpad driver version 0.14.5 (-) ...
The first number is the VERSION which is displayed correctly 0.14.5, but
On Jun 12, 06 19:31:25 -0600, Azael Avalos wrote: 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.
So you're saying libsynaptics doesn't work at all just because the driver version is not displayed correctly? Whoow...
Indeed, and actually what the driver displayed was this on XOrg log file was the following: ... (II) Synaptics touchpad driver version 0.14.5 (-1211412805) ... So at the time libsynaptics checked for the driver version, it reported: -121141.-28.-5 which caused it to "fail" as supported version numbers didn't match
Plase include this "fix" on the next update release of the driver, heres the
text containing the patch:
Please create a bug report and attach your patch.
I'll do, thanks for pointing me to the right place :-) I cannot entirely assure you that we will use this fix, as the next
version of SuSE Linux will use the modularized X tree. For service packs and updated packages it is up to Stefan whether he thinks the problem is severe enough to be addressed.
Well, whenever the first alpha comes out, I'll check to see if the problem is still there (and it's caused by the same "stuff") and submit a new bugreport, or point to the bug report I submitted.
I didn't knew where to send this, so I opted for the mailing list in hopes
that some SUSE folks see it and included the "fix", If this needs to be sent somewhere else, I'll gladly do, just tell me where, jeje ;-)
Thanks
Matthias
-- Matthias Hopf < mhopf@suse.de> __ __ __ Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat@mshopf.de Phone +49-911-74053-715 __) |_| __) |__ labs www.mshopf.de
Saludos Azael -- -- El mundo apesta y vosotros apestais tambien --
participants (2)
-
Azael Avalos
-
Matthias Hopf