From owner-freebsd-mobile@FreeBSD.ORG Sat Jun 16 19:05:18 2007 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6078F16A400; Sat, 16 Jun 2007 19:05:18 +0000 (UTC) (envelope-from cristi@net.utcluj.ro) Received: from bavaria.utcluj.ro (bavaria.utcluj.ro [193.226.5.35]) by mx1.freebsd.org (Postfix) with ESMTP id 154EA13C469; Sat, 16 Jun 2007 19:05:18 +0000 (UTC) (envelope-from cristi@net.utcluj.ro) Received: from localhost (localhost [127.0.0.1]) by bavaria.utcluj.ro (Postfix) with ESMTP id 357EC50842; Sat, 16 Jun 2007 21:34:56 +0300 (EEST) X-Virus-Scanned: by the daemon playing with your mail on bavaria.utcluj.ro Received: from bavaria.utcluj.ro ([127.0.0.1]) by localhost (bavaria.utcluj.ro [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9LXVFUXh3nwE; Sat, 16 Jun 2007 21:34:51 +0300 (EEST) Received: from intranet.utcluj.ro (localhost [IPv6:::1]) by bavaria.utcluj.ro (Postfix) with ESMTP id 006DC5082A; Sat, 16 Jun 2007 21:34:50 +0300 (EEST) Received: from c7.campus.utcluj.ro ([193.226.6.226]) (SquirrelMail authenticated user cristiklein) by intranet.utcluj.ro with HTTP; Sat, 16 Jun 2007 21:34:51 +0300 (EEST) Message-ID: <61045.193.226.6.226.1182018891.squirrel@intranet.utcluj.ro> Date: Sat, 16 Jun 2007 21:34:51 +0300 (EEST) From: "Cristian KLEIN" To: nork@FreeBSD.org User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20070616213451_52797" X-Priority: 5 (Lowest) Importance: Low Cc: freebsd-mobile@freebsd.org Subject: Synaptics and Xorg 7.2 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 19:05:18 -0000 ------=_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--