]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: allocate keycode for Display refresh rate toggle
authorGergo Koteles <soyer@irl.hu>
Sun, 10 Mar 2024 11:31:41 +0000 (12:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 10:50:16 +0000 (12:50 +0200)
commit61f291137c04238f8347b1ae184c5b92fabdb3c0
tree6e9f5919bebfe50724a3801a78eb15b1a974b0f2
parent6a55dab4ac956deb23690eedd74e70b892a378e7
Input: allocate keycode for Display refresh rate toggle

[ Upstream commit cfeb98b95fff25c442f78a6f616c627bc48a26b7 ]

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 <soyer@irl.hu>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/15a5d08c84cf4d7b820de34ebbcf8ae2502fb3ca.1710065750.git.soyer@irl.hu
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/uapi/linux/input-event-codes.h