15f634c65SCorentin CharyWhat: /sys/class/leds/<led>/brightness 25f634c65SCorentin CharyDate: March 2006 35f634c65SCorentin CharyKernelVersion: 2.6.17 45f634c65SCorentin CharyContact: Richard Purdie <rpurdie@rpsys.net> 55f634c65SCorentin CharyDescription: 65f634c65SCorentin Chary Set the brightness of the LED. Most LEDs don't 7*ed25e9caSPavel Machek have hardware brightness support, so will just be turned on for 85f634c65SCorentin Chary non-zero brightness settings. The value is between 0 and 95f634c65SCorentin Chary /sys/class/leds/<led>/max_brightness. 105f634c65SCorentin Chary 11*ed25e9caSPavel Machek Writing 0 to this file clears active trigger. 12*ed25e9caSPavel Machek 13*ed25e9caSPavel Machek Writing non-zero to this file while trigger is active changes the 14*ed25e9caSPavel Machek top brightness trigger is going to use. 15*ed25e9caSPavel Machek 165f634c65SCorentin CharyWhat: /sys/class/leds/<led>/max_brightness 175f634c65SCorentin CharyDate: March 2006 185f634c65SCorentin CharyKernelVersion: 2.6.17 195f634c65SCorentin CharyContact: Richard Purdie <rpurdie@rpsys.net> 205f634c65SCorentin CharyDescription: 21*ed25e9caSPavel Machek Maximum brightness level for this LED, default is 255 (LED_FULL). 22*ed25e9caSPavel Machek 23*ed25e9caSPavel Machek If the LED does not support different brightness levels, this 24*ed25e9caSPavel Machek should be 1. 255f634c65SCorentin Chary 265f634c65SCorentin CharyWhat: /sys/class/leds/<led>/trigger 275f634c65SCorentin CharyDate: March 2006 285f634c65SCorentin CharyKernelVersion: 2.6.17 295f634c65SCorentin CharyContact: Richard Purdie <rpurdie@rpsys.net> 305f634c65SCorentin CharyDescription: 315f634c65SCorentin Chary Set the trigger for this LED. A trigger is a kernel based source 32*ed25e9caSPavel Machek of LED events. 335f634c65SCorentin Chary You can change triggers in a similar manner to the way an IO 345f634c65SCorentin Chary scheduler is chosen. Trigger specific parameters can appear in 351f70cb40SRafał Miłecki /sys/class/leds/<led> once a given trigger is selected. For 361f70cb40SRafał Miłecki their documentation see sysfs-class-led-trigger-*. 375f634c65SCorentin Chary 389f9455aeSJanusz KrzysztofikWhat: /sys/class/leds/<led>/inverted 399f9455aeSJanusz KrzysztofikDate: January 2011 409f9455aeSJanusz KrzysztofikKernelVersion: 2.6.38 419f9455aeSJanusz KrzysztofikContact: Richard Purdie <rpurdie@rpsys.net> 429f9455aeSJanusz KrzysztofikDescription: 439f9455aeSJanusz Krzysztofik Invert the LED on/off state. This parameter is specific to 449f9455aeSJanusz Krzysztofik gpio and backlight triggers. In case of the backlight trigger, 4525985edcSLucas De Marchi it is useful when driving a LED which is intended to indicate 469f9455aeSJanusz Krzysztofik a device in a standby like state. 47