Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2003 22:11:45 -0600
From:      BSD <bsd@xtremedev.com>
To:        questions@freebsd.org
Subject:   moused weirdness with kvm
Message-ID:  <20030413041145.GA19038@Amber.XtremeDev.com>

next in thread | raw e-mail | index | archive | help
Hello,

  My current setup: FreeBSD 5.0-CURRENT as of April 12, 2003 on a system
  attached to a Raritan SwitchMan KVM. Other system connected to the KVM
  is a Windows 2000 machine.
  
  The mouse is a PS/2 Logitech TrackMan Marble+.

  I have been trying to figure out why the mouse works perfectly before
  I switch between computers, but then not, after switching. Here's what
  I obtain by running moused in debug mode:

  Booting the FreeBSD box, and running moused (commenting inline):

~> sudo moused -f -d -p /dev/psm0 -t ps/2
moused: proto params: 08 08 00 00 3 00 ff
moused: port: /dev/psm0  interface: ps/2  type: ps/2  model: generic

# Output of moused before a kvm switch to other desktop
# Rolling the scroller down...
moused: received char 0x8
moused: received char 0x0
moused: received char 0x0
moused: assembled full packet (len 3) 8,0,0,0,0,0,0,0

# Then rolling the scroller up...
moused: received char 0x9
moused: received char 0x0
moused: received char 0x0
moused: assembled full packet (len 3) 9,0,0,0,0,0,0,0
moused: tv:  1050197630 986205
moused:   :  1050197626 669251
moused: flags:00000001 buttons:00000001 obuttons:00000000
moused: activity : buttons 0x00000001  dx 0  dy 0  dz 0
moused: mstate[0]->count:1
moused: button 1  count 1

# Then down again..
moused: received char 0x8
moused: received char 0x0
moused: received char 0x0
moused: assembled full packet (len 3) 8,0,0,0,0,0,0,0
moused: tv:  1050197632 398437
moused: flags:00000001 buttons:00000000 obuttons:00000001
moused: activity : buttons 0x00000000  dx 0  dy 0  dz 0
moused: mstate[0]->count:1
moused: button 1  count 0

  Hitting the KVM switch to go to the Win2K desktop, then back to the
  FreeBSD machine, I see this show up in moused:

# Received this anonymous packet during the KVM switch
moused: received char 0x8
moused: received char 0xce
moused: received char 0x4b
moused: assembled full packet (len 3) 8,ce,4b,0,0,0,0,0
moused: tv:  1050197980 265282
moused: flags:80000000 buttons:00000000 obuttons:00000000
moused: activity : buttons 0x00000000  dx 206  dy -75  dz 0

  Then I tried rolling the scroller again, and doing so immediately puts
  the mouse into the upper right corner with this output from moused:

# Scrolling up
moused: received char 0x8
moused: received char 0x0
moused: received char 0x0
moused: assembled full packet (len 3) 8,0,0,0,0,0,0,0
moused: received char 0x8
moused: received char 0xde
moused: received char 0xf
moused: assembled full packet (len 3) 8,de,f,0,0,0,0,0
moused: tv:  1050197136 132982
moused: flags:80000000 buttons:00000000 obuttons:00000000
moused: activity : buttons 0x00000000  dx 222  dy -15  dz 0

# Scrolling down
moused: received char 0x8
moused: received char 0x0
moused: received char 0x0
moused: assembled full packet (len 3) 8,0,0,0,0,0,0,0
moused: received char 0x8
moused: received char 0xd6
moused: received char 0x1
moused: assembled full packet (len 3) 8,d6,1,0,0,0,0,0
moused: tv:  1050197126 560451
moused: flags:80000000 buttons:00000000 obuttons:00000000
moused: activity : buttons 0x00000000  dx 214  dy -1  dz 0


  The output is now different from before the desktop switching. And I
  have no idea why it would change, and no idea how to prevent it from
  doing that (in addition to the scroller moving the mouse to the upper
  right corner everytime, the mouse speed seem to really slow down a
  lot.)

  Does anyone have any suggestions on how I can debug this? Or better
  yet, how to keep it from doing that? Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030413041145.GA19038>