Synaptics and Xorg 7.2

"Cristian KLEIN" <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
Hi,

I have noticed the following problem when using x11-servers/synaptics with
Xorg 7.2.

Whenever switching VTs or suspending / resuming, Synaptics support gets
disabled. The user notices that scrolling, dragging does not work, and
there is no min_movement anymore.

The problem is due to the fact that Xorg 7.2 has a build-in pointer
device, which is "hard to disable" (i.e. it gets loaded even when there is
another core pointer). During VT switch or suspending / resuming, this
build-in driver somehow catches /dev/psm0 before synaptics does.

http://www.stz-softwaretechnik.de/~ke/touchscreen/evtouch.html suggests
how to disable the build-in driver. I have attached a patch which augments
pkg-message. May I also suggest to move synaptics from x11-servers to
x11-drivers? Should I send a PR?

Thanks,
Cristi.

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
synaptics.patch (text/x-patch, 1.5 KB)
diff -ur synaptics.orig/Makefile synaptics/Makefile
--- synaptics.orig/Makefile	Thu Jun 14 17:07:21 2007
+++ synaptics/Makefile	Sat Jun 16 21:11:16 2007
@@ -7,8 +7,8 @@
 
 PORTNAME=	synaptics
 PORTVERSION=	0.14.6
-PORTREVISION=	1
-CATEGORIES=	x11-servers
+PORTREVISION=	2
+CATEGORIES=	x11-drivers
 MASTER_SITES=	http://web.telia.com/~u89404340/touchpad/files/:synaptics
 DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:synaptics \
 		${X_DISTFILES:C/$/:x11/}
diff -ur synaptics.orig/pkg-message synaptics/pkg-message
--- synaptics.orig/pkg-message	Sun Mar 19 12:22:19 2006
+++ synaptics/pkg-message	Sat Jun 16 21:18:25 2007
@@ -86,3 +86,39 @@
 /etc/xorg.conf (or /etc/XF86Config) ---------------
 
 ===============================================================================
+
+To setup Synaptics support in Xorg 7.2 you must use something like this:
+
+--- begin /usr/local/etc/X11/xorg.conf
+Section "Module"
+		:
+	Load		"synaptics"
+EndSection
+
+Section "InputDevice"
+	Identifier	"Synaptics_Touchpad"
+	Driver		"synaptics"
+
+	Option		"Device"		"/dev/psm0"
+	Option		"Protocol"		"psm"
+	
+	Option		"CorePointer"
+EndSection
+
+# Dummy device to disable build-in default pointer device
+Section "InputDevice"
+	Identifier	"dummy"
+	Driver		"void"
+EndSection
+
+Section "ServerLayout"
+		:
+	InputDevice	"dummy"	"CorePointer"
+EndSection
+	:
+--- end /usr/local/etc/X11/xorg.conf
+
+Failing to do so will disable Synaptics support when switching VTs or
+suspending / resuming.
+
+===============================================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.