diff options
| author | Rong Zhang <[email protected]> | 2025-07-07 16:38:06 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-07-08 10:23:26 +0000 |
| commit | 9533b789df7e8d273543a5991aec92447be043d7 (patch) | |
| tree | 3f06295eb5dcac310a5596676a7b12a5a88e7075 /rust/helpers/task.c | |
| parent | platform/mellanox: mlxbf-pmc: Use kstrtobool() to check 0/1 input (diff) | |
| download | kernel-9533b789df7e8d273543a5991aec92447be043d7.tar.gz kernel-9533b789df7e8d273543a5991aec92447be043d7.zip | |
platform/x86: ideapad-laptop: Fix FnLock not remembered among boots
On devices supported by ideapad-laptop, the HW/FW can remember the
FnLock state among boots. However, since the introduction of the FnLock
LED class device, it is turned off while shutting down, as a side effect
of the LED class device unregistering sequence.
Many users always turn on FnLock because they use function keys much
more frequently than multimedia keys. The behavior change is
inconvenient for them. Thus, set LED_RETAIN_AT_SHUTDOWN on the LED class
device so that the FnLock state gets remembered, which also aligns with
the behavior of manufacturer utilities on Windows.
Fixes: 07f48f668fac ("platform/x86: ideapad-laptop: add FnLock LED class device")
Cc: [email protected]
Signed-off-by: Rong Zhang <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
