mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] platform/x86: ideapad-laptop: Fix FnLock & kbd backlight not remembered among boots
@ 2025-07-07 16:38 Rong Zhang
  2025-07-07 16:38 ` [PATCH 1/2] platform/x86: ideapad-laptop: Fix FnLock " Rong Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rong Zhang @ 2025-07-07 16:38 UTC (permalink / raw)
  To: Ike Panhc, Hans de Goede, Ilpo Järvinen
  Cc: Rong Zhang, platform-driver-x86, linux-kernel, Gergo Koteles,
	Barnabás Pőcze

I had disabled ideapad-laptop for a long time until a critical bug was
fixed[1], and I soon noticed some behavior changes after reenabling
ideapad-laptop.

The behavior changes are about FnLock and keyboard backlight. The HW/FW
can remember their states among boots[2]. After enabling ideapad-laptop,
I noticed that their states were always reset to off after a reboot or a
power cycle.

Historically, FnLock was only exposed under the VPC2004 sysfs node, and
its state was remembered well. Things have changed since the
introduction of its LED class device. As a side effect of the LED class
device unregistering sequence, it is always turned off while shutting
down, making the HW/FW feature meaningless.

The story is similar but a bit different for keyboard backlight. Since
the first introduction of support for it, it has suffered from the same
issue.

Fix the issue by setting LED_RETAIN_AT_SHUTDOWN on their LED class
devices so that their states get remembered, which also aligns with the
behavior of manufacturer utilities on Windows.

[1]: commit 5808c3421695 ("platform/x86: ideapad-laptop: use
usleep_range() for EC polling")

[2]: For FnLock, most (if not all) models should support this; for
keyboard backlight, at least some recent models support this (I am not
sure about old models).

Rong Zhang (2):
  platform/x86: ideapad-laptop: Fix FnLock not remembered among boots
  platform/x86: ideapad-laptop: Fix kbd backlight not remembered among
    boots

 drivers/platform/x86/ideapad-laptop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


base-commit: d7b8f8e20813f0179d8ef519541a3527e7661d3a
-- 
2.50.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-08 10:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-07 16:38 [PATCH 0/2] platform/x86: ideapad-laptop: Fix FnLock & kbd backlight not remembered among boots Rong Zhang
2025-07-07 16:38 ` [PATCH 1/2] platform/x86: ideapad-laptop: Fix FnLock " Rong Zhang
2025-07-07 17:23   ` Hans de Goede
2025-07-07 16:38 ` [PATCH 2/2] platform/x86: ideapad-laptop: Fix kbd backlight " Rong Zhang
2025-07-07 17:24   ` Hans de Goede
2025-07-08 10:24 ` [PATCH 0/2] platform/x86: ideapad-laptop: Fix FnLock & " Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®