NetBSD Problem Report #48441

From dholland@macaran.localdomain  Wed Dec 11 06:26:45 2013
Return-Path: <dholland@macaran.localdomain>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BF3CCA5684
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 11 Dec 2013 06:26:45 +0000 (UTC)
Message-Id: <20131211062835.3F6726E255@macaran.localdomain>
Date: Wed, 11 Dec 2013 01:28:35 -0500 (EST)
From: dholland@eecs.harvard.edu
Reply-To: dholland@eecs.harvard.edu
To: gnats-bugs@NetBSD.org
Subject: ums(4) flapping with recent logitech mice
X-Send-Pr-Version: 3.95

>Number:         48441
>Category:       kern
>Synopsis:       ums(4) flapping with recent logitech mice
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 11 06:30:00 +0000 2013
>Closed-Date:    Sun May 14 21:59:31 +0000 2023
>Last-Modified:  Sun May 14 21:59:31 +0000 2023
>Originator:     David A. Holland
>Release:        NetBSD 6.99.19 (20130404)
>Organization:
>Environment:
System: NetBSD valkyrie 6.99.19 NetBSD 6.99.19 (VALKYRIE) #13: Sun Nov  3 17:07:36 EST 2013  dholland@valkyrie:/usr/src/sys/arch/amd64/compile/VALKYRIE amd64
Architecture: x86_64
Machine: amd64
>Description:

I recently got a new Logitech usb mouse, the most basic kind with a
wheel but nothing else. Now, when X isn't running, I get this over and
over again slightly less than once per minute:

Dec 10 07:12:23 valkyrie /netbsd: wsmouse0: detached
Dec 10 07:12:23 valkyrie /netbsd: wsmouseetached
Dec 10 07:12:23 valkyrie /netbsd: uhidev0: detached
Dec 10 07:12:23 valkyrie /netbsd: whidev0: at uhub2 port 3 (addr 2) disconnected
Dec 10 07:12:26 valkyrie /netbsd: uhidev0 at uhub2 port 3 configuration 1 interface 0
Dec 10 07:12:26 valkyrie /netbsd: uhidev0: Logitech USB Optical Mouse, rev 2.00/63.00, addr 2, iclass 3/1
Dec 10 07:12:26 valkyrie /netbsd: ums0 at uhidev0: 3 buttons and Z dir
Dec 10 07:12:26 valkyrie /netbsd: usmouse0 at ums0 mux 0

(yes, it says "wsmouseetached" in the log most times; it also has other
variants, such as "wsmousdetached".)

When X is running, this doesn't happen.

A couple other people have mentioned seeing this with new mice
recently too.

(On the plus side, it was flapping thus for several hours this morning
and the USB stack didn't panic.)

>How-To-Repeat:

as above

>Fix:

This is presumably a bug workaround for Windows; I guess if you don't
talk to the mouse for 60 seconds it assumes the OS's driver has wedged
and reconnects itself.

Probably we ought to try to figure out either how to disable this
behavior, or how to detect it and add something to ums to pat the
mouse regularly so it doesn't do this.

If anyone knows of a useful channel, it might also help in the long
run to send Logitech a cluebat labelled "exponential backoff".

>Release-Note:

>Audit-Trail:
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/48441: ums(4) flapping with recent logitech mice
Date: Sun, 05 Jan 2014 17:02:56 +0900 (JST)

 From: dholland@eecs.harvard.edu, Date: Wed, 11 Dec 2013 06:30:00 +0000 (UTC)

 > This is presumably a bug workaround for Windows; I guess if you don't
 > talk to the mouse for 60 seconds it assumes the OS's driver has wedged
 > and reconnects itself.
 > 
 > Probably we ought to try to figure out either how to disable this
 > behavior, or how to detect it and add something to ums to pat the
 > mouse regularly so it doesn't do this.
 > 
 > If anyone knows of a useful channel, it might also help in the long
 > run to send Logitech a cluebat labelled "exponential backoff".

 I have 3 mice that has same behavior.

 Is this related to USB autosuspend described in
 https://www.kernel.org/doc/Documentation/usb/power-management.txt ?

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/48441: ums(4) flapping with recent logitech mice
Date: Sat, 26 Apr 2014 04:29:38 +0000

 On Sun, Jan 05, 2014 at 08:05:00AM +0000, Ryo ONODERA wrote:
  >  I have 3 mice that has same behavior.
  >  
  >  Is this related to USB autosuspend described in
  >  https://www.kernel.org/doc/Documentation/usb/power-management.txt ?

 That looks like a Linux thing, not a USB thing?

 -- 
 David A. Holland
 dholland@netbsd.org

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/48441: ums(4) flapping with recent logitech mice
Date: Sun, 14 May 2023 21:35:56 +0000

 On Wed, Dec 11, 2013 at 06:30:00AM +0000, dholland@eecs.harvard.edu wrote:
  > Probably we ought to try to figure out either how to disable this
  > behavior, or how to detect it and add something to ums to pat the
  > mouse regularly so it doesn't do this.

 According to PR 57400 we have a quirk entry for this nowadays:
 UQ_ALWAYS_ON.

 I suspect the quirk probably needs to be applied to various product
 IDs it hasn't been, but since the mouse that generated the original
 report here is dead there's nothing further to do for this PR.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 14 May 2023 21:59:31 +0000
State-Changed-Why:
Quirk entry now exists.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.