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

Oliver Neukum
2021-05-25T09:55:53Z

Am Donnerstag, den 20.05.2021, 14:40 +0800 schrieb 马强:
> This is caused by external reasons, as the kernel cannot sense
> whether it is accidentally triggered or actively triggered.
> If this kind of unintentional situation is avoided,
> the keyboard should also be disabled wakeup by default.
> Otherwise, the normally used computer may be awakened
> by someone else accidentally pressing the keyboard on standby.
>

The kernel has to manage keyboards. There just is no genuine
keyboard device user space could open, nor could we do sysrq
or sak if we left the keyboard fully to user space.

Hence keyboards are a special case unfortunately. We will
have to live with two classes of wakeup, keyboards and power
buttons on the one hand, versus everything else.

Regards
Oliver