.. | .. |
---|
3 | 3 | KernelVersion: 2.6.17 |
---|
4 | 4 | Contact: Richard Purdie <rpurdie@rpsys.net> |
---|
5 | 5 | 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 |
---|
9 | 26 | /sys/class/leds/<led>/max_brightness. |
---|
10 | 27 | |
---|
11 | 28 | Writing 0 to this file clears active trigger. |
---|
12 | 29 | |
---|
13 | 30 | Writing non-zero to this file while trigger is active changes the |
---|
14 | 31 | top brightness trigger is going to use. |
---|
| 32 | + |
---|
| 33 | + |
---|
15 | 34 | |
---|
16 | 35 | What: /sys/class/leds/<led>/max_brightness |
---|
17 | 36 | Date: March 2006 |
---|
.. | .. |
---|
47 | 66 | Description: |
---|
48 | 67 | Set the trigger for this LED. A trigger is a kernel based source |
---|
49 | 68 | of LED events. |
---|
| 69 | + |
---|
50 | 70 | You can change triggers in a similar manner to the way an IO |
---|
51 | 71 | scheduler is chosen. Trigger specific parameters can appear in |
---|
52 | 72 | /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-*`. |
---|
54 | 74 | |
---|
55 | 75 | What: /sys/class/leds/<led>/inverted |
---|
56 | 76 | Date: January 2011 |
---|