Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1602055pxb; Thu, 4 Nov 2021 05:24:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtcWPBxJZSUxYfXmnbTIfhGqrI56pusnAwg9qQ2MTgv3xN/Hmtq0BM5buQghHvW7RiuK5w X-Received: by 2002:a05:6402:515a:: with SMTP id n26mr674399edd.285.1636028656188; Thu, 04 Nov 2021 05:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636028656; cv=none; d=google.com; s=arc-20160816; b=eITCgUIPzHYcnh1GbnB+S+8E/mKDZz/oVWftLgpKDvabUx7i8ZkKVPA7kVMFANMlAd bua7so6ewME9JcEb1/aInRtDaFQ5HEf9gcof7vEm1uP4VFQBTbLKg8oUGjiqFwqfAS1x PHzRtoJAqFQZQpez8r+MmIyU5YfZtxh4GMvnT/T8WAhFgJympOykqyN0SfnyTHoRAk6T BnghBr11zc5n1Mpp9TrGu8PVo+fBmKsiiSprilha7Qdr6PFpHwP6JQtYPy0nt3vH+/Dq fbc7Ye4KcvrF4nioF13pNvpc97DVSyZonmGWOwW5L2k+XgCgsF7YjY89rDuYsVU9MZAP CV1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=KkhV4nlzFVYvVtsSXq0tnL8ivjyapqfTZ8OtxBlvOJg=; b=KghQbZBKX/P08hPuyNBU1r/sOr4Hk49QedtjzsMOJqmsyzOg8wWhZ3VHiBnteeffRg 6TSyFiLk7VRYNqzyNAd4RUKgyWJk/dLFaCQm00HQ0AnUp1ze+OA5jOi73xiirv7uEK4n YYEaqeW6OxmSFV/RTe4SWwhu1VTb5x5QNWVK+Wq+LaqvKdz2rUw2fJiOTxb5XmVScBmy iNLvYLBK0As6t7RQjvK3SKS6erovExocfh/+AqOMTRxmSqQy4WgJRYUxKFovnkvVAcgY jS/prnCUQoC9mJKQNAZKdn7jHSiWWUws1GNW61xOgWfS6zIoCRTILTnjpmDF/lnzR1QH BBFQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si8369715ejz.358.2021.11.04.05.23.51; Thu, 04 Nov 2021 05:24:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231286AbhKDMY1 (ORCPT + 99 others); Thu, 4 Nov 2021 08:24:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbhKDMYZ (ORCPT ); Thu, 4 Nov 2021 08:24:25 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0361DC061714; Thu, 4 Nov 2021 05:21:47 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id 730751F46101 Subject: Re: [RFC] tty/sysrq: Add alternative SysRq key To: Pavel Machek Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Greg Kroah-Hartman , Dmitry Torokhov , Jiri Slaby , kernel@collabora.com References: <20211103155438.11167-1-andrzej.p@collabora.com> <20211104120111.GB23122@duo.ucw.cz> From: Andrzej Pietrasiewicz Message-ID: <17ccc35d-441c-70c1-a80a-28a4ff824535@collabora.com> Date: Thu, 4 Nov 2021 13:21:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211104120111.GB23122@duo.ucw.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, W dniu 04.11.2021 o?13:01, Pavel Machek pisze: > Hi! > >> There exist machines which don't have SysRq key at all, e.g. chromebooks. >> >> This patch allows configuring an alternative key to act as SysRq. Devices >> which declare KEY_SYSRQ in their 'keybit' bitmap continue using KEY_SYSRQ, >> but other devices use the alternative SysRq key instead, by default F10. >> Which key is actually used can be modified with sysrq's module >> parameter. > > Is F10 sensible default? Would it make sense to use something like > alt-shift-esc so that this can be enabled by default? Why "alt-shift-esc" could be enabled by default? Do you mean to enable it for all systems regardless of whether they declare or don't declare KEY_SYSRQ in their 'keybit' bitmap? Andrzej