summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAlex Yeo <alexyeo362@gmail.com>2026-08-28 08:34:31 +0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-09-18 19:42:02 +0300
commitc3e23729224dbf177185e99b61b4ca39046e9b12 (patch)
tree35de9fda9b788d254c323698847e6eaf14d4f1bf /tools/perf/scripts/python/stackcollapse.py
parent639bc2254816b7c4e7a9801a7b3aa71bfa3f915c (diff)
downloadlinux-next-c3e23729224dbf177185e99b61b4ca39046e9b12.tar.gz
linux-next-c3e23729224dbf177185e99b61b4ca39046e9b12.zip
platform/x86: panasonic-laptop: register FN key up/down events
For Let's Note laptops, pressing the FN key sends a signal for both keyup and keydown. FN key down: 0x0030 FN key up: 0x0031 Currently, pressing the FN key causes the following output in dmesg: [ +0.322901] Unknown hotkey event: 0x0030 [ +1.101006] Unknown hotkey event: 0x0031 This has a tendency to spam dmesg as this is printed every time the FN key is pressed regardless of whether or not it was used as a modifier to activate functions like brightness, etc. Map both the keyup/down events so it is no longer reported as unknown hotkeys. Once the patch has been applied, evtest shows the following when the FN key is pressed (and released): Event: time 1787875023.918171, type 4 (EV_MSC), code 4 (MSC_SCAN), value 30 Event: time 1787875023.918171, type 1 (EV_KEY), code 464 (KEY_FN), value 1 Event: time 1787875023.918171, -------------- SYN_REPORT ------------ Event: time 1787875024.038462, type 4 (EV_MSC), code 4 (MSC_SCAN), value 30 Event: time 1787875024.038462, type 1 (EV_KEY), code 464 (KEY_FN), value 0 Event: time 1787875024.038462, -------------- SYN_REPORT ------------ Tested on the following Let's Note models: - CF-SX1 - CF-RZ6 - CF-SV8 - CF-QV9 - CF-SR4 Signed-off-by: Alex Yeo <alexyeo362@gmail.com> Link: https://patch.msgid.link/20260828003432.88748-1-alexyeo362@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions