Subject: Re: pms0: resetting mouse interface
To: Tyler Mitchell <>
From: Jonathan R. Hinds <>
List: tech-kern
Date: 05/21/2002 15:22:50
I don't know if this is related but ever since upgrading to 1.5ZC, I have
been having problems with my ps/2 mouse (Logitech 3 button Mouseman).

This started happening sometime between 1.5ZB and 1.5ZC. I am running
-current from May 10th and XFree 4.2.0 built the day after.

Here is a small sample from /var/log/messages:
May 18 16:27:55 pesto /netbsd: pms: resetting mouse interface
May 18 17:42:49 pesto /netbsd: pms: resetting mouse interface
May 18 22:30:38 pesto /netbsd: pms: resetting mouse interface
May 18 22:44:30 pesto /netbsd: pms: resetting mouse interface
May 19 00:45:26 pesto /netbsd: pms: resetting mouse interface

Most of the times these messages just seem to appear harmlessly. But when
the following occurs the ps2 keyboard and mouse no longer work. I have to
ssh in, kill X, and then restart it. Killing X makes the keyboard and
mouse come back to life.

May 21 17:17:36 pesto /netbsd: pms: resetting mouse interface

(mouse and keyboard no longer work, kill X, these get printed out)

May 21 17:20:59 pesto /netbsd: pckbc: command timeout
May 21 17:21:00 pesto /netbsd: pms_disable: command error

relevent dmesg output:
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0

relevent schtuff from kernel config:
# wscons
pckbc0          at isa?                 # pc keyboard controller
pckbd*          at pckbc?               # PC keyboard
pms*            at pckbc?               # PS/2 mouse for wsmouse
vga*            at pci? dev ? function ?
pcdisplay0      at isa?                 # CGA, MDA, EGA, HGA
wsdisplay*      at vga? console ?
wsdisplay*      at pcdisplay? console ?
wskbd*          at pckbd? console ?
wsmouse*        at pms? mux 0

Thanks for any help,


On Sun, 19 May 2002, Tyler Mitchell wrote:

> Hello,
> After a build of a -current kernel (using sources updated this morning),
> my PS/2 trackball (a Kensington Orbit) no longer works in X.  A
> standardish Compaq PS/2 mouse, on the other hand, works just fine.
> Wanting to know more, I built a kernel with options PMSDEBUG.  I got the
> following (repeatedly):
> 	pms_protocol: standard PS/2 protocol (no scroll wheel)
> 	pms_enable: using no scroll wheel (3 buttons) protocol
> 	pmsinput: 0x8 not set in first byte [0x00], resetting
> 	pms0: resetting mouse interface
> The pmsinput line varies slightly; sometimes the first byte given is
> [0x00], sometimes it is [0x10].
> Before building this new kernel today, I was using a -current kernel from
> around February 24, back when the pms driver was still under psm.c; I
> probably would've been using revision 1.13 or 1.14 at that time. Browsing
> cvsweb, it looks like the code that prints this error message was
> introduced in psm.c 1.18.