Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2007 21:34:51 +0300 (EEST)
From:      "Cristian KLEIN" <cristi@net.utcluj.ro>
To:        nork@FreeBSD.org
Cc:        freebsd-mobile@freebsd.org
Subject:   Synaptics and Xorg 7.2
Message-ID:  <61045.193.226.6.226.1182018891.squirrel@intranet.utcluj.ro>

next in thread | raw e-mail | index | archive | help
------=_20070616213451_52797
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: 8bit

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.

------=_20070616213451_52797
Content-Type: text/x-patch; name="synaptics.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="synaptics.patch"

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.
+
+===============================================================================
------=_20070616213451_52797--





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61045.193.226.6.226.1182018891.squirrel>