9479d6b908c379f107dc3843a45c720f9987ba32
[pandora-libraries.git] / deployment / etc / pandora / conf / eventmap
1
2 # Open Pandora
3 # Event-to-shscript map configuration
4
5 [keys]
6 # passes a 'hold duration' to the script
7 # if a number follows script name, will always force invocation at that time (or less)
8 # if script to execute does not lead with a path, it is an internal function instead
9 #   internal functions that exist: TOGGLE_HOLD
10 pandora /usr/pandora/scripts/op_menu.sh 2
11 power   /usr/pandora/scripts/op_power.sh 3
12 lcdbrightdown   /usr/pandora/scripts/op_bright_down.sh
13 lcdbrightup     /usr/pandora/scripts/op_bright_up.sh
14 hold            TOGGLE_HOLD
15
16 [events]
17 # pass 'action code' to the script
18 # lid actions are: 1 lid-is-closing, 0 lid-is-opening
19 lid-toggle      /usr/pandora/scripts/op_lid.sh
20
21 [pndevmapperd]
22 # logging level 0 means to include debug; level 1 (regular), 2 (warnings), 3 (errors)
23 loglevel        1
24 minimum_separation      1       # 1 second minimum between a single event repeating
25
26 [battery]
27 # for LED-blinking when battery gets low
28 threshold          10           # in %age; at x%, we go into blink-mode as warning
29 check_interval     90           # in seconds to check threshold; should be a high 300s
30 blink_interval     2            # frequency of blink
31 blink_duration     50000        # how long a blink lasts, in uSecs
32 shutdown_threshold 5            # battery %age we force a shutdown (to save the SD!)
33 shutdown_script    /usr/pandora/scripts/op_battlow.sh
34
35 [battery_charge]
36 enable             1            # enable charger control?
37 stop_capacity      99           # battery capacity threshold as stop condition 1
38 stop_current       80000        # charge current threshold as stop condition 2, in uA
39 start_capacity     95           # battery capacity threshold to resume charging
40 devices            twl4030_bci_battery twl4030_ac twl4030_usb