Lines Matching +full:brightness +full:- +full:level
1 .. SPDX-License-Identifier: GPL-2.0
12 via brightness file.
18 led_class framework. The led_class framework is documented in led-class.rst
34 root:/sys/class/leds/multicolor:status# ls -lR
35 -rw-r--r-- 1 root root 4096 Oct 19 16:16 brightness
36 -r--r--r-- 1 root root 4096 Oct 19 16:16 max_brightness
37 -r--r--r-- 1 root root 4096 Oct 19 16:16 multi_index
38 -rw-r--r-- 1 root root 4096 Oct 19 16:16 multi_intensity
40 Multicolor Class Brightness Control
42 The brightness level for each LED is calculated based on the color LED
44 the requested brightness.
46 led_brightness = brightness * multi_intensity/max_brightness
49 A user first writes the multi_intensity file with the brightness levels
58 red -
61 green -
64 blue -
68 The user can control the brightness of that multicolor LED group by writing the
69 global 'brightness' control. Assuming a max_brightness of 255 the user
71 128 to the global brightness file then the values written to each LED will be
76 echo 128 > /sys/class/leds/multicolor:status/brightness
82 Reading the global brightness file will return the current brightness value of
85 cat /sys/class/leds/multicolor:status/brightness