From owner-freebsd-current@FreeBSD.ORG Tue Nov 2 21:02:41 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB9631065670; Tue, 2 Nov 2010 21:02:41 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from mail.made4.biz (unknown [IPv6:2001:41d0:1:7018::1:3]) by mx1.freebsd.org (Postfix) with ESMTP id 541368FC16; Tue, 2 Nov 2010 21:02:41 +0000 (UTC) Received: from [2a01:e35:8b50:830:290:f5ff:fe9d:b78c] (helo=magellan.dumbbell.fr) by mail.made4.biz with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1PDNzm-000HjP-7N; Tue, 02 Nov 2010 22:02:40 +0100 Message-ID: <4CD07C59.8080805@FreeBSD.org> Date: Tue, 02 Nov 2010 22:02:17 +0100 From: =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.15) Gecko/20101029 Thunderbird/3.0.10 MIME-Version: 1.0 To: Norikatsu Shigemura References: <20100927004436.997b82d7.nork@FreeBSD.org> In-Reply-To: <20100927004436.997b82d7.nork@FreeBSD.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-current@FreeBSD.org Subject: Re: psm(4) - synaptics touch pad strange behavier X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2010 21:02:41 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! On 26.09.2010 17:44, Norikatsu Shigemura wrote: > Hi psm(4) masters! > > I have trouble using Synaptics TouchPad, psm(4) on my CF-R9. > The trouble is that the mouse cursor moves at random, and the > mouse button is clicked without button action. I heard same > trouble from ume@'s CF-R8. > > So I enabled options PSM_DEBUG=5 and traced psm's packets. My Synaptics touchpad was going back to "Relative Mode" after initialization (enable_synaptics) and I never identified the reason. I think yours is suffering from the same behaviour. To work around this, I added a hack at the beginning of doopen() in psm.c but looking at your log, it's never executed (you should see "psm0: Synaptis Absolute Mode hopefully restored"). I think my check on line 886 in psm.c (on -CURRENT) isn't right: if (stat[1] == 0x47 && stat[2] == 0x40) { Could you please try to change this line to: if (stat[1] == 0x47) { (ie. remove the second test) stat[2] contains the value of the "Mode Byte". 0x40 means "Relative Mode with high packet rate". Maybe yours is going back to "Relative Mode" only (0x00); see top of p.35 of the Interfacing Guide. A better test would be to look at the "Absolute Mode" bit only (or no test at all, like the change I propose). I can't test this myself because my laptop with the Synaptics touchpad died. - -- Jean-Sébastien Pédron -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzQfFkACgkQa+xGJsFYOlNYcACeM0/JYaYCx4CZHiWOZyi/pTaS lmoAoJLzYwlVn4ANpdoL+n99XOKzLWjv =AXjv -----END PGP SIGNATURE-----