From owner-freebsd-questions Thu Oct 25 6:51: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail6.sdc1.sfba.home.com (femail6.sdc1.sfba.home.com [24.0.95.86]) by hub.freebsd.org (Postfix) with ESMTP id 9C4D837B406 for ; Thu, 25 Oct 2001 06:51:04 -0700 (PDT) Received: from pobox.com ([24.11.249.248]) by femail6.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20011025135104.VUML629.femail6.sdc1.sfba.home.com@pobox.com> for ; Thu, 25 Oct 2001 06:51:04 -0700 Message-ID: <3BD81A26.AFF03BCD@pobox.com> Date: Thu, 25 Oct 2001 09:56:54 -0400 From: Lee Nelson X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: psm.c : KVM and Mouse trouble Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am having trouble with a Microsoft Intellimouse-style mouse, when it is connected through a KVM. There is no trouble when the mouse is connected directly to the PS/2 port. A more complete description follows. Hardware: MOUSE: "Microsoft Wheel Mouse Optical USB and PS/2 Compatible" this is a USB mouse, boxed with a PS/2 adapter. The PS/2 adapter was used at all times. KVM: "Linksys Proconnect 4 station CPU switch" (rebadged ATEN) MB: Asus P5A w/ AMD k6-III 500Mhz Log Messages: Mouse connected directly to PS/2 port: psm0: irq 12 on atkbdc0 psm0: model Intellimouse, device ID 3 Mouse connected through KVM: psm0: failed to get data. psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 Symptoms: Mouse works fine when connected directly to PS/2 port. When connected through a KVM, the mouse initially works fine in text mode, using moused. When X is started, the mouse works for a minute or two (of constant mousing), and then the mouse pointer jumps all over the screen, and random mouse button presses are registered. The mouse KVM combo works well with other OS's, specifically Linux 2.2.x, Mac OS 9, and Windows 98. Incidentally, the hardware I am currently using for FreeBSD was previously running Linux, and the mouse worked fine. What I tried: I've tried using moused for X (/dev/sysmouse). I've also tried stopping moused and using /dev/psm0 directly, with the PS/2 protocol. The IMPS/2 protocol, which used to work under XFree86 3.x, no longer is accepted as a valid option. What I think it is (100% conjecture): The KVM appears to not allow the computer to query the mouse. But the raw mouse data is sent to the computer, with no filtering. FreeBSD assumes a Generic PS/2 mouse when it cannot read the mouse type, but Intellimouse type data is being sent, thus confusing the mouse driver. I assume the problem lies in psm.c. I am looking at that file to see if I can force it to use the Intellimouse protocol, but I'd like to know if there is a better way. Surely, a lot of people out there are using KVM's. :) Thanks so much in advance, Lee Nelson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message