eventmap: add f12 tv layer toggle
[pandora-libraries.git] / deployment / etc / pandora / conf / eventmap
index e897ecc..664f111 100644 (file)
@@ -3,9 +3,16 @@
 # Event-to-shscript map configuration
 
 [keys]
-# pass 'hold duration' to the script
-pandora /usr/pandora/scripts/op_menu.sh
-power  /usr/pandora/scripts/op_power.sh
+# passes a 'hold duration' to the script
+# if a number follows script name, will always force invocation at that time (or less)
+# if script to execute does not lead with a path, it is an internal function instead
+#   internal functions that exist: TOGGLE_HOLD
+pandora /usr/pandora/scripts/op_menu.sh 2
+power  /usr/pandora/scripts/op_power.sh 3
+lcdbrightdown  /usr/pandora/scripts/op_bright_down.sh
+lcdbrightup    /usr/pandora/scripts/op_bright_up.sh
+f12            /usr/pandora/scripts/op_tvout_layer.sh
+hold           TOGGLE_HOLD
 
 [events]
 # pass 'action code' to the script
@@ -19,9 +26,16 @@ minimum_separation   1       # 1 second minimum between a single event repeating
 
 [battery]
 # for LED-blinking when battery gets low
-threshold                    # in %age; at x%, we go into blink-mode as warning
-check_interval    300          # in seconds to check threshold; should be a high 300s
+threshold         10           # in %age; at x%, we go into blink-mode as warning
+check_interval    90           # in seconds to check threshold; should be a high 300s
 blink_interval    2            # frequency of blink
 blink_duration    50000        # how long a blink lasts, in uSecs
-shutdown_threshold 1           # battery %age we force a shutdown (to save the SD!)
-shutdown_script           /usr/pandora/scripts/op_shutdown.sh
+shutdown_threshold 5           # battery %age we force a shutdown (to save the SD!)
+shutdown_script           /usr/pandora/scripts/op_battlow.sh
+
+[battery_charge]
+enable             1            # enable charger control?
+stop_capacity      99           # battery capacity threshold as stop condition 1
+stop_current       80000        # charge current threshold as stop condition 2, in uA
+start_capacity     95           # battery capacity threshold to resume charging
+devices            twl4030_bci_battery twl4030_ac twl4030_usb