OHM plugins and features
Policy plugins
backlight
- Init:
- Triggers:
- Receive inactivity/activity signal (from inactivity module)
- Actions:
- Obtain light sensor value and power source
- Obtain system preference settings
- Adjust backlight level and display state
- Send signal of the backlight level and display state
- Provided API
- Set (dim/blank) timeouts and dim levels from session
temperature
- Init:
- set temperature alert levels
- Triggers:
- Temperature alert received
- Actions:
- Send signal the system bus
- Request shutdown from runlevel plugin
- Provided API
Mechanism plugins
inactivity
- Init:
- Monitor input sources (see activity usecase)
- Note: maybe only /dev/input and others via tickle API
- Monitor input sources (see activity usecase)
- Triggers:
- Activity on input or timer expires
- Actions:
- Signal inactivity/activity to system bus and internally
- Provided API
- Tickle for applications/plugings
- Current state
- Set timeouts inactivity levels
runlevel
- Provide API to change runlevel
- Perform runlevel change via init or upstart
state-upstart
- Provide API to plugin to perform upstart operations
- Perform requested operations with upstart

