[Pkg-gpm-devel] Bug#306950: gpm: incorrect mouse setup/detection

Peter Samuelson Peter Samuelson <peter@p12n.org>, 306950@bugs.debian.org
Wed, 4 May 2005 00:04:28 -0500


--vNrHrykRFvLVX6W3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


[temnota@kmv.ru]
> When mouse type set to 'autops2' gpm attempt to detect mouse
> type. Before request identification from mice, gpm try set sample
> rate, but incorrectly.  gpm write two byte command and read ONLY one
> ACK from mice but when command is two byte length - should read two
> ACK's (one from command, one from data).  Missed (unreaded) ACK stay
> in mice buffer and read_mouse_id() read ACK (0x0FA) instead of mice
> ident (0x04) byte.

Thanks for the report and the patch!  autops2 obviously works for many
people, so I wonder why it breaks on your kernel and mouse.  Looking at
the code, it seems as though if it breaks on your setup it should break
on everyone's.

Well, as may be ... I'll test it, and look at what the (2.6 kernel)
psmouse.c and mousedev.c do.  (Those two files implement both sides of
the PS/2 mouse detection protocol.)

Thanks again,
Peter

--vNrHrykRFvLVX6W3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCeFfcXk7sIRPQRh0RAp8jAJ47TyJYJOadjsUhLuwL3zf/BnhopQCfTB5a
f7zi0ISOlkVbEgdvK9dm3ZM=
=ksra
-----END PGP SIGNATURE-----

--vNrHrykRFvLVX6W3--