Re: [PATCH] HID: usbhid: enable remote wakeup for mice

From: Michael Wu
Date: Thu Feb 23 2023 - 06:22:58 EST


Dear Oliver,

On 2/22/2023 5:34 PM, Oliver Neukum wrote:
On 22.02.23 02:39, Michael Wu wrote:
This patch fixes a problem that USB mouse can't wake up the device that
enters standby.

Hi,

I am afraid I need to ask you to be a bit more precise here.
Are you referring to USB mice being unable to wake up a system,
even if you so request via sysfs, or that they won't by default?

    Regards
        Oliver

Yes. I can't use any USB mouse which supports Remote Wakeup to wake up the system by default.
If I enable the wakeup node in /sys/bus/usb/devices which is disabled by default, the mouse can wakeup the system successfully.
Clearly, the only thing I can do is to register the wakeup source for USB Mouse devices.

--
Regards,
Michael Wu