From owner-freebsd-hackers Sun Jan 5 14:13:45 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7F7037B401 for ; Sun, 5 Jan 2003 14:13:42 -0800 (PST) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D81643E4A for ; Sun, 5 Jan 2003 14:13:42 -0800 (PST) (envelope-from mbsd@pacbell.net) Received: from atlas ([64.168.24.241]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id <0H8900AULHQTEK@mta7.pltn13.pbi.net> for freebsd-hackers@FreeBSD.ORG; Sun, 05 Jan 2003 14:13:42 -0800 (PST) Date: Sun, 05 Jan 2003 14:13:41 -0800 (PST) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Subject: Re: Synaptics touchpad extendid support. In-reply-to: <20030105065921.GA1481@papagena.rockefeller.edu> X-X-Sender: mikko@atlas.home To: Rahul Siddharthan Cc: Marcin Dalecki , freebsd-hackers@FreeBSD.ORG Message-id: <20030105135944.K18514-100000@atlas.home> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG First, many thanks to Marcin. On Sun, 5 Jan 2003, Rahul Siddharthan wrote: > Marcin Dalecki wrote: > > Here is my first cut at support for the Synaptics touchpads, which are > > commonly used on notebooks. Contrary to the default "Windows > > installation mode" those devices come up at boot, this is enabling > > full support for all buttons present on the device and works nicely > > with moused together. > > I just tried it. Couple of issues: Me too. > 1. The "speed" of the pointer on the screen is way faster now. I > corrected that with some XF86Config options. Easy enough to fix with scaling. To me the pointer also feels slightly "detached" or lagging, as if attached to my finger with a rubberband... Some kind of filtering, or an artifact from the absolute->relative conversion, perhaps. Oh, well, it works well enough. > 2. The pad has 4 buttons; left and right work as before. In between, > there are a small up and down button. Now the up button acts as the > middle button (button 3?) -- ie I can paste with it. The down button > still does nothing. I tried playing with the moused parameters and > the XF86Config ZAxisMapping settings, to no avail. > > 3. Earlier, tapping on the touchpad would emulate a left click. It > no longer does anything (not sure whether that's good or bad). I used to hate tapping, but now when it is gone, I can't decide whether I want it or not :-) A look in the specs show that tap processing has to be done entirely in software when the touchpad is in this mode, i.e. not just a matter of twiddling a bit. > What I'd like is to emulate 3 buttons with simultaneous left-right > clicking, as before; have the "up" button behave like scrolling a > mousewheel up; and have the "down" button behave like scrolling a > mousewheel down. I thought the > Option "ZAxisMapping" "4 5" > in XF86Config, and > moused -m 4=3 -m 5=4 > would do it. But no luck (though the above moused options do stop the > up button from acting like a middle button). > > Any ideas, anyone? I just made it work (-current, XFree86 4.2.1). Like this: The buttons are 1/3 (left/right) and 4/2 (up/down). Looks like moused is incapable of both mapping physical button 2 to something and at the same time emulating a middle button as left+right (with the -3 flag). But the following works in X: * Make moused map up/down into buttons 4/5: moused -m 4=2 -m 5=4 -p /dev/psm0 -t auto * Make X do the rest. From XF86Config (for XFree 4.2): Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "Auto" Option "Device" "/dev/sysmouse" Option "Resolution" "100" Option "Emulate3Buttons" Option "Buttons" "5" EndSection This makes X handle emulation of the middle button. Hmm... looks like there already is a default ZAxisMapping. If you have problems, try adding Option "ZAxisMapping" "4 5" Now I have to decide whether I want this, or if I want a real middle button. Decisions, decisions... $.02, /Mikko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message