From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io0-f174.google.com ([209.85.223.174]) by ur; Sun Jul 3 19:59:56 EDT 2016 Received: by mail-io0-f174.google.com with SMTP id s63so140488616ioi.3 for <9front@9front.org>; Sun, 03 Jul 2016 16:59:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=5NgZht0rRf8SyaWISZ0JgZEvR+cbGHMTC70ImyCgw2Q=; b=mhxOPaWa2WKqVipgy+sSAuXHntDyQRQyDCtvLQK1j48mGxNvNyRXk6bn1SEBRrIT8a aT2SHU3yV3fUPBDnWv1HAFdlne92ef/lMDtHlRvuc0kOx1cb8zvAHRjL4MUHvgaR761z ivxBFIrTbWPbt1umWF40tpJ5J7JqRDj0QoaRiTrxWHJvLzNQt7h50a05s8dCldzCUusr W2PC6CLG6Zuau6ybYA/nPSdYIuwtFJplATk2j1nCBUizwFLV0FptkaaCCK+9uv7CKGDg 3jkyNR29HNOJHl0psO+InbpPX0VIPEnWIKguD/b+c+hBPUaVXO8aYoactUsX8zKV7qXp afug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5NgZht0rRf8SyaWISZ0JgZEvR+cbGHMTC70ImyCgw2Q=; b=THCD0erLG/hHCYKr49bqpQwJzX3t2LPrEYpExYYtbtBFf6AkJOg4KHFmsjJiGQ6WJX qqnwLWsVGSQRyEycxs3BQ0fhFwPFYSXFRGdi6OkuEvHFOWLK8NjCLJgNa/aLQKgjtBUC H6emz0653mF7hxptcF/7cOs+IMwVQq89PUAgtethPZq8owm+4WGqEl2PADfsyOJzBmlM Hh8s5j6HU1B/6IMvAA2yuFfQd1iSB2+Zfb1sED/R61C7ovGob48J6jGbfXvT0KacnHai zcTFR6/RrA4DjUcAfcmmzmT5ba/I0hJJDbDu0hOf+f0786abJ/RmshBX3v9TCeZlXByr zAiA== X-Gm-Message-State: ALyK8tIiCOP806eHtYtFFGh1ONKXSn9DqCNFLQG/Kb2hSVHwB927d137fhGbxdGEFL7DZPFKZ8iKEJyFyBjEKA== X-Received: by 10.107.56.215 with SMTP id f206mr6845946ioa.188.1467590392732; Sun, 03 Jul 2016 16:59:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.55.65 with HTTP; Sun, 3 Jul 2016 16:59:23 -0700 (PDT) From: Dave MacFarlane Date: Sun, 3 Jul 2016 19:59:23 -0400 Message-ID: Subject: reset ps2 mouse on boot To: 9front@9front.org Content-Type: text/plain; charset=UTF-8 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: anonymous social information grid 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