psm(4) - synaptics touch pad strange behavier

Jean-Sébastien Pédron dumbbell at FreeBSD.org
Tue Nov 2 21:02:41 UTC 2010


-----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-----


More information about the freebsd-current mailing list