Recently I purchased a ThinkPad E14 Gen 5 laptop after spending 5 years with my previous workhorse machine, the HP Pavilion 14 with an Intel i5 (4 cores) CPU. The upgrade is quite significant, coming with an eight core AMD Ryzen 7 CPU... but I digress.
With modern day laptops, often there are backlit keys on certain media keys like mute sound, mute mic, airplane mode and so on. The light being switched on, for obvious reasons indicates that the particular function is in operation. This is easy on Windows for which these machines are always tested against. Similarly, macOS works well on Apple devices. With GNU/Linux however, almost all machines work but the tiny quality of life improvements like those media key lights can be a hit or miss.
At first I thought perhaps it's a driver issue but all my drivers were up-to-date. Looking through the Arch wiki didn't help with the issue. Knowing the vibrant thinkpad community, I ended up posting about my problem on r/thinkpad.
I'd much rather have the backlight fully off than have it functional. So, a fellow redditor let me know to check for the output in a particular system file:
~: $ cat /sys/class/leds/platform::micmute/brightness
'1' here represents the light in the ON state, which is exactly the problem!
Changing the value to '0' in the file instantly fixes the problem!
Changing it to '0' only fixes it temporarily until the next time the machine is booted up. A rather simple "hack" is to make this change everytime the user logs into the machine. This is done simply through the
.xinitrc file (most people would use
.xinitrc) by adding the following line in said file:
echo "0" > /sys/class/leds/platform::micmute/brightness
This line simply replaces whatever the file previously had, with '0'. This works rather well until I find a more permanent solution.
|The travesty being that laptop manufacturers being the profit oriented businesses that they are, cater to the masses which unfortunately sides with malicious, proprietary garbage like Windows.
|Technically Linux is the kernel and not the operating system (the rest is supplied by the GNU operating system sans its own kernel). Here is a better explanation.