[pkg-fso-commits] [SCM] openmoko-files, various files for the Openmoko devices branch, upstream, updated. upstream/20080911-2-g7d8cec7
Luca Capello
luca at pca.it
Wed Oct 29 02:21:09 UTC 2008
The following commit has been merged in the upstream branch:
commit 7d8cec71eb9b9a7861088937fd1f6fae5bae6645
Author: Luca Capello <luca at pca.it>
Date: Wed Oct 29 03:20:42 2008 +0100
GTA02_Neo-FreeRunner/etc/freesmartphone/*: new YAML config files
diff --git a/GTA02_Neo-FreeRunner/etc/freesmartphone/oevents/rules.yaml b/GTA02_Neo-FreeRunner/etc/freesmartphone/oevents/rules.yaml
new file mode 100644
index 0000000..13f672d
--- /dev/null
+++ b/GTA02_Neo-FreeRunner/etc/freesmartphone/oevents/rules.yaml
@@ -0,0 +1,86 @@
+
+# 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
+#
+# The attributes of a rule are :
+# - trigger : trigger object
+# - filters : filters object or list of filters objects
+# - actions : action object or list of actions objects
+#
+# We define the following functions :
+# - CallStatus() : create a trigger object activated on a call status event
+# - PowerStatus() : create a trigger object activated on a power status event
+# - HasAttr(name, value) : create a filter that accept signal with a given attribute
+# - Not(filter) : create a neg filter
+# - PlaySound(file) : Action that starts to play an audio file
+# - StopSound(file) : Action that stop an audio file
+# - SetScenario(name) : Action that sets an audio scenario
+# - StartVibration
+# - StopVibration
+# - 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)
+
+-
+ trigger: IncomingMessage()
+ actions: MessageTone(play)
+-
+ trigger: CallStatus()
+ filters: HasAttr(status, "incoming")
+ actions: RingTone(play)
+-
+ trigger: CallStatus()
+ filters: Not(HasAttr(status, "incoming"))
+ actions: RingTone(stop)
+-
+ trigger: Time(12,29)
+ actions: Debug("A Test")
+-
+ trigger: CallStatus()
+ filters: HasAttr(status, "outgoing")
+ actions: SetScenario(gsmhandset)
+-
+ trigger: CallStatus()
+ filters: HasAttr(status, "active")
+ actions: SetScenario(gsmhandset)
+-
+ trigger: CallStatus()
+ filters: HasAttr(status, "release")
+ actions: SetScenario(stereoout)
+-
+ trigger: PowerStatus()
+ filters: HasAttr(status, "Charging")
+ actions:
+ - SetLed("gta02_power_blue", "dark")
+ - SetLed("gta02_power_orange", "light")
+-
+ trigger: PowerStatus()
+ filters: HasAttr(status, "Discharging")
+ actions:
+ - SetLed("gta02_power_blue", "dark")
+ - SetLed("gta02_power_orange", "dark")
+-
+ trigger: PowerStatus()
+ filters: HasAttr(status, "Full")
+ actions:
+ - SetLed("gta02_power_blue", "light")
+ - SetLed("gta02_power_orange", "dark")
+-
+ trigger: PowerStatus()
+ filters: HasAttr(status, "Critical")
+ actions:
+ - SetLed("gta02_power_blue","dark")
+ - SetLed("gta02_power_orange","blink")
+-
+ trigger: InputEvent()
+ filters:
+ - HasAttr(switch, "HEADSET")
+ - HasAttr(event, "pressed")
+ actions: Command('amixer -d sset "Amp Spk" mute')
+-
+ trigger: InputEvent()
+ filters:
+ - HasAttr(switch, "HEADSET")
+ - HasAttr(event, "released")
+ actions: Command('amixer -d sset "Amp Spk" unmute')
diff --git a/GTA02_Neo-FreeRunner/etc/freesmartphone/opreferences/conf/phone/silent.yaml b/GTA02_Neo-FreeRunner/etc/freesmartphone/opreferences/conf/phone/silent.yaml
new file mode 100644
index 0000000..afc786e
--- /dev/null
+++ b/GTA02_Neo-FreeRunner/etc/freesmartphone/opreferences/conf/phone/silent.yaml
@@ -0,0 +1,6 @@
+
+# Those values are just here to test the preferences service,
+# They are not actually used yet
+
+ring-volume: 0
+
diff --git a/GTA02_Neo-FreeRunner/etc/freesmartphone/opreferences/conf/profiles/default.yaml b/GTA02_Neo-FreeRunner/etc/freesmartphone/opreferences/conf/profiles/default.yaml
new file mode 100644
index 0000000..f9c742e
--- /dev/null
+++ b/GTA02_Neo-FreeRunner/etc/freesmartphone/opreferences/conf/profiles/default.yaml
@@ -0,0 +1,3 @@
+profiles:
+ default: 0
+ silent: 1
--
openmoko-files, various files for the Openmoko devices
More information about the pkg-fso-commits
mailing list