Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: uniwill-laptop: Handle FN lock event

On many devices, the user can toggle the Fn lock state by
pressing Fn + Esc. Forward the associated event to the fn_lock
sysfs attribute as a poll notification.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20260218005101.73680-5-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Armin Wolf and committed by
Ilpo Järvinen
9836feed 2be519d9

+7 -3
+7 -3
drivers/platform/x86/uniwill/uniwill-acpi.c
··· 406 406 /* Reported when the user wants to toggle the mute status */ 407 407 { KE_IGNORE, UNIWILL_OSD_MUTE, { KEY_MUTE }}, 408 408 409 - /* Reported when the user locks/unlocks the Fn key */ 410 - { KE_IGNORE, UNIWILL_OSD_FN_LOCK, { KEY_FN_ESC }}, 411 - 412 409 /* Reported when the user wants to toggle the brightness of the keyboard */ 413 410 { KE_KEY, UNIWILL_OSD_KBDILLUMTOGGLE, { KEY_KBDILLUMTOGGLE }}, 414 411 { KE_KEY, UNIWILL_OSD_KB_LED_LEVEL0, { KEY_KBDILLUMTOGGLE }}, ··· 1372 1375 /* noop for the time being, will change once charging priority 1373 1376 * gets implemented. 1374 1377 */ 1378 + 1379 + return NOTIFY_OK; 1380 + case UNIWILL_OSD_FN_LOCK: 1381 + if (!uniwill_device_supports(data, UNIWILL_FEATURE_FN_LOCK)) 1382 + return NOTIFY_DONE; 1383 + 1384 + sysfs_notify(&data->dev->kobj, NULL, "fn_lock"); 1375 1385 1376 1386 return NOTIFY_OK; 1377 1387 default: