hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/ABI/testing/sysfs-class-led
....@@ -3,15 +3,34 @@
33 KernelVersion: 2.6.17
44 Contact: Richard Purdie <rpurdie@rpsys.net>
55 Description:
6
- Set the brightness of the LED. Most LEDs don't
7
- have hardware brightness support, so will just be turned on for
8
- non-zero brightness settings. The value is between 0 and
6
+ Set the brightness of the LED.
7
+
8
+ Most LEDs don't have hardware brightness support, so will
9
+ just be turned on for non-zero brightness settings.
10
+
11
+ .. Note::
12
+
13
+ For multicolor LEDs, writing to this file will update all
14
+ LEDs within the group to a calculated percentage of what
15
+ each color LED intensity is set to.
16
+
17
+ The percentage is calculated for each grouped LED via
18
+ the equation below::
19
+
20
+ led_brightness = brightness * multi_intensity/max_brightness
21
+
22
+ For additional details please refer to
23
+ Documentation/leds/leds-class-multicolor.rst.
24
+
25
+ The value is between 0 and
926 /sys/class/leds/<led>/max_brightness.
1027
1128 Writing 0 to this file clears active trigger.
1229
1330 Writing non-zero to this file while trigger is active changes the
1431 top brightness trigger is going to use.
32
+
33
+
1534
1635 What: /sys/class/leds/<led>/max_brightness
1736 Date: March 2006
....@@ -47,10 +66,11 @@
4766 Description:
4867 Set the trigger for this LED. A trigger is a kernel based source
4968 of LED events.
69
+
5070 You can change triggers in a similar manner to the way an IO
5171 scheduler is chosen. Trigger specific parameters can appear in
5272 /sys/class/leds/<led> once a given trigger is selected. For
53
- their documentation see sysfs-class-led-trigger-*.
73
+ their documentation see `sysfs-class-led-trigger-*`.
5474
5575 What: /sys/class/leds/<led>/inverted
5676 Date: January 2011