Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 1799072 [details] Output of `journalctl --no-hostname -k > dmesg.txt` 1. Please describe the problem: I am using Fedora 34.20210705.0 (Silverblue) on Lenovo IdeaPad S340-14IIL (81VV008LRK). Now that GNOME has the Keyboard Brightness setting in the Power menu, I can use it to toggle the backlight and see the popup every time I switch it with hardwired Fn+Space shortcut. The problem is that the setting only allows me to set 1 brightness level, but this exact laptop model actually has two and you can switch between them with the shortcut. I suspect this is a kernel problem because `cat "/sys/class/leds/platform::kbd_backlight/max_brightness"` prints 1. Also `cat "/sys/class/leds/platform::kbd_backlight/brightness"` prints 1 for both brightness levels. 2. What is the Version-Release number of the kernel: 5.12.13-300.fc34.x86_64 3. Did it work previously in Fedora? If so, what kernel version did the issue *first* appear? Old kernels are available for download at https://koji.fedoraproject.org/koji/packageinfo?packageID=8 : There was no Keyboard Brightness setting so I'm not sure. The shortcut always worked for 2 brightness levels regardless of the installed OS. 4. Can you reproduce this issue? If so, please provide the steps to reproduce the issue below: As I wrote above, on Lenovo IdeaPad S340-14IIL (81VV008LRK) try to toggle keyboard backlight with Fn+Space shortcut and then with `GNOME Settings -> Power -> Keyboard Brightness` on supported GNOME version. 5. Does this problem occur with the latest Rawhide kernel? To install the Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by ``sudo dnf update --enablerepo=rawhide kernel``: Yes. 6. Are you running any modules that not shipped with directly Fedora's kernel?: No. 7. Please attach the kernel logs. You can get the complete kernel log for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the issue occurred on a previous boot, use the journalctl ``-b`` flag. Done.
Thank you for your bug-report. I will ask the author of the kbd-backlight support for the ideapad-laptop driver to take a look at this. In the mean time can you please attach an acpidump, we are likely going to need that to figure out what is going on here. To create an acpidump please run the following 2 commands: sudo dnf install acpica-tools sudo acpidump -o acpidump.hex And then attach the acpidump.hex file generated by the second command to this bug please.
Created attachment 1799692 [details] Output of `sudo acpidump -o acpidump.hex` Thank you. I have attached the output of `acpidump`. For Silverblue the command is `rpm-ostree install acpica-tools` though. Installing inside toolbox doesn't work. For some reason, `max_brightness` is hardcoded to 1: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/ideapad-laptop.c#n1340. However, this is not the main problem, because changing it to 2 and recompiling the kernel doesn't affect anything, except that the GNOME indicator shows half the brightness. Pressing Fn+Space a second time still doesn't change "/sys/class/leds/platform::kbd_backlight/brightness" to 2 and there is also no indicator. As if second press is "invisible" to ideapad_kbd_bl, pardon my layman's terms.
Hi This is a limitation of the interface. The device I tested this feature on also has three keyboard backlight levels that can be changed using Fn+space, however, the Lenovo Vantage software on Windows can only turn it on/off, because the that's all the interface is capable of. And since I based my work on that, this limitation is carried over to the Linux kernel driver. If I recall correctly there is another interface that has multiple backlight levels, but my device was not compatible so I didn't attempt to implement that. Curiously, the backlight change notification is still sent.
This message is a reminder that Fedora Linux 34 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '34'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 34 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07. Fedora Linux 34 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. Thank you for reporting this bug and we are sorry it could not be fixed.