From nobody@FreeBSD.org  Sun Mar 26 15:10:01 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id BA56637BAD1
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Mar 2000 15:10:01 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id PAA94679;
	Sun, 26 Mar 2000 15:09:56 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003262309.PAA94679@freefall.freebsd.org>
Date: Sun, 26 Mar 2000 15:09:56 -0800 (PST)
From: sparhawk@enteract.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: mouse does not work after compiling 4.0-stable
X-Send-Pr-Version: www-1.0

>Number:         17610
>Category:       misc
>Synopsis:       mouse does not work after compiling 4.0-stable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yokota
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 26 15:20:01 PST 2000
>Closed-Date:    Sun Apr 2 00:29:04 PST 2000
>Last-Modified:  Sun Apr  2 00:29:53 PST 2000
>Originator:     David Foresman
>Release:        4.0-release
>Organization:
n/a
>Environment:
FreeBSD sparhawk.ce.mediaone.net 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Sun Mar 26 15:25:02 CST 2000     root@sparhawk.ce.mediaone.net:/usr/src/sys/compile/SPARHAWK  i386

>Description:
I have a ps/2 intellimouse pluged into a kvm switch. During install and setup of 4.0-release the mouse works fine.  Using 4.0-release, the mouse works fine.  If I cvsup to 4.0-stable or 5.0-current, the mouse no longer works.

I have moused="yes" in rc.conf, the moused commandline looks like this.
moused -p /dev/psm0 -t auto.

I have tried auto, ps/2 and intellimouse as the type. 

The mouse also doesn't work under X.
>How-To-Repeat:
Plug mouse into kvm and upgrade to 4.0-stable.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->yokota 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Mar 29 02:28:53 PST 2000 
Responsible-Changed-Why:  
Kazu, can you take this one? 

From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To: sparhawk@enteract.com
Cc: freebsd-gnats-submit@freebsd.org,
	yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject: Re: misc/17610: mouse does not work after compiling 4.0-stable 
