Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp663841iog; Fri, 17 Jun 2022 10:45:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sNxIfOrhsjPfnmifimImv7aWWBgQDrUtbT9hvhJjj25J9RxwCR7YiJr3EXZ0c889FUcJ/e X-Received: by 2002:a05:6402:42d5:b0:433:1727:b31c with SMTP id i21-20020a05640242d500b004331727b31cmr13716324edc.9.1655487958346; Fri, 17 Jun 2022 10:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655487958; cv=none; d=google.com; s=arc-20160816; b=jHz92mWqGvQDrzZITVuvP7teTH3rjDvAt4gsTfMesHlVKWRshB9qcqc8mPvSGXkS05 PkRj/Vml0w0mFQlFYlYx/oi7Wj2lAJuaRnOVgt/3r3r3NPHhCENcBNuUAhxs96FcEkYu GhuvXRSdsGgpcXBXNpJSW1dVC4mtIqQOOZydHYuO5QaXfJu/gfd4BLSJOqOl+742scDM UOHxEK4pqZJqwgXhykvgyx8/9qqDVLSa5P9KIAXcRit9iiJqdf1xWTcgYVjpgqgyb1+T VqTvGBBgInXwWtiXl6sjd7yuY9gJrQ/JnefDXujtHzt1ElZYlEXhVRrJGKjZLW45HGLr T1fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=i3dvJSiy+r8EahDWnqpXndT7kvx6nnjD/SqzOuodWnY=; b=gx4JC4kGXUTpYXD/p3juiDDxLRVNyxTA5WVa1UKoSlagF0RI+Q2hI/YqQdIrdODBb8 dX8aIJcjxYvkDGw9yhKJxqV1aylUzucwcZkLNYb8X7kfmu9xYy1i5nag70M0tc2ilLFT nBW+6KB43GHuEdW+4WzTP/gAkvyaKUOA+Tx2sf5bYjVqjxbK8oFs3b5wqpHrh0Lcl1Po oeqTzr53OY8Fh7Syd6Islt8yALPKp63ioHPJ8hJgsmnd4zzGDWtnHXlWKSxnLpptML1E BH2dsTC1jEJPxafuD+vNELotS/61unRFww9c/wWT3fO96Hbj5NHOWts4vxR3Do2j0+iT hCPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht14-20020a170907608e00b006febbb171a9si901417ejc.918.2022.06.17.10.45.30; Fri, 17 Jun 2022 10:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382769AbiFQRjc (ORCPT + 99 others); Fri, 17 Jun 2022 13:39:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234564AbiFQRja (ORCPT ); Fri, 17 Jun 2022 13:39:30 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 0EC4E3EF3B for ; Fri, 17 Jun 2022 10:39:28 -0700 (PDT) Received: (qmail 772991 invoked by uid 1000); 17 Jun 2022 13:39:28 -0400 Date: Fri, 17 Jun 2022 13:39:28 -0400 From: 'Alan Stern' To: "Limonciello, Mario" Cc: David Laight , Greg KH , Jiri Kosina , Benjamin Tissoires , "open list:USB HID/HIDBP DRIVERS \[USB KEYBOARDS, MICE, REM..." , "open list:HID CORE LAYER" , open list , Richard Gong Subject: Re: [PATCH v2] HID: usbhid: set mouse as a wakeup resource Message-ID: References: <20220616183142.14472-1-mario.limonciello@amd.com> <419f8edc2a7744ecbfaa0728227db180@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 17, 2022 at 11:06:05AM -0500, Limonciello, Mario wrote: > On 6/17/2022 10:39, David Laight wrote: > > From: Alan Stern > > > Sent: 17 June 2022 16:05 > > ... > > > Another issue is whether wakeup for a mouse means pressing a button or > > > just moving the mouse. For a mouse that uses LEDs to sense motion, > > > moving it won't generate a wakeup request -- USB suspend does not allow > > > the mouse to use enough current to keep the LEDs illuminated. On the > > > other hand, there's no reason why wakeup by pressing a button shouldn't > > > always work. > > > > At least one of the Logitech wireless mice I have here works to wake either > by clicking the buttons or moving the mouse, presumably because the mouse is > battery powered. One of my wired ones works only by clicking (which is as > you describe). > > I don't believe there is going to be a way to have granularity of which type > of event will wake the system; it will be hardware dependent. Precisely. So if the point of the patch is to match users' expectations, and some users expect to be able to wake up their systems by moving the mouse but their mouse is like yours, then the situation is hopeless and the patch won't help. > > I'm not even sure I want a system to wake up because it's mouse > > gets knocked. > > I guess a mouse could include accelerometers so that you can shake it! > > > > I'm completely opposite. As soon as I sit down at my desk which has a a > closed docked laptop, the first thing I do is use the mouse which will wake > the system. > > And if you take a step further and consider desktops if you *don't* do this > you'll have to find your power button or use the keyboard. The usual counterexample is laptop-in-a-knapsack. You don't want the laptop to wake up just because the knapsack was picked up and that jostled the mouse. Overall, it seems like this patch needs a better justification. Alan Stern > > I've an idea that one of my systems manages to boot if the mouse > > is knocked (and it was last shutdown from windows). > > At least, that it why I think it is sometimes booting up. > > > > It was probably hibernated from Windows rather than shutdown. Windows tends > to make this "invisible" to the user. Some systems can wake from S4 on > certain devices, and I would expect some registers on your system have been > programmed to work that way.