[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819
Simon Busch
morphis at gravedo.de
Sat Aug 6 08:20:20 UTC 2011
The following commit has been merged in the debian branch:
commit 3d9c097116a8d60cd6f913988f51108344ca8a6f
Author: Simon Busch <morphis at gravedo.de>
Date: Fri Feb 25 22:21:18 2011 +0100
Add rules.yaml config file for palmpre machine
diff --git a/etc/freesmartphone/oevents/a780/rules.yaml b/etc/freesmartphone/oevents/palmpre/rules.yaml
similarity index 62%
copy from etc/freesmartphone/oevents/a780/rules.yaml
copy to etc/freesmartphone/oevents/palmpre/rules.yaml
index 61cbb74..4dbfde5 100644
--- a/etc/freesmartphone/oevents/a780/rules.yaml
+++ b/etc/freesmartphone/oevents/palmpre/rules.yaml
@@ -1,4 +1,3 @@
-
# This file is in YAML format (http://www.yaml.org/)
# We define a list of rules that will be automatically loaded
# When we start the oevents module of the framework daemon
@@ -21,37 +20,39 @@
# - RingTone(cmd) : cmd can be 'start' or 'stop'
# - Time(hour, min) : create a trigger activated at the given time
# - Debug(msg) : Action that prints a debug message (only for debuging)
+
+#
+# On incomming messages play some nice sound
+#
-
- #
- # Call -> Audio Scenario Handling
- #
trigger: IncomingMessage()
actions: MessageTone(play)
+#
+# Handle some call events
+#
-
- while: CallListContains("incoming")
- filters: Not(CallListContains("active"))
+ while: CallListContains("INCOMING")
+ filters: Not(CallListContains("ACTIVE"))
actions:
- RingTone()
- - SetLed("a780__keypad", "blink")
- OccupyResource(Display)
-#-
-# while: CallStatus()
-# filters:
-# - Or(Or(HasAttr(status, "outgoing"), HasAttr(status, "active")), And(HasAttr(status, "incoming"), CallListContains("active")))
-# - Not(BTHeadsetIsConnected())
-# actions:
-# - SetScenario(gsmhandset)
+#
+# Handle changes to the backlight power (display turns on/off). Here we need to tell our
+# touchscreen management daemon to enable/disable touchscreen access as it will otherwise
+# read invalid values which lets the touchscreen to not work anymore until we restart it
+# completly.
+#
+-
+ trigger: BacklightPower()
+ filters:
+ - HasAttr(status, 0)
+ actions: Command("/usr/bin/tsmd_disable")
-
- while: PowerStatus()
- filters: HasAttr(status, "charging")
- actions: SetLed("a780__aux", "blink")
--
- while: PowerStatus()
- filters: HasAttr(status, "full")
- actions: SetLed("a780__aux", "light")
--
- trigger: PowerStatus()
- filters: HasAttr(status, "empty")
- actions: Command('poweroff')
+ trigger: BacklightPower()
+ filters:
+ - HasAttr(status, 1)
+ actions: Command("/usr/bin/tsmd_enable")
+
+
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list