Merge branch 'master' of ssh://skeezixgit@git.openpandora.org/srv/git/pandora-libraries
[pandora-libraries.git] / deployment / etc / pandora / conf / eventmap
1
2 # Open Pandora
3 # Event-to-shscript map configuration
4
5 [keys]
6 # pass 'hold duration' to the script
7 # if a number follows script name, will always force invocation at that time (or less)
8 pandora /usr/pandora/scripts/op_menu.sh 3
9 power   /usr/pandora/scripts/op_power.sh 3
10 lcdbrightdown   /usr/pandora/scripts/op_bright_down.sh
11 lcdbrightup     /usr/pandora/scripts/op_bright_up.sh
12
13 [events]
14 # pass 'action code' to the script
15 # lid actions are: 1 lid-is-closing, 0 lid-is-opening
16 lid-toggle      /usr/pandora/scripts/op_lid.sh
17
18 [pndevmapperd]
19 # logging level 0 means to include debug; level 1 (regular), 2 (warnings), 3 (errors)
20 loglevel        1
21 minimum_separation      1       # 1 second minimum between a single event repeating
22
23 [battery]
24 # for LED-blinking when battery gets low
25 threshold          10           # in %age; at x%, we go into blink-mode as warning
26 check_interval     90           # in seconds to check threshold; should be a high 300s
27 blink_interval     2            # frequency of blink
28 blink_duration     50000        # how long a blink lasts, in uSecs
29 shutdown_threshold 5            # battery %age we force a shutdown (to save the SD!)
30 shutdown_script    /usr/pandora/scripts/op_battlow.sh