Lines Matching +full:default +full:- +full:state
7 specifying how long a state to be on, and the second for how long the state
9 in on state, followed by a delay_off value that specifies how long the LED
10 should stay in off state. The on and off cycle repeats until the trigger
12 features that require an on or off state to be held just once and then stay in
13 the original state forever.
16 set a timer to hold a state, however when user space application crashes or
18 state permanently.
25 triggers it supports and a default trigger. During registration, activation
26 routine for the default trigger gets called. During registration of an led
27 class device, the LED state does not change.
30 trigger will be called, and LED state is changed to LED_OFF.
32 Driver suspend changes the LED state to LED_OFF and resume doesn't change
33 the state. Please note that there is no explicit interaction between the
34 suspend and resume actions and the currently enabled trigger. LED state
35 changes are suspended while the driver is in suspend state. Any timers
37 being able to actually change the LED state. Once driver is resumed, triggers
40 LED state changes are controlled using brightness which is a common led
46 as its default trigger, trigger activation routine will get called. During
47 registration, the LED state does not change, unless there is another trigger
48 active, in which case LED state changes to LED_OFF.
50 During trigger unregistration, LED state gets changed to LED_OFF.
52 Transient trigger activation routine doesn't change the LED state. It
55 up and removes the properties it created. It will restore the LED state to
56 non-transient state. When driver gets suspended, irrespective of the transient
57 state, the LED state changes to LED_OFF.
66 Add a new property trigger state to control the state.
68 This trigger exports three properties, activate, state, and duration. When
69 transient trigger is activated these properties are set to default values.
71 - duration allows setting timer value in msecs. The initial value is 0.
72 - activate allows activating and deactivating the timer specified by
73 duration as needed. The initial and default value is 0. This will allow
75 - state allows user to specify a transient state to be held for the specified
79 - one shot timer activate mechanism.
81 default value is zero when transient trigger is enabled,
84 activate state indicates a timer with a value of specified
86 deactivated state indicates that there is no active timer
90 - one shot timer value. When activate is set, duration value
95 state
96 - transient state to be held. It has two values 0 or 1. 0 maps
97 to LED_OFF and 1 maps to LED_FULL. The specified state is
99 state gets changed to the non-transient state which is the
100 inverse of transient state.
101 If state = LED_FULL, when the timer runs out the state will
103 If state = LED_OFF, when the timer runs out the state will
105 Please note that current LED state is not checked prior to
106 changing the state to the specified state.
108 default states it defines for the LED in its brightness_set()
110 interfaces to control the LED state.
112 When timer expires activate goes back to deactivated state, duration is left
115 specified value as needed. When timer expires, state is restored to the
116 non-transient state which is the inverse of the transient state:
127 echo 1 > state stores desired transient state LED_FULL to be
129 echo 0 > state stores desired transient state LED_OFF to be
136 - Timer activation is one shot and extending and/or shortening the timer
142 use-case 1::
146 echo 1 > state
150 echo 1 > activate - start timer = duration to run once
151 echo 1 > activate - start timer = duration to run once
156 - Use of LED by user space app as activity indicator.
157 - Use of LED by user space app as a kind of watchdog indicator -- as
160 - Use by any user space app that needs a transient GPIO output.