Lines Matching refs:to
4 The leds timer trigger does not currently have an interface to activate
6 specifying how long a state to be on, and the second for how long the state
7 to be off. The delay_on value specifies the time period an LED should stay
10 gets deactivated. There is no provision for one time activation to implement
11 features that require an on or off state to be held just once and then stay in
14 Without one shot timer interface, user space can still use timer trigger to
15 set a timer to hold a state, however when user space application crashes or
21 PMIC. There is a need to activate one shot timer to control the vibrate
22 feature, to prevent user space crashes leaving the phone in vibrate mode
23 permanently causing the battery to drain.
35 trigger will be called, and LED state is changed to LED_OFF.
37 Driver suspend changes the LED state to LED_OFF and resume doesn't change
41 that are active at the time driver gets suspended, continue to run, without
42 being able to actually change the LED state. Once driver is resumed, triggers
46 class device property. When brightness is set to 0 from user space via
53 active, in which case LED state changes to LED_OFF.
55 During trigger unregistration, LED state gets changed to LED_OFF.
60 up and removes the properties it created. It will restore the LED state to
62 state, the LED state changes to LED_OFF.
70 NOTE: Add a new property trigger state to control the state.
73 transient trigger is activated these properties are set to default values.
78 duration to be set after trigger activation.
79 - state allows user to specify a transient state to be held for the specified
85 to allow duration to be set.
93 is used to start a timer that runs once. This value doesn't
97 state - transient state to be held. It has two values 0 or 1. 0 maps
98 to LED_OFF and 1 maps to LED_FULL. The specified state is
100 state gets changed to the non-transient state which is the
103 go back to LED_OFF.
105 go back to LED_FULL.
106 Please note that current LED state is not checked prior to
107 changing the state to the specified state.
108 Driver could map these values to inverted depending on the
111 interfaces to control the LED state.
113 When timer expires activate goes back to deactivated state, duration is left
114 at the set value to be used when activate is set at a future time. This will
115 allow user app to set the time once and activate it to run it once for the
116 specified value as needed. When timer expires, state is restored to the
121 echo n > duration - stores timer value to be used upon next
123 any, continues to run for the specified time.
124 echo 0 > duration - stores timer value to be used upon next
126 continues to run for the specified time.
127 echo 1 > state - stores desired transient state LED_FULL to be
129 echo 0 > state - stores desired transient state LED_OFF to be
142 echo 1 > activate - start timer = duration to run once
143 echo 1 > activate - start timer = duration to run once
146 This trigger is intended to be used for for the following example use cases: