From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from e3i331.smtp2go.com (e3i331.smtp2go.com [158.120.85.75]) (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 B4BD323AB94 for ; Fri, 15 Aug 2025 14:50:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=158.120.85.75 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755269414; cv=none; b=udNL/TRkTpm+++lKWlst5BGKh6L1I/BscJTVvNxmOmr2ZGENOEWCwlkCZvH6Z/BTZDTI+FPqlmbxBUDfzzXBtXw0ccgqWZqlVqJdQKLf4e6iocykZe9noYvQJwB8swYw9EFjg/0ohA3+N0JPcpHtnfJ1FFeId+m7RkZheghUl9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755269414; c=relaxed/simple; bh=vBbph5dHkhutdCTVkxJyDj2PavT5WvspsYrnw8x0n+A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YlMZ+JHKmXug9EHi/bbdZE/Ye+Dy3DZSqcVjBEJKISOBQancfJBMKsOC9CsTRmV0fZJFnaikLBW17ZzsklSCs6JL924k4ELeEOq0uGj3ldNT25x2z2dWpU4vm96maOuOye0teZjO27Dq8hlfzL0/yyHmcq07QpAgI2PyCrdv+A8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=medip.dev; spf=pass smtp.mailfrom=em1255854.medip.dev; dkim=pass (2048-bit key) header.d=smtpservice.net header.i=@smtpservice.net header.b=2MqRVx4h; dkim=pass (2048-bit key) header.d=medip.dev header.i=@medip.dev header.b=hxi4WG0X; arc=none smtp.client-ip=158.120.85.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=medip.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=em1255854.medip.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=smtpservice.net header.i=@smtpservice.net header.b="2MqRVx4h"; dkim=pass (2048-bit key) header.d=medip.dev header.i=@medip.dev header.b="hxi4WG0X" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smtpservice.net; i=@smtpservice.net; q=dns/txt; s=a1-4; t=1755269411; h=feedback-id : x-smtpcorp-track : date : message-id : to : subject : from : reply-to : sender : list-unsubscribe : list-unsubscribe-post; bh=wULHCv+96eZLnevpHZpeudlEQ8kLugY9ap1N6Mw6mS8=; b=2MqRVx4h67iikXyG76tyMahA7MzcEqEOrKr+809ehXuRtWOqDZByL1r3DVE3uzI4ELTPV DW04noz75nctn/z2m8EgvK6KVPJtEllVUfjcF+DnERU7SUx5Gr8M1GeWDCaFQCneV9/99SC swjCDLPxz07Hnf5sumQqFPsVxKn5mMArEZMjshkweABxNOyJ1IgNIS/6JTzoFaEdQdSJtue I1nbeCyf1bs+dRXz36FBLng3U39dkZKoT4w5RH2Qdrx5hYUcx1VqbGioDGQCt6mbtb+JxkO Z3SAXXfAi0P/53fWnNPnbX1FsSntnWP+CzoFjbXjZoHlbqviS5No/ziModhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=medip.dev; i=@medip.dev; q=dns/txt; s=s1255854; t=1755269411; h=from : subject : to : message-id : date; bh=wULHCv+96eZLnevpHZpeudlEQ8kLugY9ap1N6Mw6mS8=; b=hxi4WG0XmnUhIddOSWWjxaSWwipO+NgCAIjulFIX7vdG2K+YmxfKS2tQVmUs9JNvEZUKp iTKCHdIxZ0LXDqdzPLvAi153Wq7kxgAR5RGRkmXnI/aLTdBHcg+rCRS5KZF5eEGLlaa0jNy fkQ9EYjIDxTXkZ6vntQFDjVkUb1HMYd7Y9gMZkm8zdeq2Zw/zQ4dH+WAxqLx62v26S7ZrcZ HikAk2b4RWVwLZ0DoGJaMxX0nwey+W+KNRnx2Klg/CTs4/iXEMi05+4Fvvzg996r2JPaTXd OD61ynBk3dQL4EZ33xXqV5cZEP9YVyx8GJITNSwbniFDm3tUP4Jt6N8hB7Lw== Received: from [10.152.250.198] (helo=vilez.localnet) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.98.1-S2G) (envelope-from ) id 1umvkm-4o5NDgrs3MH-eLYV; Fri, 15 Aug 2025 14:50:00 +0000 From: Edip Hazuri To: dmitry.torokhov@gmail.com, jikos@kernel.org Reply-To: 20250802212149.16707-2-edip@medip.dev Cc: bentiss@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Edip Hazuri Subject: Re: [PATCH 1/2] Input: Add key event code for Fn + P Date: Fri, 15 Aug 2025 17:49:55 +0300 Message-ID: <1965589.tdWV9SEqCh@vilez> In-Reply-To: <20250802212149.16707-2-edip@medip.dev> References: <20250802212149.16707-2-edip@medip.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Report-Abuse: Please forward a copy of this message, including all headers, to Feedback-ID: 1255854m:1255854ay30w_v:1255854sNJGsZfqxx X-smtpcorp-track: l0D8v9taiQIA.F8cYfbaEOw8w.Xd84bQ4CYVc On Sunday, August 3, 2025 12:21:50=E2=80=AFAM GMT+03:00 edip@medip.dev wrot= e: > From: Edip Hazuri >=20 > Newer Victus (and probably newer omen) laptops contains a "Fn + P" > Shortcut. This is intended to use with Omen Gaming Hub, Which is > changing the performance profile when this shortcut triggered. This > shortcut is shown on performance control page, see [1] >=20 > Currently there is no key definition to handle this. So add a KEY_FN_P > keycode define to be able to use this shortcut. >=20 > [1]: https://jpcdn.it/img/adadf6c927ffeb75afd8038f95db400a.png >=20 > Signed-off-by: Edip Hazuri > --- > drivers/hid/hid-debug.c | 2 +- > include/uapi/linux/input-event-codes.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c > index 4424c0512ba..2bcf7b24801 100644 > --- a/drivers/hid/hid-debug.c > +++ b/drivers/hid/hid-debug.c > @@ -3342,7 +3342,7 @@ static const char *keys[KEY_MAX + 1] =3D { > [KEY_FN_1] =3D "Fn+1", [KEY_FN_2] =3D=20 "Fn+2", > [KEY_FN_B] =3D "Fn+B", [KEY_FN_D] =3D "Fn+D", > [KEY_FN_E] =3D "Fn+E", [KEY_FN_F] =3D=20 "Fn+F", > - [KEY_FN_S] =3D "Fn+S", > + [KEY_FN_S] =3D "Fn+S", [KEY_FN_P] =3D "Fn+P", > [KEY_FN_F1] =3D "Fn+F1", [KEY_FN_F2] =3D=20 "Fn+F2", > [KEY_FN_F3] =3D "Fn+F3", [KEY_FN_F4] =3D=20 "Fn+F4", > [KEY_FN_F5] =3D "Fn+F5", [KEY_FN_F6] =3D=20 "Fn+F6", > diff --git a/include/uapi/linux/input-event-codes.h > b/include/uapi/linux/input-event-codes.h index 3b2524e4b66..2fc79b32425 > 100644 > --- a/include/uapi/linux/input-event-codes.h > +++ b/include/uapi/linux/input-event-codes.h > @@ -548,6 +548,7 @@ > #define KEY_FN_S 0x1e3 > #define KEY_FN_B 0x1e4 > #define KEY_FN_RIGHT_SHIFT 0x1e5 > +#define KEY_FN_P 0x1e6 >=20 > #define KEY_BRL_DOT1 0x1f1 > #define KEY_BRL_DOT2 0x1f2 Hello, Please don't merge this. I made a v2 of this patch and this is no longer=20 needed.=20 Thanks!