FS#11396 - Synaptics <-> Xorg-server 1.5RC6 (1.4.99.906)

Attached to Project: Arch Linux
Opened by M.O. (hiob) - Thursday, 04 September 2008, 12:00 GMT
Last edited by Jan de Groot (JGC) - Friday, 05 September 2008, 10:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Since I updated my Xorg-server to version 1.5RC6 (currently in testing), the synaptics thouchpad-driver doesn't work.
The thouchpad works with xf86-input-synaptics.

package version(s):
testing/xorg-server 1.4.99.906-2
extra/synaptics 0.14.6.99-2
testing/xf86-input-synaptics 0.15.0-1

"cat /proc/bus/input/devices" (while working with xf86-input-synaptics):

I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

...

I: Bus=0011 Vendor=0002 Product=0007 Version=a3b3
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio2/input0
S: Sysfs=/class/input/input7
U: Uniq=
H: Handlers=mouse1 event7
B: EV=b
B: KEY=6420 0 70000 0 0 0 0 0 0 0 0
B: ABS=11000003




xorg.conf:

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "aticonfig-Screen[0]-0" 0 0
InputDevice "Touchpad" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

...

Section "Module"
Load "glx"
Load "dri"
Load "drm"
Load "extmod"
# Load "record"
Load "xtrap"
Load "dbe"
Load "GLcore"
Load "freetype"
Load "synaptics"
EndSection

...

Section "InputDevice"
Identifier "Touchpad"
Driver "synaptics"
Option "Device" "/dev/input/mouse1"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "HorizScrollDelta" "100"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.06"
Option "MaxSpeed" "0.12"
Option "AccelFactor" "0.0010"
Option "SHMConfig" "on"
EndSection

This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 05 September 2008, 10:17 GMT
Reason for closing:  Not a bug
Comment by Michael (SiD) - Thursday, 04 September 2008, 16:22 GMT
I can confirm it.

this is from the xorg logfile.

$ cat /var/log/Xorg.0.log | grep -e synaptics
(II) LoadModule: "synaptics"
(II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
dlopen: /usr/lib/xorg/modules/input//synaptics_drv.so: undefined symbol: xf86errno
(EE) Failed to load /usr/lib/xorg/modules/input//synaptics_drv.so
(II) UnloadModule: "synaptics"
(EE) Failed to load module "synaptics" (loader failed, 7)
(II) LoadModule: "synaptics"
(II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
dlopen: /usr/lib/xorg/modules/input//synaptics_drv.so: undefined symbol: xf86errno
(EE) Failed to load /usr/lib/xorg/modules/input//synaptics_drv.so
(II) UnloadModule: "synaptics"
(EE) Failed to load module "synaptics" (loader failed, 7)
(EE) No Input driver matching `synaptics'


I was wondering why there are two slashes:

(II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so

Is it possible that's the problem?
Comment by Michael (SiD) - Thursday, 04 September 2008, 17:05 GMT
I tried to rebuild synaptics against xorg-server 1.5RC6 with the PKGBUILD from ABS but it fails.

synaptics.c
In file included from /usr/include/xorg/misc.h:108,
from synaptics.c:70:
/usr/include/xorg/os.h:519:16: warning: anonymous variadic macros were introduced in C99
synaptics.c:73:24: error: xf86_ansic.h: No such file or directory
synaptics.c: In function 'SetDeviceAndProtocol':
synaptics.c:195: warning: implicit declaration of function 'strcmp'
synaptics.c: In function 'alloc_param_data':
synaptics.c:239: warning: implicit declaration of function 'xf86shmget'
synaptics.c:240: warning: implicit declaration of function 'xf86shmctl'
synaptics.c:240: error: 'XF86IPC_RMID' undeclared (first use in this function)
synaptics.c:240: error: (Each undeclared identifier is reported only once
synaptics.c:240: error: for each function it appears in.)
synaptics.c:242: error: 'XF86IPC_CREAT' undeclared (first use in this function)
synaptics.c:246: warning: implicit declaration of function 'xf86shmat'
synaptics.c: In function 'free_param_data':
synaptics.c:273: error: 'XF86IPC_RMID' undeclared (first use in this function)
synaptics.c: In function 'synSetFloatOption':
synaptics.c:287: warning: implicit declaration of function 'xf86sscanf'
synaptics.c: In function 'SynapticsPreInit':
synaptics.c:494: warning: implicit declaration of function 'xf86mknod'
synaptics.c:494: error: 'XF86_S_IFIFO' undeclared (first use in this function)
synaptics.c:495: error: 'xf86errno' undeclared (first use in this function)
synaptics.c:495: error: 'xf86_EEXIST' undeclared (first use in this function)
synaptics.c:504: warning: implicit declaration of function 'xf86free'
synaptics.c: In function 'move_distance':
synaptics.c:697: warning: implicit declaration of function 'xf86sqrt'
synaptics.c: In function 'angle':
synaptics.c:732: warning: implicit declaration of function 'xf86atan2'
synaptics.c: In function 'diffa':
synaptics.c:739: warning: implicit declaration of function 'xf86fmod'
synaptics.c: In function 'SynapticsGetHwState':
synaptics.c:847: warning: implicit declaration of function 'xf86write'
synaptics.c: In function 'ComputeDeltas':
synaptics.c:1405: warning: implicit declaration of function 'xf86modf'
make: *** [synaptics.o] Error 1
==> ERROR: Build Failed.
Aborting...

On the synaptics homepage thez say xf86-input-synaptics is a newer version of synaptics
http://w1.894.telia.com/~u89404340/touchpad/

So I think xf86-input-synaptics will replace synaptics in the future.
Am I right?
Comment by Maciej Libuda (Mefju) - Thursday, 04 September 2008, 18:28 GMT
Yes xf86-input-synaptics is now included in Xorg.
I'm using xorg from x86_64 testing and this is my configuration for it:

xorg.conf:
=========
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Synaptics Touchpad" "SendCoreEvents"
EndSection


Section "Module"
Load "evdev"
Load "GLcore"
Load "xtrap"
Load "synaptics"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "Protocol" "auto-dev"
Option "SHMConfig" "true"

Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
EndSection

I don't use other options, because defaults are suitable for me.

part of Xorg.0.log:
==================
(II) Synaptics touchpad driver version 0.15.0
(--) Synaptics Touchpad auto-dev sets device to /dev/input/event6
(II) Synaptics Touchpad: x-axis range 1472 - 5472
(II) Synaptics Touchpad: y-axis range 1408 - 4448
(**) Option "Device" "/dev/input/event6"
(**) Option "SHMConfig" "true"
(**) Option "TapButton1" "1"
(**) Option "TapButton2" "2"
(**) Option "TapButton3" "3"
(--) Synaptics Touchpad touchpad found
(**) Option "SendCoreEvents"
(**) Synaptics Touchpad: always reports core events
(II) evaluating device (Synaptics Touchpad)
(II) XINPUT: Adding extended input device "Synaptics Touchpad" (type: MOUSE)
(--) Synaptics Touchpad touchpad found
Comment by Jan de Groot (JGC) - Friday, 05 September 2008, 09:35 GMT
Why do you want to use synaptics? I didn't put a replaces line for nothing in xf86-input-synaptics for nothing. The original synaptics project became an official X.Org driver.
Comment by Michael (SiD) - Friday, 05 September 2008, 10:15 GMT
> The original synaptics project became an official X.Org driver.

I didn't know that.
First I thought synaptics and xf86-input-synaptics are two different drivers.

Loading...