Subject: Re: USB mouse goes dark
To: None <current-users@netbsd.org>
From: MLH <mlh@goathill.org>
List: current-users
Date: 04/28/2005 10:25:40
Jeff Rizzo wrote:
> Martijn van Buul wrote:
>>It occurred to me that Lennart Augustsson wrote in
>>gmane.os.netbsd.current:
>>
>>>I'm very interested in the circumstances involved in this,
>>>since I've never had a mouse go dead myself.
>>
>>My Microsoft optical mouse dies on a semi-frequent basis, but I suspect
>>that this is related to it being connected via an (electronic, PS/2) KVM
>>switch. Every now and then (Once per week, or so), the mouse will
>>shutdown - but *only* on the NetBSD output on the KVM! Restarting X will
>>get it back.
> 
> Not sure if this is related, but I have USB keyboard/mouse on a USB kvm
> switch, and whenever I switch back to NetBSD, the mouse is dead in X
> until I switch virtual consoles away from the X server and back.  I've
> thought many times about troubleshooting this, but never actually done
> anything about it... it's been happening since early 1.6 days, at least,
> maybe before.  I also have a microsoft optical mouse, but I'm pretty
> sure it's happened with others as well.

I just had my Logitech mouse 'go dark' again, as it does about once
a week. It always and only does it when I have locked my KDE session
and happens right as the display is refreshing after being unlocked.
No syslog message. Sometimes it recovers when I toggle the console
switch but not often. 

I can unplug and plug into various usb ports but this time it didn't
recover. I had to restart xdm.

Apr 28 09:48:14 kingu /netbsd: uhidev0: at uhub0 port 1 (addr 2) disconnected
Apr 28 09:48:15 kingu /netbsd: wsmouse0 detached
Apr 28 09:48:15 kingu /netbsd: ums0 detached
Apr 28 09:48:15 kingu /netbsd: uhidev0 detached
Apr 28 09:48:18 kingu /netbsd: uhidev0 at uhub0 port 1 configuration 1 interface 0
Apr 28 09:48:18 kingu /netbsd:
Apr 28 09:48:18 kingu /netbsd: uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 2, iclass 3/1
Apr 28 09:48:18 kingu /netbsd: ums0 at uhidev0: 3 buttons and Z dir.
Apr 28 09:48:18 kingu /netbsd: wsmouse0 at ums0
Apr 28 09:48:18 kingu /netbsd:  mux 0

Apr 28 09:51:32 kingu /netbsd: uhidev0: at uhub0 port 1 (addr 2) disconnected
Apr 28 09:51:32 kingu /netbsd: wsmouse0 detached
Apr 28 09:51:32 kingu /netbsd: ums0 detached
Apr 28 09:51:32 kingu /netbsd: uhidev0 detached
Apr 28 09:51:55 kingu /netbsd: uhidev0 at uhub1 port 1 configuration 1 interface 0
Apr 28 09:51:55 kingu /netbsd:
Apr 28 09:51:55 kingu /netbsd: uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 2, iclass 3/1
Apr 28 09:51:55 kingu /netbsd: ums0 at uhidev0: 3 buttons and Z dir.
Apr 28 09:51:55 kingu /netbsd: wsmouse0 at ums0
Apr 28 09:51:55 kingu /netbsd:  mux 0