Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1502879rdb; Mon, 19 Feb 2024 19:40:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWb5xVKqPnEHWjTioEwxjypuTCzva4HUKs74eYFJ33B1ranpyN8w4SNG+CG4h/XQpjXHGUPsuYM/1s43GEHXKfuOvkJR6ctXRkBWq/sgQ== X-Google-Smtp-Source: AGHT+IGH77w/cX7vOocxowLDKuI1K+EnHmZS+CYaOqt2Np2QqVp/Eu9hLruEGGb/PolbPWzX5CfD X-Received: by 2002:a05:620a:7e5:b0:787:57db:a5c1 with SMTP id k5-20020a05620a07e500b0078757dba5c1mr7000829qkk.39.1708400453479; Mon, 19 Feb 2024 19:40:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708400453; cv=pass; d=google.com; s=arc-20160816; b=g0V2XkF5W147+ibJJMy5+9DyFh8jNeOaw+d2A7CzCCsqBEIpM2lXxYQGGK3cYh+8Ka HOmvo9+zR6OA9Bvw9RtYC2o45V+7+KfBc9ewrtRIsH7unWChanJyoSQDnpfn9pQUBqSS DW6S2F5G+QHpprOYZ3A+h3fdohcBRluI3PtkKoCrEGp1cAz7UeQN1ijCVweTEf5tCy3k VETabdjayHEGRfIBGc9+zv3w4tI2XslFTueaCQl4FtK+aPZtwXYNfj1NvzlLeRoqm0kw Hh9kNEdvOQAMB6WTlztwWA/wsgdV4yO4Ib3mQ2imdEdj7I3BSkK+k9X3quT4iG6BslNM n3Mg== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id oq42-20020a05620a612a00b0078727348af7si7241257qkn.470.2024.02.19.19.40.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 19:40:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72280-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72280-linux.lists.archive=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 CF2DB1C23CF0 for ; Tue, 20 Feb 2024 03:40:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E855856B91; Tue, 20 Feb 2024 03:40:07 +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 To: Ike Panhc , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Dmitry Torokhov , Philipp Jungkamp Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Gergo Koteles 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: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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 --- 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 -- 2.43.2