From: Hans de Goede <hansg@kernel.org>
To: "Rong Zhang" <i@rong.moe>, "Ike Panhc" <ikepanhc@gmail.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, "Gergo Koteles" <soyer@irl.hu>,
"Barnabás Pőcze" <pobrn@protonmail.com>,
stable@vger.kernel.org
Subject: Re: [PATCH 2/2] platform/x86: ideapad-laptop: Fix kbd backlight not remembered among boots
Date: Mon, 7 Jul 2025 19:24:05 +0200 [thread overview]
Message-ID: <e5be9718-d53b-40ee-a1b7-087fe833042b@kernel.org> (raw)
In-Reply-To: <20250707163808.155876-3-i@rong.moe>
Hi,
On 7-Jul-25 6:38 PM, Rong Zhang wrote:
> On some models supported by ideapad-laptop, the HW/FW can remember the
> state of keyboard backlight among boots. However, it is always turned
> off while shutting down, as a side effect of the LED class device
> unregistering sequence.
>
> This is inconvenient for users who always prefer turning on the
> keyboard backlight. Thus, set LED_RETAIN_AT_SHUTDOWN on the LED class
> device so that the state of keyboard backlight gets remembered, which
> also aligns with the behavior of manufacturer utilities on Windows.
>
> Fixes: 503325f84bc0 ("platform/x86: ideapad-laptop: add keyboard backlight control support")
> Cc: stable@vger.kernel.org
> Signed-off-by: Rong Zhang <i@rong.moe>
Thanks, patch looks good to me:
Reviewed-by: Hans de Goede <hansg@kernel.org>
Regards,
Hans
> ---
> drivers/platform/x86/ideapad-laptop.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
> index 62a72b09fc3a..edb9d2fb02ec 100644
> --- a/drivers/platform/x86/ideapad-laptop.c
> +++ b/drivers/platform/x86/ideapad-laptop.c
> @@ -1669,7 +1669,7 @@ static int ideapad_kbd_bl_init(struct ideapad_private *priv)
> priv->kbd_bl.led.name = "platform::" LED_FUNCTION_KBD_BACKLIGHT;
> priv->kbd_bl.led.brightness_get = ideapad_kbd_bl_led_cdev_brightness_get;
> priv->kbd_bl.led.brightness_set_blocking = ideapad_kbd_bl_led_cdev_brightness_set;
> - priv->kbd_bl.led.flags = LED_BRIGHT_HW_CHANGED;
> + priv->kbd_bl.led.flags = LED_BRIGHT_HW_CHANGED | LED_RETAIN_AT_SHUTDOWN;
>
> err = led_classdev_register(&priv->platform_device->dev, &priv->kbd_bl.led);
> if (err)
next prev parent reply other threads:[~2025-07-07 17:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-07 16:38 [PATCH 0/2] platform/x86: ideapad-laptop: Fix FnLock & " 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 [this message]
2025-07-08 10:24 ` [PATCH 0/2] platform/x86: ideapad-laptop: Fix FnLock & " Ilpo Järvinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e5be9718-d53b-40ee-a1b7-087fe833042b@kernel.org \
--to=hansg@kernel.org \
--cc=i@rong.moe \
--cc=ikepanhc@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=pobrn@protonmail.com \
--cc=soyer@irl.hu \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®