Skip to contentSkip to conversation

ideapad_laptop: Keyboard backlight not functional on Lenovo Yoga 7 14ARP8 (82YM)

PATCH New Christian Lorig 1 participant 1 message Jan 6 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ideapad_laptop: Keyboard backlight not functional on Lenovo Yoga 7 14ARP8 (82YM)

Hello,

I'm reporting a keyboard backlight issue on the Lenovo Yoga 7 14ARP8 that appears to be a driver bug in ideapad_laptop.

SYSTEM INFORMATION:
- Model: Lenovo Yoga 7 14ARP8 (Product: 82YM)
- BIOS: LENOVO
- Distribution: Fedora Silverblue 43
- Kernel: 6.17.12-300.fc43.x86_64
- ideapad_laptop module version: rhelversion 10.99

SYMPTOMS:
The keyboard backlight hardware is present and functional (confirmed working under Windows), but does not respond to any controls under Linux. The GNOME settings toggle and Fn+Space hotkey register state changes, but the physical LEDs never illuminate.

DEBUGGING PERFORMED:
1. The backlight device is correctly detected:
   - /sys/class/leds/platform::kbd_backlight/ exists
   - max_brightness: 2
   - Device links to VPC2004:00

2. Writing to brightness works without errors, but has no effect:
   echo 2 > /sys/class/leds/platform::kbd_backlight/brightness (no errors, but LEDs remain off)

3. Events are registered correctly:
   - brightness_hw_changed increments when using Fn+Space
   - brightness value updates in sync with brightness_hw_changed

4. Debug output from /sys/kernel/debug/ideapad/status shows:
   Backlight max:  16
   Backlight now:  0
   BL power value: off (0)

The critical issue is "BL power value: off (0)" - the backlight power remains disabled regardless of all attempts to enable it.

5. Tested module parameters with no effect:
   - ymc_ec_trigger=1
   - set_fn_lock_led=1
   - ctrl_ps2_aux_port=1
   - touchpad_ctrl_via_ec=1
   All combinations failed to change "BL power value" from off to on.

6. Kernel parameters tested:
   - acpi_backlight=native (made events register, but LEDs still off)
   - acpi_osi="!Windows 2020" (no effect)

ACPI ANALYSIS:
I decompiled the DSDT and identified the keyboard backlight control method:

Method: \_SB.PCI0.LPC0.EC0.VPC0.KBLC

This method takes a single argument with the following structure:
- Bits 0-3: Command (1=Get, 2=Query, 3=Set)
- Bits 4-15: Mode (1=On/Off, 2=Manual brightness, 3=Auto+brightness)
- Bits 16-31: Value (brightness level or on/off state)

Example valid calls:
- Set Auto mode, brightness 2: 0x00020033
- Set Manual mode, brightness 2: 0x00020023
- Set On/Off mode, on: 0x00010013

The ACPI method writes to EC registers KBLM and KBLS, which control the keyboard backlight state and brightness.

ROOT CAUSE:
The ideapad_laptop driver recognizes the keyboard backlight capability and creates the sysfs interface, but does not call the KBLC ACPI method to actually enable the backlight power. The driver needs to:

1. Call KBLC with appropriate parameters when brightness is set
2. Ensure "BL power value" transitions from off to on
3. Handle the specific requirements of the 82YM model

ADDITIONAL HARDWARE INFO:
From /sys/kernel/debug/ideapad/cfg:
_CFG: 0xfe0d0014
Capabilities: bluetooth wifi camera

From dmidecode:
Manufacturer: LENOVO
Product Name: 82YM
Version: Yoga 7 14ARP8

REQUEST:
Could you please add support for keyboard backlight control on this model? I can provide additional debugging information, test patches, or perform any requested diagnostics.

The ACPI method structure is already documented above. The main requirement appears to be calling \_SB.PCI0.LPC0.EC0.VPC0.KBLC with the correct parameters when the user changes brightness settings.

Thank you for your time and consideration.

Best regards,
Chris

**Disclaimer**: I am no kernel module expert. This analysis was done with the help of Claude.ai and specifically conclusions in the "ACPI Analysis" section are not mine.