Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4437983pxj; Tue, 25 May 2021 08:02:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytqqrAlH8uLLQ2i+k/wmWPjh8I8Ov/bDkiv6WEAHDRsNeFIZ3AsE8v0T/NPx134j86tkTX X-Received: by 2002:a02:a10f:: with SMTP id f15mr31354118jag.124.1621954967014; Tue, 25 May 2021 08:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621954966; cv=none; d=google.com; s=arc-20160816; b=pE5BjCPMxWKm5zKWuCd31JtZiSmf31yMKrDorg48UVQsvlBxYbbQyuq4dOIY7z8mt4 6yIB3V2XEaz1aERN4OTFuOk65/8VsZ1BhoRp55wctbQF0bcg+Sa6CeoBM+VhGkODiGjS aY+8KBQbNQrfBnlOME3rJHO4zQWA7UV8N632vN+YjRjQZiPkpk9aaSXKEx9MsX6Xr0pF HUpdeGPkFvhfQ7EYc7qJVWjLxaamR7rPCyY04qvoa+ZyO45YCzHD7HzTR1mhEEdVs4hR EXAmu/xtBg3TYkVHawlnq1fDkNTJDKtpXWlSAUY0NUJpjsYhRgeavYgpBGdLt9VXamrE vNog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=Qt7xSUNOmHAQi4P06mTZcqw+fj0oxkeRlZUfC9qB+no=; b=bTR1bQ/vveWe0nmYUKbXILVdPR4AjX5pR1pld+WVkFvydWU9s1iJfgjByxLVIYj92Y Ysr+jeDHaqf84VMUmr/RAaK9eSiipOy6ADam2RYiI7hZQURZewAvoRgyTxRNC1HLijKG 6T3C9x/cNrOs+05ObvCwZ05THqNQbzcJkYw0X0OAtv++H0HTfRRvWoAUYHpYySa3moQ1 LMO/FyPezwM6agps8BVSzgIolJSjQ+KIlOJwZhvZTRQQG6e0KiiStpzbdmSD1x8fFkui jby2NnKpVcldWmVe1W2BwvLJBSDd2fyv55FTXl5wGBBJWoGlRRjWJ31YbjonfTqo7OiA Ch6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=CWxK040f; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si16284801iog.66.2021.05.25.08.02.32; Tue, 25 May 2021 08:02:46 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b=CWxK040f; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232835AbhEYJ5U (ORCPT + 99 others); Tue, 25 May 2021 05:57:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:50752 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232805AbhEYJ5S (ORCPT ); Tue, 25 May 2021 05:57:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1621936547; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qt7xSUNOmHAQi4P06mTZcqw+fj0oxkeRlZUfC9qB+no=; b=CWxK040fDU6xWiJFGjqBnSfLokQxf0NAodqQwYFO98AYBY+y7HOgzvwJpZdOG830Jp3/YM /O5AtRUDHEjsrZFBLTJfzilo/NCxFWr7khzgjEkomXaI0KZttD+0rNSO11nlOwKfPP3Dy1 ZCgvtP9lLzMN/p7piMTQIv5x53cTzSA= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A2769AE1F; Tue, 25 May 2021 09:55:47 +0000 (UTC) Message-ID: <4086b017d678f2edaea3a87b8eae18a85cc8e89d.camel@suse.com> Subject: Re: Re: [PATCH] HID: usbhid: enable remote wakeup for mouse From: Oliver Neukum To: =?UTF-8?Q?=E9=A9=AC=E5=BC=BA?= , Alan Stern Cc: jikos , "benjamin.tissoires" , linux-usb , linux-input , linux-kernel Date: Tue, 25 May 2021 11:55:46 +0200 In-Reply-To: <1209199573.51584.1621492845444.JavaMail.xmail@bj-wm-cp-1> References: <20210517060145.32359-1-maqianga@uniontech.com> <1327a9251c74587670970baa0f662cd61006f576.camel@suse.com> , <20210517133247.GB1083813@rowland.harvard.edu> <1209199573.51584.1621492845444.JavaMail.xmail@bj-wm-cp-1> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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