From owner-freebsd-hackers Sun Jan 5 0:11:44 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 8FE3F37B401 for ; Sun, 5 Jan 2003 00:11:42 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 3007943EC2 for ; Sun, 5 Jan 2003 00:11:41 -0800 (PST) (envelope-from mdcki@gmx.net) Received: (qmail 1855 invoked by uid 0); 5 Jan 2003 08:11:38 -0000 Received: from cvpn011.gwdg.de (HELO gmx.net) (134.76.22.11) by mail.gmx.net (mp022-rz3) with SMTP; 5 Jan 2003 08:11:38 -0000 Message-ID: <3E17E936.8070808@gmx.net> Date: Sun, 05 Jan 2003 09:13:42 +0100 From: Marcin Dalecki User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rahul Siddharthan Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Synaptics touchpad extendid support. References: <20030105065921.GA1481@papagena.rockefeller.edu> In-Reply-To: <20030105065921.GA1481@papagena.rockefeller.edu> Content-Type: text/plain; charset=us-ascii; format=flowed 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 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: > > 1. The "speed" of the pointer on the screen is way faster now. I > corrected that with some XF86Config options. Yes that was intentional, since there are two ways to scale the speed, namely moused and XFree. However the speed you can see is already scaled down by an significant amount anyway. Unfortunately the current sysmouse dosn't understand a witt about absolute mouse coordinates as far as I understand the code... > 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. Well for certain the down button does something in esp. it is posting button 4 events. Watch out xev please - you should see it there. Having a middle button was the reaon per se I did this hack in first place, so this choice of numbering is likely here to stay. > 3. Earlier, tapping on the touchpad would emulate a left click. It > no longer does anything (not sure whether that's good or bad). Yes this kind of functionality is still not there, since it would involve quite a lot of code, which I didn't find apriopriate to place in kernel space. > 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" Option Buttons 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). moused -m 4=2 -m 5=4 should do it. left is 1 up is 2 right is 3 down is 4 > Any ideas, anyone? Yes. The next cut should define a custom SYNAPTICS mouse protocol and move the whole logics out of the kernel to moused. There it should be possible to implement all the extendid features one desires without too much hassle. And without in esp. frequent reboots due to kernel crashing :-). > Thanks I'm glad this thingee works not just for my own hardware. Would you dare to report the firmware version on your system. > Rahul > > -- Marcin Dalecki To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message