Received: by 2002:a05:6500:1b8a:b0:1ef:a0f1:aef6 with SMTP id df10csp44434lqb; Sun, 10 Mar 2024 04:32:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFzM9JBCUmuM/fCrqHOAklceLBwB9AIF5efc/YUNAtuIY+rCW/77hs1cpExUBGSwQiYnSxDFjBr2tiURt8dMvs94kZQRbxqhgPCRl9mQ== X-Google-Smtp-Source: AGHT+IGjFs+iXtNr+bF7lhgmnJJao0X3GJ/YHuBZSzcT7ddy7bn7Gn4E3pAMmRPDgz+kgUFexfCs X-Received: by 2002:a50:ab5a:0:b0:565:7d4a:1d4a with SMTP id t26-20020a50ab5a000000b005657d4a1d4amr2632572edc.8.1710070354086; Sun, 10 Mar 2024 04:32:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710070354; cv=pass; d=google.com; s=arc-20160816; b=xHRJ65UFhGLhp628rrDPBeCbOnMx3yRCW5SnU0gZBHp0zOQCjNDiKSFSLxZTZ7fLfT 36fjKtZFNYy9CUTf5A8HX4eDFBEeHSw7eyQsMg6BM6Pe5B4WRc+5UVVT7R3qRqVRus5J G6RSjuMephHnyZ2fFrQtgw+wKOD7vdM3kZBSabSELlXxjqazxlzFgQu7pvoAt5JtjorM uqKHGXAWwVdvGB9N+qyDTJaDjU6h14Vld8rayMtcj0KoLuq4fDPAAP+OJVhxvLxPtUMJ wv68XO+yeYEp8J571mvMJIYmMKeg6W0tLrMRUE+okZPG/poQDC5ykWHjBFtKL48Rp+eD 9GsQ== 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=nLiXMApraYuwBsw3PnXNyRJpP7M1YBCC59cFCH4M/fE=; fh=frKFMPxcN12FnAP0Ruo1zHVlnfiU+QldVXkbXXfnPzs=; b=DuPWaI7kbcN75UsUua138KLYgPWxczjyZUPamuRE6w6qcAoQR5Dhfc3LP3axES1HPi 8zadARuVF1mihVcgC+zEfQcY1qb0UFcb/CWWOpC8OrFX7DjmB/Yy5rs9OwwbS5TBJj7T 18e7bz5bwTIFBIqWmzp84Wyq1PaiNfR26fBXyWgVhTjeG9/udCe8KZN4uUo9ycNgYn7F vsNDhdWHk6A7mKUxWfUoOgeQ6M/igo/FqQcJNsO6IJRZ2nAO/tdlvplgjts6b0S35mIX ytfLuqwWO5Ves+Hl2NRl1OIplDKFTd4lMfZXhE0GoyUDmpaXpiGaaMsZlLQ9UJsm3FSf sVbw==; 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-98194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ig2-20020a056402458200b005683bc73316si1444425edb.136.2024.03.10.04.32.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 04:32:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-98194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98194-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 740EB1F21194 for ; Sun, 10 Mar 2024 11:32:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A7612628C; Sun, 10 Mar 2024 11:32:06 +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 75CFD1EB3B; Sun, 10 Mar 2024 11:32:03 +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=1710070326; cv=none; b=b4YFpmWfpbLvnOjwRDwYJMoFCUFeFy0niS5Gg+Rd7MTy3qPMAdEMbdpuXqgnwBgR9OlTLfKi3OpNXwcbF/ec4hARtSqmwgsisYL1NRAbpooTPzxR2Pf8QJ/CPHqqBWEJHkYIVHj7A8LsfsJwq5vAIuI15huIwh/yXd0l+tWSjtU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710070326; c=relaxed/simple; bh=8KURiGNgrV43xN973RjcqvjR+cLyetzlZJdqHuLzevg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Mime-Version:Content-Type; b=cAz+soAW6uKe4TYtJ845Eluu/QpsfEgK5qTIP5NKUt43PAagLlFudQtgtpNMNkrjEGU+UZXyX84BQ9A05WbohTyw8EQlEdrU5nIn1mEtGJsDtWQu5RKFiWbGCuFoKPoDVjvXN41uSHD4sRW4kPvxb/Ya7hl+bVQQQC9GhbfcrwA= 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 (51b693e7.dsl.pool.telekom.hu [::ffff:81.182.147.231]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 0000000000076A08.0000000065ED9A2B.0020EFC9; Sun, 10 Mar 2024 12:31:55 +0100 From: Gergo Koteles To: Ike Panhc , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Dmitry Torokhov Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Gergo Koteles Subject: [PATCH v2 1/2] Input: allocate keycode for Display refresh rate toggle Date: Sun, 10 Mar 2024 12:31:41 +0100 Message-ID: <15a5d08c84cf4d7b820de34ebbcf8ae2502fb3ca.1710065750.git.soyer@irl.hu> X-Mailer: git-send-email 2.44.0 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 switch between the two refresh rates. Allocate a new KEY_REFRESH_RATE_TOGGLE keycode for it. 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..03edf2ccdf6c 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -602,6 +602,7 @@ #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ #define KEY_ROTATE_LOCK_TOGGLE 0x231 /* Display rotation lock */ +#define KEY_REFRESH_RATE_TOGGLE 0x232 /* Display refresh rate toggle */ #define KEY_BUTTONCONFIG 0x240 /* AL Button Configuration */ #define KEY_TASKMANAGER 0x241 /* AL Task/Project Manager */ -- 2.44.0