TLDR; Razer uses some odd proprietary way to control keyboard brightness via software that only works under Linux. My project I've been working on for a while finally allows for easy configurable keyboard brightness control
This has been a 3 month journey to get to this point. Razer uses a very strange way of controlling the keyboard backlight on their keyboards, such that even Windows does not recognize it like it does for thinkpad keyboards, no keyboard backlight control without synapse under windows.
So I'm pretty happy that I finally worked on this, but essentially managed to expose a sysfs file in /sys/class/leds/ that now allows for KDE and Gnome to see the keyboard backlight as a 'normal' keyboard backlight, and can control the keyboard backlight natively depending on what i set in power management for AC or battery power.
Demo video of this working with KDE:
https://youtu.be/9HrKqD5xZVU
Project link (the testing code is in the procfs_test branch):
https://github.com/rnd-ash/razer-laptop-control
Feedback is welcome from any devs here (I reckon my codebase is seriously messy and needs work).
I do eventually hope to mainline this some day!
[link] [comments]