Some PS/2 mice (at least the A4Tech X-7xx) need to be set to Intelli mode

first before they can be set to Explorer mode.

PR:		kern/118578
Submitted by:	Andriy Gapon <avg@icyb.net.ua> (I added some comments)
Reviewed by:	philip
MFC after:	1 month
This commit is contained in:
Rink Springer 2008-02-25 13:57:18 +00:00
parent 70d818a20e
commit b1d8472a5b

View File

@ -3121,6 +3121,13 @@ enable_msexplorer(struct psm_softc *sc)
int id;
int i;
/*
* This is needed for at least A4Tech X-7xx mice - they do not go
* straight to Explorer mode, but need to be set to Intelli mode
* first.
*/
enable_msintelli(sc);
/* the special sequence to enable the extra buttons and the roller. */
for (i = 0; i < sizeof(rate1)/sizeof(rate1[0]); ++i) {
if (set_mouse_sampling_rate(kbdc, rate1[i]) != rate1[i])