From owner-freebsd-questions@FreeBSD.ORG Fri Mar 12 16:09:49 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DACD16A4D0 for ; Fri, 12 Mar 2004 16:09:49 -0800 (PST) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 8E22E43D1D for ; Fri, 12 Mar 2004 16:09:48 -0800 (PST) (envelope-from ph.schulz@gmx.de) Received: (qmail 19599 invoked by uid 65534); 13 Mar 2004 00:09:47 -0000 Received: from p5090C7B8.dip0.t-ipconnect.de (EHLO gmx.de) (80.144.199.184) by mail.gmx.net (mp015) with SMTP; 13 Mar 2004 01:09:47 +0100 X-Authenticated: #1954550 Message-ID: <4052518D.1000502@gmx.de> Date: Sat, 13 Mar 2004 01:10:53 +0100 From: Phil Schulz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20040306 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Mouse (psm0) sometimes not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ph.schulz@gmx.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2004 00:09:49 -0000 Hello List! I have a problem with my mouse which I can't figure out by myself. I hope any of you guys can help me. I tried to include as much information as possible so this eMail is rather long... Let me first describe my setup a bit as I think it might be related to my problems. I have two computers sitting here, both are connected to the same keyboard, mouse and monitor through one of those KVM switches. The mouse is a Logitech MouseMan Dual Optical. The mouse has a cord and allows for USB and for PS/2 use (adaptor). My mouse is connected as a PS/2 mouse using the adaptor. It is recognized as psm0: flags 0x100 irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 The first PC is running FreeBSD 4-Stable as a desktop as well as Windows 2000 (mostly to play games). The other one currently runs FreeBSD 4-Stable and is mainly for testing and playing around with and does not run moused(8) nor does it run X. The FreeBSD desktop runs XFree86 4.x.x (the one that comes w/ 4.9-Release) and moused(8). The following lines in /etc/rc.conf are used to start moused(8): moused_enable="YES" moused_port="/dev/psm0" moused_type="auto" Now, the problem: When I boot FreeBSD and run X (which I always do, it's a desktop system), the mouse very often does not respond at all. Sometimes this is fixed by rebooting the machine. However, sometimes the problem remains after several reboots. Also, Windows sometimes does not recognize the mouse any more, which is really strange to me. I then need to either switch off the PC's PSU or, in case that didn't help, I have to boot windows in 'fail safe mode' or whatever it's called in English . Other times, time is on my side and after trying to boot FreeBSD after an hour or so, it will work again without me doing anything. These are things I noticed in such situations: When switching to the first console via +, I don't see any error messages (I probably just don't see them; doesn't mean they're not there). When I log in and check which processes are running, I find moused(8) not running. I am then unable to start moused(8) manually. Many times it complains about an I/O error for /dev/psm0. It happend once (I think) that /dev/psm0 was not there at all. Remaking it via cd /dev && sh MAKEDEV psm0 made the device file, but did not make moused(8) work. Also, I saw (only one time) a message during booting which looked like kernel: psm0: failed to open the device (doopen) but grep(1)'ing through /usr/src/sys did not give me any results where this could come from. This is what I've seen from the software side, but hardware shows some more symptoms: The mouse has got two optical sensors which are usually dimmed while the mouse is not being moved and will be lit as soon as I move the mouse. However, when the fault occurs, the LEDs are constantly blinking brightly but will return to their normal behaviour when switching (using the KVM switch) from one PC to the other (if that one doesn't show the problem at the time). I've done some googling prior to this post and found many problem reports about users who have problems with their mouse when connecting via a KVM switch. However, this problem I'm facing also occurs when I do not connect through the switch but also when I connect the mouse directly to the port. It has not occured when connecting the mouse to the USB port. I have trouble solving this issue by myself because my knowledge about the hardware involved is very limited and I haven't found any way to reliably reproduce the problem (other than booting the system). I hope that there is somebody out there who can either tell me how to fix this or at least explain why this problem exists and why there isn't any way of fixing this... Phil.