Ubuntu 20.04 Lenovo laptop keyboard backlight

I am currently running Ubuntu 20.04 on a Lenovo E595 laptop. I swapped out the physical keyboard with one that is backlit (confirmed by the presence of the "key" light label on the spacebar). The connectors do physically line-up (The only difference is that the backlit keyboard ribbon cable runs a couple extra traces in already existing plastic). The issue is that I cannot activate the backlight at all.

My question is if I can turn it on, what is the way to do so.

I did some preliminary searches:

In all, the results and solutions varied as follows:

  1. Run the Windows keyboard driver using Wine
  2. Modify the /sys/class/leds/tpacpi::kbd_backlight/brightness file
  3. Modify the /sys/class/leds/tpacpi::thinklight/brightness file
  4. Modify specific bytes under characters files under /sys/.../ec/ec0 (and other locations I cannot recall)
  5. Press "Fn + Space" (which is the logical thing to do)

The issues with each are:

  1. Using Wine to run a driver is not optimal and not guaranteed to work.
  2. On this system, this file does not appear
  3. On this system, there is no entry for "tpacpi::thinklight/brightness", but there is an entry for "tpacpi::thinkvantage/brightness", but has no affect on the keyboard backlight.
  4. The programs written to modify this value are seemingly specific to the device it was written for.
  5. Linux is reading the Fn key as a keypress instead of allowing the firmware (if any) to use it as a modifier key. This can be seen running the showkey command. For me, it returns a value of 143. This could be leveraged, if there was another way to adjust the backlight manually.

Some additional notes:

  • In addition, I have accounted for the Fn and Control key swap.
  • I've toggled the different BIOS options for Fn key settings with no change.

1 Answer

Not sure if you got this issue sorted for yourself. I have been struggling to get this fixed. I finally managed it. You are right, kbd_backlight is not active by default. Reboot your machine, enter BIOS. Enable hardware acceleration under the virtualisation section. Post which the backlight should start working. If not, kbd_backlight would now be active and you can edit the values to change the backlight settings. Hope this works for you too. Cheers!

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like