Message ID | 6af6b923fb73ca9ed5b89f29ca2b8f35730d5cda.1708399689.git.soyer@irl.hu |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-72280-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp174518dyc; Mon, 19 Feb 2024 19:41:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWLbTVDbyoSXKsC1fQc5R9BEs3+ch/L+YsmRNNEv13r6vkdm0/SaLwz0ulUuIyxjckHa/klkb6rekvMkKijz2pm17unyQ== X-Google-Smtp-Source: AGHT+IH7s8a4SOJQrprhGTEmkz11Ct5NP3us45vRki/Fg8jGjBnYno3/DAYuwL7wkmD13lrv5BEn X-Received: by 2002:a05:620a:4ec:b0:787:3822:e875 with SMTP id b12-20020a05620a04ec00b007873822e875mr13792141qkh.13.1708400464555; Mon, 19 Feb 2024 19:41:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708400464; cv=pass; d=google.com; s=arc-20160816; b=r8HcMKk45eLPLHlvDxtoEMpVO6gZv+J5stUvQjwHDiiXrC5qHf3tEcwyvmKodz6Nkq bv6SbMYin6bFi6SpUDV6POlm5SbiyBXDzOCSoM1V4+A+uCxhgsyIii6wsE0aT8cI6xWu WVL1CYpyNr0ExYsiNSgFQ8u8E3D152mNfudEVPiN5FllX0Tj6gT0hXhVLtGG+qai5VtM A0cW5tVFGRZH9jqwIjOOsx20wYTUluaM5Q11kydwK0HB9RfE8FpU00fpXCNdp8QYiZGB 7goPlf+LRJ4XlrG6ycu/gxXAx0TGy48U+06/39iuHOl76US5hdwAJDsCb8pO8BYHIv7O kn1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Hxqqn8byoNy9/BdTthu9Q1gmRO+L2nfX4uUMWRj2Vp0=; fh=pUadl2wNriNRNgSk6HblFoWJzIWMP/JJG3bNQeUlSko=; b=gItofEhoknXnokdGyk9sSmtVcQJyPGPA9qhYFcIQ1ydyAF2SqT92tmVZj13qu9gsqP 3Q54rYFP7M/P7gTFuJdvnqIzU+bdYrk4BthKtzN+Ve4BkNVBaPKcn6ESt4bX9j8Kt/KM bWnctzJCpI98M3ECxZXEr7PiYj2/8GliKLcN2vK/jZdL6JfFjcin6nqLngyzfd1pfr5u Wa+Spdvy2ssGanVKrpDuW411zt04Uih18LFq97UlVKnICpULxCnAD5QhTY3SF8Bw88y2 9ll3ZgDLktFD9BpmXngod8vckVDDZEDGrhfF/hx8nRQvgWjqirxSwDNlamjuEiTOC0uo Ge0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=irl.hu dmarc=pass fromdomain=irl.hu); spf=pass (google.com: domain of linux-kernel+bounces-72280-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72280-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c8-20020a05620a164800b0078715b573c3si7947489qko.201.2024.02.19.19.41.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 19:41:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72280-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=irl.hu dmarc=pass fromdomain=irl.hu); spf=pass (google.com: domain of linux-kernel+bounces-72280-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72280-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2C71F1C22425 for <ouuuleilei@gmail.com>; Tue, 20 Feb 2024 03:40:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEE045812F; Tue, 20 Feb 2024 03:40:08 +0000 (UTC) Received: from irl.hu (irl.hu [95.85.9.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F04934C610; Tue, 20 Feb 2024 03:40:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.85.9.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708400407; cv=none; b=Q9RV+T0bum7OP6YSHPihnw1ttWlj0YeJy7Y4xCqEJYny3mKsub3SJ/apstEVRyQgTGF37jHc1thzv7RJsBYfKDW+eYEVwsa+gq+zIdUKe4XvJ6P2A60iIKeDUhPFUnv+bjajQ/lY/LWaOuC82Jpv0/NtcyZY/tgN0HGNl4J+2nY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708400407; c=relaxed/simple; bh=O/ojOjVV0gYF/ou8HJynE4YQaLnUsBVUv9Cd5InHGSo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Mime-Version:Content-Type; b=WQ/9klmp6imCWwt7Fh29ZMIIKF3YrWnvP1bpSAoAnwnxFep9/aE185CbBlajNka24FFx4Gisa/En9YmoB+6Tc3nSpKQvauODrFcl4vwIzGB+4t1dKHdNxPmrjr/eDGfl2tT8mW/UrzNZ5sjrEuiyD2rF7RRlypDFl1Lk8SujZRU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu; spf=pass smtp.mailfrom=irl.hu; arc=none smtp.client-ip=95.85.9.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=irl.hu Received: from fedori.lan (51b68dc5.dsl.pool.telekom.hu [::ffff:81.182.141.197]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 00000000000742C8.0000000065D41F12.001D1CAD; Tue, 20 Feb 2024 04:40:02 +0100 From: Gergo Koteles <soyer@irl.hu> To: Ike Panhc <ike.pan@canonical.com>, Hans de Goede <hdegoede@redhat.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Philipp Jungkamp <p.jungkamp@gmx.net> Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Gergo Koteles <soyer@irl.hu> Subject: [PATCH 1/2] Input: allocate keycode for Fn + R Date: Tue, 20 Feb 2024 04:39:35 +0100 Message-ID: <6af6b923fb73ca9ed5b89f29ca2b8f35730d5cda.1708399689.git.soyer@irl.hu> X-Mailer: git-send-email 2.43.2 In-Reply-To: <cover.1708399689.git.soyer@irl.hu> References: <cover.1708399689.git.soyer@irl.hu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791387725594817192 X-GMAIL-MSGID: 1791387725594817192 |
Series |
map Fn + R key on newer Yogas and Legions
|
|
Commit Message
Gergo Koteles
Feb. 20, 2024, 3:39 a.m. UTC
Newer Lenovo Yogas and Legions with 60Hz/90Hz displays send a wmi event
when Fn + R is pressed. This is intended for use to adjust refresh rate.
But there is no silkscreen print on the R key to indicate this,
so add a KEY_FN_R keycode define to use for this key-combo.
Signed-off-by: Gergo Koteles <soyer@irl.hu>
---
include/uapi/linux/input-event-codes.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 022a520e31fc..ba40af25943a 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -547,6 +547,7 @@ #define KEY_FN_S 0x1e3 #define KEY_FN_B 0x1e4 #define KEY_FN_RIGHT_SHIFT 0x1e5 +#define KEY_FN_R 0x1e6 #define KEY_BRL_DOT1 0x1f1 #define KEY_BRL_DOT2 0x1f2