[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ed0379a0-1360-4271-16bd-cde2e4b3372b@amd.com>
Date: Fri, 17 Jun 2022 11:06:05 -0500
From: "Limonciello, Mario" <mario.limonciello@....com>
To: David Laight <David.Laight@...LAB.COM>,
'Alan Stern' <stern@...land.harvard.edu>,
Greg KH <gregkh@...uxfoundation.org>
Cc: Jiri Kosina <jikos@...nel.org>,
Benjamin Tissoires <benjamin.tissoires@...hat.com>,
"open list:USB HID/HIDBP DRIVERS [USB KEYBOARDS, MICE, REM..."
<linux-usb@...r.kernel.org>,
"open list:HID CORE LAYER" <linux-input@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>,
Richard Gong <richard.gong@....com>
Subject: Re: [PATCH v2] HID: usbhid: set mouse as a wakeup resource
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.
> 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.
> 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.
Powered by blists - more mailing lists