From: Dave MacFarlane <driusan@gmail.com>
To: 9front@9front.org
Subject: reset ps2 mouse on boot
Date: Sun, 3 Jul 2016 19:59:23 -0400 [thread overview]
Message-ID: <CAG2UyHq+hKX-FAMPTaNf=Mhcska6vr5qtSE4=_4iaAjYaT_EQQ@mail.gmail.com> (raw)
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
reply other threads:[~2016-07-03 23:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAG2UyHq+hKX-FAMPTaNf=Mhcska6vr5qtSE4=_4iaAjYaT_EQQ@mail.gmail.com' \
--to=driusan@gmail.com \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).