Sunday, May 5, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 94710  / 3 Years ago, fri, may 28, 2021, 5:20:07

Some Lenovo laptops have keyboard backlights, and they can be turned on using Fn + Space. There are three states: off, normal and bright.



When I start Ubuntu, these laptops always default back to a burning sun screen brightness and the keyboard lights off.



I want a medium brightness and keyboard lights on by default, because I usually use this laptop in dark environments.



The backlight is easy. Internet is filled with information about this.

echo 10 > /sys/class/backlight/acpi_video0/brightness



But how do I turn on the keyboard backlights with a command?
I've been looking here but it seems to do nothing:

/sys/class/leds/tpacpi::thinklight






Updates



I tried for i in {1..32}; do xset led $i; done but nothing changes. Perhaps the keyboard backlight for Lenovo laptops has a proprietary driver and can only be controlled through tpacpi?



Also tried for i in $(find /sys/devices/platform/thinkpad_acpi/leds/ | grep /brightness); do echo 255 > $i; done of no avail.


More From » command-line

 Answers
0

Looks as this has been updated, my X1C with ubuntuMATE 16.04 LTS has



/sys/class/leds/tpacpi::kbd_backlight/brightness


which works as expected ie:



# echo 2 > /sys/class/leds/tpacpi::kbd_backlight/brightness


Brings it to full light :)


[#28203] Friday, May 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
urvedcaly

Total Points: 171
Total Questions: 118
Total Answers: 124

Location: Cape Verde
Member since Fri, Nov 27, 2020
4 Years ago
;