664f11167cd32ce232e942cb194eb3f3eab4014c
[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 f12             /usr/pandora/scripts/op_tvout_layer.sh
15 hold            TOGGLE_HOLD
16
17 [events]
18 # pass 'action code' to the script
19 # lid actions are: 1 lid-is-closing, 0 lid-is-opening
20 lid-toggle      /usr/pandora/scripts/op_lid.sh
21
22 [pndevmapperd]
23 # logging level 0 means to include debug; level 1 (regular), 2 (warnings), 3 (errors)
24 loglevel        1
25 minimum_separation      1       # 1 second minimum between a single event repeating
26
27 [battery]
28 # for LED-blinking when battery gets low
29 threshold          10           # in %age; at x%, we go into blink-mode as warning
30 check_interval     90           # in seconds to check threshold; should be a high 300s
31 blink_interval     2            # frequency of blink
32 blink_duration     50000        # how long a blink lasts, in uSecs
33 shutdown_threshold 5            # battery %age we force a shutdown (to save the SD!)
34 shutdown_script    /usr/pandora/scripts/op_battlow.sh
35
36 [battery_charge]
37 enable             1            # enable charger control?
38 stop_capacity      99           # battery capacity threshold as stop condition 1
39 stop_current       80000        # charge current threshold as stop condition 2, in uA
40 start_capacity     95           # battery capacity threshold to resume charging
41 devices            twl4030_bci_battery twl4030_ac twl4030_usb