Maximum values for multi_intensity sysfs attribute
From: Armin Wolf
Date: Sat Feb 14 2026 - 14:15:54 EST
Hello,
i am currently adding support for RGB keyboard backlight control to the uniwill-laptop
driver, and want to use the multicolor LED class for that. However the hardware interface
is a bit exotic:
- 5 global brightness levels
- 50 intensity levels for each R/G/B channel
I am now asking myself how this should be mapped onto the multi_intensity sysfs attribute.
Should i set max_brightness to 5 and reject intensity values larger that 50? Or should
i set max_brightness to 50 and interpolate? What is the input range of intensity values?
Thanks,
Armin Wolf