Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3085738pxb; Fri, 5 Nov 2021 09:30:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiBCbXWj+XbgE8HqYQKK7wEhGT+GuqRfnUCxTzSXbUI+aVZPxCzMFwNBUsz8/CKDVPdxc6 X-Received: by 2002:a05:6e02:1d11:: with SMTP id i17mr29836813ila.270.1636129828422; Fri, 05 Nov 2021 09:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636129828; cv=none; d=google.com; s=arc-20160816; b=LBUaaGt892llaAFCt0AejGQVSgcb1KIL+yHByR6+ZvZVRiZ4FF9y8UcLsZPtJh0G6q 3DcSsyB29NqletDUh82qjDUeJjATcZkPuB1h50Hfw6EhvJpit5Ufo5pilb1JwQErBZN5 M47RR2wsbpayHejvuWgb2UhtScjx77n4dOSLE3L4eo2V9XBu0mNTZzEDNdUcKPcjtE/9 RjnXTXa5q14iSTL88MWJkpPHGGx9psmsN4Xf93Kc6nYV+N0U7EqP/phfe00w+1JGmcl2 3mxjHSILudGhv9kE9CSBJMx/5GnxXj90hCxIYlAIg+koj0pVV7jW1cWeYNwaoYXdOHma EjKw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DL+mmhjRRyGZjN76lbSY73bC5tDjzb7kr5+lZFyL9oc=; b=XhjZz03mcIj236Y5RxaSwneYRY9fY93WEIX7U2crzf5Xsw7CmAK7DJAJJvRZMCKQt0 hfs6hblcvBx+tU1hTRZ06rPBt1fmBh1oKOT4xu+BybfkBbVoBKlJyyMXw/awgmxs/yyY 9PgcI5lMcLdkAE74sRLMrORD9boz8V7RwtZk3TAgiaz5+rixTEiyeE76L6T/f1/8Izo0 2CQnBOVUhHyvlnBxynOLi32pPtQFwZdmqttGQo2cW94RB6c1txOMEXQVZdSe/OLlgiTH PV4T/TjiQtDVC5zFZOTPV3Yc3Sme9jD8Hx3pd+nsxc1VLx0HxpN0xf/PWYW8HT78/+6w Jibg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="v/hpkmvc"; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si13268931iot.89.2021.11.05.09.30.13; Fri, 05 Nov 2021 09:30:28 -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=@linuxfoundation.org header.s=korg header.b="v/hpkmvc"; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232852AbhKENaA (ORCPT + 99 others); Fri, 5 Nov 2021 09:30:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:36822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbhKEN37 (ORCPT ); Fri, 5 Nov 2021 09:29:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 77A9A6008E; Fri, 5 Nov 2021 13:27:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1636118840; bh=MNPGUTGRk+SK3gvtiozT8wwNd3ywfLuyUdOvybUnQA0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=v/hpkmvcwomVhCy6YfxPxWo+VNrksT/7gZLTgRSWl+TpeuzpPRONL5M02+Ip3ZH2l LkR20Gsat+3hYkeAYB5kxR2SLveQlBwX8HBBSCb7Wf9aDvoDMHhT7KQS+66AMasRJU +JWewHOYIwOKGLzjUQ6Fzee9D4HJJMrCBJPO39uk= Date: Fri, 5 Nov 2021 14:27:17 +0100 From: Greg Kroah-Hartman To: Andrzej Pietrasiewicz Cc: "Maciej W. Rozycki" , Pavel Machek , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Dmitry Torokhov , Jiri Slaby , kernel@collabora.com Subject: Re: [RFC] tty/sysrq: Add alternative SysRq key Message-ID: References: <20211103155438.11167-1-andrzej.p@collabora.com> <20211104120111.GB23122@duo.ucw.cz> <17ccc35d-441c-70c1-a80a-28a4ff824535@collabora.com> <9fbe062a-2992-0361-e72a-f2b1523143dd@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 05, 2021 at 02:01:23PM +0100, Andrzej Pietrasiewicz wrote: > Hi, > > W dniu 04.11.2021 o?15:17, Andrzej Pietrasiewicz pisze: > > Hi Maciej, > > > > W dniu 04.11.2021 o?14:13, Maciej W. Rozycki pisze: > > > On Thu, 4 Nov 2021, Maciej W. Rozycki wrote: > > > > > > > ? The reason for this is with their more recent laptops Lenovo in their > > > > infinite wisdom have placed the key (which in a traditional > > > > PS/2-keyboard manner produces when combined with ) in their > > > > keyboards between the right and keys.? With thumbs not being > > > > as accurate as other fingers (and the overall misdesign of the keyboard > > > > and touchpad interface) you can imagine how often I have inadvertently hit > > > > combined with a letter key, wreaking havoc to my system (and of > > > > course I want to keep the key enabled for times when I do need it). > > > > > > ? On second thoughts this can be disabled with `setkeycodes 54 0' once we > > > do have an alternative combination available. > > > > > > > Doesn't `setkeycodes` affect only one keyboard? What if there are more > > keyboards connected to a machine? > > > > From drivers/tty/vt/keyboard.c: > > > > /* > > ?* Translation of scancodes to keycodes. We set them on only the first > > ?* keyboard in the list that accepts the scancode and keycode. > > ?* Explanation for not choosing the first attached keyboard anymore: > > ?*? USB keyboards for example have two event devices: one for all "normal" > > ?*? keys and one for extra function keys (like "volume up", "make coffee", > > ?*? etc.). So this means that scancodes for the extra function keys won't > > ?*? be valid for the first event device, but will be for the second. > > ?*/ > > > > My second thoughts: if we run `setkeycodes` to map, say, F10 as SysRq, > don't we lose F10? The fact that this patch adds a "new" sysrq key no matter what is a non-starter, please think through the consequences of such a change... So no, as-is, this change is not acceptable at all, and I would be amazed if anyone would ship such a thing. thanks, greg k-h