Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Nov 2010 22:02:17 +0100
From:      =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= <dumbbell@FreeBSD.org>
To:        Norikatsu Shigemura <nork@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: psm(4) - synaptics touch pad strange behavier
Message-ID:  <4CD07C59.8080805@FreeBSD.org>
In-Reply-To: <20100927004436.997b82d7.nork@FreeBSD.org>
References:  <20100927004436.997b82d7.nork@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



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