* reset ps2 mouse on boot
@ 2016-07-03 23:59 Dave MacFarlane
0 siblings, 0 replies; only message in thread
From: Dave MacFarlane @ 2016-07-03 23:59 UTC (permalink / raw)
To: 9front
In the end, this was the minimal set of changes I needed to get my
trackpad back into PS/2 mode when doing a soft reboot from another OS
with a synaptics driver that leaves it in absolute mode. I just force
a PS/2 reset in the ps2mouse() initialization.
*** mouse.c 2016-07-03 19:37:16.212173929 -0400
--- mouse.mine.c 2016-07-03 19:44:26.317392202 -0400
***************
*** 168,173 ****
--- 168,175 ----
mousehwaccel = 0;
i8042auxenable(ps2mouseputc);
+ i8042auxcmd(0xFF); /* force a reset */
+ delay(500);
i8042auxcmd(0xEA); /* set stream mode */
}
--
- Dave
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-03 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-03 23:59 reset ps2 mouse on boot Dave MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).