Project

General

Profile

Actions

Bug #545

closed

PS/2 port problem

Added by wa1ter about 17 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I just discovered that this is a very old problem, but I just noticed
it today. On boot I see this:

psm0: failed to get data.
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0

The mouse works in spite of that error message, but only the first
time the psm0 device is used. Until today I was using moused to
manage the mouse, so psm0 was only opened at boot, and worked
correctly because I never shut down moused until reboot.

Now I find that if I stop moused and try to start it again, I see
'cannot open /dev/psm0, device not configured' and the only thing
I can do is reboot the machine. X acts the same way even if I don't
use moused.

This is specific to DragonFly (FreeBSD-current and linux both work
correctly on the same machine) and the problem goes back at least
as far as DF 1.5 (which I also still have on this same machine).

Anyone else seeing this? Any ideas for debugging?

Actions #1

Updated by wa1ter about 17 years ago

On Sun, 28 Jan 2007, walt wrote:

I cleverly read the code and then added PSM_DEBUG to my kernel.

Now I see this during boot:

atkbdc0: &lt;Keyboard controller (i8042)&gt; at port 0x60,0x64 on isa0
atkbd0: &lt;AT Keyboard&gt; irq 1 on atkbdc0
kbd0 at atkbd0
psm0: current command byte:0047
psm0: failed to get data.
psm0: &lt;PS/2 Mouse&gt; irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons
psm0: config:00000000, flags:00000000, packet size:3
psm0: syncmask:00, syncbits:00

And when moused starts up:
psm: status 00 02 64

And when attempting to re-start moused:
psm0: failed to enable the device (doopen).

Any ideas?

Actions #2

Updated by dillon about 17 years ago

:On Sun, 28 Jan 2007, walt wrote:
:
:> Any ideas for debugging?
:
:I cleverly read the code and then added PSM_DEBUG to my kernel.
:
:Now I see this during boot:
:
: atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
: atkbd0: <AT Keyboard> irq 1 on atkbdc0
: kbd0 at atkbd0
: psm0: current command byte:0047
: psm0: failed to get data.
: psm0: <PS/2 Mouse> irq 12 on atkbdc0
: psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons
: psm0: config:00000000, flags:00000000, packet size:3
: psm0: syncmask:00, syncbits:00
:
:And when moused starts up:
:psm: status 00 02 64
:
:And when attempting to re-start moused:
:psm0: failed to enable the device (doopen).
:
:Any ideas?

I haven't had any luck reproducing this.  I can start moused, use
vidcontrol -m on to test it, then I can kill moused and start it
again, and the mouse works again.
I then killed moused and started up X with a directly specified
/dev/psm0, and that worked. Then I terminated X and started it
again, and that also worked.
-Matt
Matthew Dillon
&lt;&gt;
Actions #3

Updated by wa1ter about 17 years ago

Sorry, I need to emend my original report: I said/implied the bug was
100% reproducible, but it's not.

I just reproduced it twice by doing the following:
#/etc/rc.d/moused restart

I do that eight or ten or more times, rapidly, before the bug is
triggered. The number of tries will vary depending (I think) on
the speed of repetition. Maybe doing it from a shellscript would
show it quicker.

Actions #4

Updated by qhwt+dfly about 17 years ago

And if it never reproduces on FreeBSD, porting some of updates from
FreeBSD may fix your problem. BTW what was the manufacturers and the
models of your mainboard and mouse?

Cheers.

Actions #5

Updated by wa1ter about 17 years ago

Excellent clue, as always :o) After reproducing the same error on
FBSD I finally narrowed it down to my KVM -- when I plug the mouse
directly into the computer the bug disappears. Sorry for the noise.

Actions #6

Updated by tuxillo about 13 years ago

Hi,

psm(4) was synced recently with FreeBSD. Among all the changes there were some
specific to KVM switches and in fact it solved my problems with my own KVM so I
encourage you to give it a try if you can.

Let me know.

Cheers,
Antonio Huete

Actions #7

Updated by martin1234 over 5 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF