Bug 25463

Summary: PS/2 mouse sync problems with KVM switch - /dev/sysmouse and /dev/psm0
Product: Base System Reporter: brian215 <brian215>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: brian215
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description brian215 2001-02-28 22:20:00 UTC
        Switching systems using the KVM switch, the mouse loses sync.

        (Other system is a (yuch) Win98 box (IBM thinkpad). That box, after a few seconds of wonkyness, regains sync.)

        When switching to FreeBSD-4.2(Stable), mouse loses sync but never regains sync. Mouse movement and keyclicks
        result in chaotic moves/clicks not resembling input (but at a rate corresponding to mouse activity).
        
        Behaviour consistent across use of "Auto", "PS/2", "SysMouse" protocols, "/dev/sysmouse" or "/dev/psm0" devices,
                with/without moused (as appropriate).

        Other symptoms, side-effects: X programs (window manager, xterms) crash (signal 11); messages on console or vty where
        X was started from include:
                (WW) fcntl(7, F_SETOWN): Inappropriate ioctl for device
                psmintr (message about loss of sync, 0x0000 != 0x8000 or some such hex values)
                (last message repeated 491 times)

        Keyboard not affected.

Fix: 

Reboot (possibly also via "init 1", CTRL-D)
        (Works perfectly fine until/unless use KVM switch.)

        Tried suggested workarounds (switch to other VTYs, via CTL-ALT-Fn; hit buttons while not moving mouse) to no avail, at
 great length; Tried KVM-vendors suggestion of unplug mouse, wait 5, re-plug, also no-go.





__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/
How-To-Repeat: 
        Switching via KVM switch
        Also repeatable by unplugging mouse from KVM switch (KVM switch is "smart", emulates mouse/keyboard when not connected
)
Comment 1 James Thomason 2001-08-22 07:44:33 UTC
This happens because the mouse driver desyncs with the pointing
device.  The fix may be found at the following URL. 

Regards, 
James Thomason

http://www.pl.freebsd.org/FAQ/FAQ134.html
Comment 2 ashp freebsd_committer freebsd_triage 2002-02-09 02:23:25 UTC
State Changed
From-To: open->feedback

Did the suggested workaround listed by James Thomason work for you?
Comment 3 brian.dickson 2002-02-20 17:37:11 UTC
No, suggested work-around did not work.
 
I eventually did the following:
- returned KVM to vendor
- purchased PS2-to-USB keyboard adapter dongle
- purchased USB switch
- put both keyboard and mouse (now both USB) on USB hub (integrated in my
monitor) which is connected to USB switch
 
So, when I need to switch V, K+M, I hit A/B button on my two-input monitor,
and hit a button on the USB switch.
 
This works, but is significantly constrained (ie, limited to number of video
inputs on monitor; limited to USB keyboards/mice).
 
It would be nice to see the problem really resolved, but I won't lose sleep
(or productivity) over it, since it no longer affects me.
 
Brian
Comment 4 Ceri Davies freebsd_committer freebsd_triage 2003-06-08 18:49:45 UTC
State Changed
From-To: feedback->open

The originator no longer has the hardware required to test this.
Comment 5 Ceri Davies freebsd_committer freebsd_triage 2003-06-08 18:51:12 UTC
State Changed
From-To: open->closed

The last status change should have been to "closed".