Date: Thu, 30 Mar 2000 16:15:23 +0900

 >>Number:         17610
 >>Category:       misc
 >>Synopsis:       mouse does not work after compiling 4.0-stable
 [...]
 >>Originator:     David Foresman
 >>Release:        4.0-release
 >>Organization:
 >n/a
 >>Environment:
 >FreeBSD sparhawk.ce.mediaone.net 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Sun Mar 2
 >6 15:25:02 CST 2000     root@sparhawk.ce.mediaone.net:/usr/src/sys/compile/SPA
 >RHAWK  i386
 >
 >>Description:
 >I have a ps/2 intellimouse pluged into a kvm switch. During install and setup 
 >of 4.0-release the mouse works fine.  Using 4.0-release, the mouse works fine.
 >  If I cvsup to 4.0-stable or 5.0-current, the mouse no longer works.
 >
 >I have moused="yes" in rc.conf, the moused commandline looks like this.
 >moused -p /dev/psm0 -t auto.
 >
 >I have tried auto, ps/2 and intellimouse as the type. 
 >
 >The mouse also doesn't work under X.
 >>How-To-Repeat:
 >Plug mouse into kvm and upgrade to 4.0-stable.
 
 We need to verify several things.
 
 First, is your kernel and userland in sync?  You need to do `make
 world' and rebuild the kernel after cvsupping RELENG_4 or HEAD
 (5.0-CURRENT).
 
 Second, please remove the KVM and attach your PS/2 mouse directly to
 your FreeBSD box.  It is well known that some KVMs are not so
 compatible.  Give `boot -v' at the boot loader prompt to obtain
 verbose boot message and send me /var/run/dmesg.out.
 
 Third, when you use the KVM and boot the FreeBSD box, make sure the
 KVM is switched to the FreeBSD box so that the FreeBSD kernel can have
 "direct" access to the PS/2 mouse.  The PS/2 mouse driver would like
 to set up your PS/2 mouse during boot, and needs to receive response
 from the mouse during this set up process.  Again start the system
 by giving `boot -v' at the boot loader prompt to obtain
 verbose boot message and send me /var/run/dmesg.out.
 
 When you installed 4.0-RELEASE on this system, were you using the KVM?
 
 Kazu
 
 
 

From: "David Foresman" <sparhawk@enteract.com>
To: "Kazutaka YOKOTA" <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Cc: <freebsd-gnats-submit@freebsd.org>,
	<yokota@zodiac.mech.utsunomiya-u.ac.jp>
Subject: Re: misc/17610: mouse does not work after compiling 4.0-stable 
Date: Thu, 30 Mar 2000 06:17:17 -0600

 ----- Original Message -----
 From: "Kazutaka YOKOTA" <yokota@zodiac.mech.utsunomiya-u.ac.jp>
 To: <sparhawk@enteract.com>
 Cc: <freebsd-gnats-submit@freebsd.org>;
 <yokota@zodiac.mech.utsunomiya-u.ac.jp>
 Sent: Thursday, March 30, 2000 1:15 AM
 Subject: Re: misc/17610: mouse does not work after compiling 4.0-stable
 
 
 >
 > >>Number:         17610
 > >>Category:       misc
 > >>Synopsis:       mouse does not work after compiling 4.0-stable
 > [...]
 > >>Originator:     David Foresman
 > >>Release:        4.0-release
 > >>Organization:
 > >n/a
 > >>Environment:
 > >FreeBSD sparhawk.ce.mediaone.net 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Sun
 Mar 2
 > >6 15:25:02 CST 2000
 root@sparhawk.ce.mediaone.net:/usr/src/sys/compile/SPA
 > >RHAWK  i386
 > >
 > >>Description:
 > >I have a ps/2 intellimouse pluged into a kvm switch. During install and
 setup
 > >of 4.0-release the mouse works fine.  Using 4.0-release, the mouse works
 fine.
 > >  If I cvsup to 4.0-stable or 5.0-current, the mouse no longer works.
 > >
 > >I have moused="yes" in rc.conf, the moused commandline looks like this.
 > >moused -p /dev/psm0 -t auto.
 > >
 > >I have tried auto, ps/2 and intellimouse as the type.
 > >
 > >The mouse also doesn't work under X.
 > >>How-To-Repeat:
 > >Plug mouse into kvm and upgrade to 4.0-stable.
 >
 > We need to verify several things.
 >
 > First, is your kernel and userland in sync?  You need to do `make
 > world' and rebuild the kernel after cvsupping RELENG_4 or HEAD
 > (5.0-CURRENT).
 >
 
 I did try a make world on one of the builds.  I removed /dev/* and did a
 MAKEDEV all after make world thinking it was a problem with /dev/psm0
 
 > Second, please remove the KVM and attach your PS/2 mouse directly to
 > your FreeBSD box.  It is well known that some KVMs are not so
 > compatible.  Give `boot -v' at the boot loader prompt to obtain
 > verbose boot message and send me /var/run/dmesg.out.
 
 I'll try this tonight.  But why would it work under 4.0-r and not 4.0-s.
 
 >
 > Third, when you use the KVM and boot the FreeBSD box, make sure the
 > KVM is switched to the FreeBSD box so that the FreeBSD kernel can have
 > "direct" access to the PS/2 mouse.  The PS/2 mouse driver would like
 > to set up your PS/2 mouse during boot, and needs to receive response
 > from the mouse during this set up process.  Again start the system
 > by giving `boot -v' at the boot loader prompt to obtain
 > verbose boot message and send me /var/run/dmesg.out.
 I have booted fbsd with the kvm on that computer the whole time.
 
 >
 > When you installed 4.0-RELEASE on this system, were you using the KVM?
 
 Yes, the kvm has been plugged in the entire time.  the KVM was plugged in
 and working during the install.  I even switch screens to my other computer
 several times during the install.
 >
 > Kazu
 >
 >
 >
 
 I have fbsd, linux-mandrake, win98 and win2k all on this machine.  I don't
 mind reinstalling the OS if i can figure out what's wrong.
 
 

From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To: "David Foresman" <sparhawk@enteract.com>
Cc: <freebsd-gnats-submit@freebsd.org>,
	yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject: Re: misc/17610: mouse does not work after compiling 4.0-stable 
Date: Thu, 30 Mar 2000 23:02:04 +0900

 >> We need to verify several things.
 >>
 >> First, is your kernel and userland in sync?  You need to do `make
 >> world' and rebuild the kernel after cvsupping RELENG_4 or HEAD
 >> (5.0-CURRENT).
 >
 >I did try a make world on one of the builds.  I removed /dev/* and did a
 >MAKEDEV all after make world thinking it was a problem with /dev/psm0
 
 Ok, so you have done `make world' and recompiled a new kernel.
 
 >> Second, please remove the KVM and attach your PS/2 mouse directly to
 >> your FreeBSD box.  It is well known that some KVMs are not so
 >> compatible.  Give `boot -v' at the boot loader prompt to obtain
 >> verbose boot message and send me /var/run/dmesg.out.
 >
 >I'll try this tonight.  But why would it work under 4.0-r and not 4.0-s.
 
 After 4.0 was released, the psm driver was updated to add support for
 more mice, including MS IntelliMouse Explorer (yes, IntelliMouse
 and IntelliMouse Explorer are so much different).
 
 This update slightly changed the mouse probe sequence and there is a
 chance that your KVM may be got confused by the new probe sequence.
 The genuine IntelliMouse, and other mice, do work properly with the
 updated driver (I tested them before I commit the new code :-)
 
 As I wrote before, some KVM products claim they are compatible with,
 or "is able to emulate", MS IntelliMouse even when in fact they are
 not exactly compatible.
 
 >> Third, when you use the KVM and boot the FreeBSD box, make sure the
 >> KVM is switched to the FreeBSD box so that the FreeBSD kernel can have
 >> "direct" access to the PS/2 mouse.  The PS/2 mouse driver would like
 >> to set up your PS/2 mouse during boot, and needs to receive response
 >> from the mouse during this set up process.  Again start the system
 >> by giving `boot -v' at the boot loader prompt to obtain
 >> verbose boot message and send me /var/run/dmesg.out.
 >I have booted fbsd with the kvm on that computer the whole time.
 
 Please provide demsg.out so that I can diagnose the response from
 the mouse via your KVM.
 
 >> When you installed 4.0-RELEASE on this system, were you using the KVM?
 >
 >Yes, the kvm has been plugged in the entire time.  the KVM was plugged in
 >and working during the install.  I even switch screens to my other computer
 >several times during the install.
 
 Once the kernel is loaded and the system gets working, you can safely
 switch screens via the KVM.  But, you had better let the FreeBSD box
 see the mouse directly while the FreeBSD kernel is starting.  (If the
 KVM is VERY clever and compatible, you may even switch away from the
 FreeBSD box while the kernel is booting...)
 
 Kazu
 
 
 

From: "David Foresman" <sparhawk@enteract.com>
To: <kazutaka.yokota@nifty.com>
Cc: <freebsd-gnats-submit@freebsd.org>,
	<yokota@zodiac.mech.utsunomiya-u.ac.jp>
Subject: Re: misc/17610: mouse does not work after compiling 4.0-stable 
Date: Fri, 31 Mar 2000 07:29:51 -0600

 Ok, I tried with 4.0-r, 4.0-s, and with the mouse off the kvm.
 
 4.0-R works.
 
 psm: status 00 02 64
 psm: status 00 00 64
 psm: status 00 03 64
 psm: status 00 03 64
 psm: status 00 00 64
 psm: data ffffffff 00 64
 psm: data ffffffff 02 64
 psm0: failed to get data.
 psm: status 00 02 64
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: model IntelliMouse, device ID 3-00, 3 buttons
 psm0: config:00000000, flags:00000000, packet size:4
 psm0: syncmask:00, syncbits:00
 
 4.0-s does not work.
 
 psm: status 00 02 64
 psm: status 00 00 64
 psm: status 00 03 64
 psm: status 00 03 64
 psm: data ffffffff 03 64
 psm: data ffffffff 02 64
 psm0: failed to get data.
 psm: status 00 02 64
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: model IntelliMouse Explorer, device ID 4-00, 5 buttons
 psm0: config:00000000, flags:00000000, packet size:4
 psm0: syncmask:00, syncbits:00
 
 4.0-s with the mouse off the kvm works.
 
 psm: status 00 02 64
 psm: status 00 00 64
 psm: status 00 03 64
 psm: status 00 03 64
 psm: data 08 00 00
 psm: data 08 00 00
 psm: status 00 02 64
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: model IntelliMouse Explorer, device ID 4-00, 5 buttons
 psm0: config:00000000, flags:00000000, packet size:4
 psm0: syncmask:08, syncbits:08
 
 
 This mouse is an intellimouse explorer.  So what ever code you used to
 detect the intellimouse explorer, is confusing my kvm becuase it only knows
 about regular intellimouse's.
 
 Is there any way i can force the detect to regular intellimouse?.
 
 I'm attaching all 3 dmesg.boot to this message.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: yokota 
State-Changed-When: Sun Apr 2 00:29:04 PST 2000 
State-Changed-Why:  
Fixed in /sys/isa/psm.c rev 1.25. 
>Unformatted:
