Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2866604pxj; Mon, 17 May 2021 11:40:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypQDHoj8W9rgM/Cco8Yx6twtSF/NN8wfDwMXHe9FSB3q9IqlOMsbCyBe2xqvindQGh60O3 X-Received: by 2002:aa7:d3c8:: with SMTP id o8mr1679205edr.181.1621276842172; Mon, 17 May 2021 11:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621276842; cv=none; d=google.com; s=arc-20160816; b=UeGpVnLOQfS36cQ0Ku/B1aQk7isTmz34VXV19LrB0c8Av+eVxt6a/cbdTju+Y30MZL HCvjetTxG3EV79rjtSlTrxW/utnVzGs5ZE8TAxWdOtsYwftQEOpuDrlMiyfH+HJNMUE3 BIISdSobQjBGhgfj4J3FR4PiDhAEx0Ilwbc+emBG4XPxwC2m2rgHVyxUATI5KWjOxN+D 7JwHdwJvPmspVhumQghk3dYBdayrMg3dDhQel5SfRJSOIcEM9oKsCTDGelmKV83XxMHH nbJub3f0Soq4NI460Cuz6aJFXou4yxDPxCDVPUN7RzkAzEsBGH1Du78B+qfG+b0BhvtS W9mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/5ICn2i8GcHoONLgWHNwBdvCgAF9qWPSj2TOWqwT08E=; b=sHlj8mMwh/Zyw6i9w47cEtvfjFmV6jhrm0fiQEFT2yag3zImQF2bOrcw40vJBo4Cuh 8zwoO9p6vCSMtPBDC4yNq20ZG2H9fTktJe37o8Z1xnws9R8/cJBda6zLCpvJQ3qf8YBI tqITbfTbdnkrfrNVR4Akjm1Pbiuo69NoiMnDsmbDq+hmNxBV5vWHlbJW0agGdmLKx0rx rfoPzpED7yROQXBJstcrx2LUvl/k0OPAkF44qEGz8munv88wqJYB1qlQAIM9u5fcAgvT QSSUS3mRPTaxtaUr4fC7ASKJQiqauOMFwxZ+6RbEXVWlTaMWC2M9G/ffvI2bfefvKWVh Cq9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si15072997eds.591.2021.05.17.11.40.18; Mon, 17 May 2021 11:40:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237373AbhEQNeJ (ORCPT + 99 others); Mon, 17 May 2021 09:34:09 -0400 Received: from netrider.rowland.org ([192.131.102.5]:49091 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S235266AbhEQNeF (ORCPT ); Mon, 17 May 2021 09:34:05 -0400 Received: (qmail 1084954 invoked by uid 1000); 17 May 2021 09:32:47 -0400 Date: Mon, 17 May 2021 09:32:47 -0400 From: Alan Stern To: Oliver Neukum Cc: Qiang Ma , jikos@kernel.org, benjamin.tissoires@redhat.com, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: usbhid: enable remote wakeup for mouse Message-ID: <20210517133247.GB1083813@rowland.harvard.edu> References: <20210517060145.32359-1-maqianga@uniontech.com> <1327a9251c74587670970baa0f662cd61006f576.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1327a9251c74587670970baa0f662cd61006f576.camel@suse.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 10:31:45AM +0200, Oliver Neukum wrote: > Am Montag, den 17.05.2021, 14:01 +0800 schrieb Qiang Ma: > > This patch enables remote wakeup by default for USB mouse > > devices. Mouse in general are supposed to be wakeup devices, but I disagree with that statement. Who decided that mice are supposed to be wakeup devices? > > the correct place to enable it depends on the device's bus; no single > > approach will work for all mouse devices. In particular, this > > covers only USB mouse (and then only those supporting the boot > > protocol). > > > > Hi, > > have you tested this? In my experience the issue with mice > is that they wake up only when you press a mouse button, not when you > move the mouse. Do we make a promise we cannot keep here? Even worse, if a mouse is enabled for wakeup then the system may get woken up at the wrong time. The example people often use is a laptop with a USB mouse thrown into a backpack while it is asleep. Something else inside the backpack may accidentally press against a mouse button, causing the system to wake up even though the user wants it to remain asleep. Alan Stern