changed oevents/rules.yaml to work with MS 4

git-svn-id: http://www.neo1973-germany.de/svn@210 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
Paulus 2008-11-11 16:46:30 +00:00
parent 898645f7ba
commit 36c9f2b47b
4 changed files with 25 additions and 4 deletions

View file

@ -19,4 +19,10 @@ during a call gsmhandset.state or gsmheadset.state is loaded
Known Issues: Known Issues:
-the "lock-funktion" don't work yet -the "lock-funktion" don't work yet
-the install script will overwrite your /etc/freesmartphone/oevents/rules.yaml and some other files. -the install script will overwrite your /etc/freesmartphone/oevents/rules.yaml and some other files.
-I don't know what happens if you plug in or remove the headset during an call -You will hear nothing, if you plug in or remove the headset during an call
Changelog:
Rev 210: changed oevents/rules.yaml to work with Milestone 4.
Rev 209: first version: works with fso-testing before Milestone 4

View file

@ -76,7 +76,7 @@ class auxmenuclass:
os.system("apm -s") os.system("apm -s")
elif signal == "shutdown": elif signal == "shutdown":
print "shutdown" print "shutdown"
os.system("halt") os.system("poweroff")
ecore.main_loop_quit() ecore.main_loop_quit()
def mute(self): def mute(self):
if self.profile == "default": if self.profile == "default":

View file

@ -24,6 +24,16 @@
- -
trigger: Time(12,29) trigger: Time(12,29)
actions: Debug("A Test") actions: Debug("A Test")
-
#
# Suspend Handling
#
trigger: InputEvent()
filters:
- HasAttr(switch, "POWER")
- HasAttr(event, "released")
- HasAttr(duration, 0)
actions: Suspend()
- -
# #
# Call -> Audio Scenario Handling # Call -> Audio Scenario Handling
@ -122,6 +132,9 @@
while: Test("test2") while: Test("test2")
actions: RingTone() actions: RingTone()
- -
trigger: DbusTrigger(system, 'org.freesmartphone.odeviced', 0, 'org.freesmartphone.Device.IdleNotifier', 'State')
actions: Debug("dbus trigger test")
-
# #
# Idleness Brightness Handling # Idleness Brightness Handling
@ -137,6 +150,10 @@
trigger: IdleState() trigger: IdleState()
filters: HasAttr(status, "idle_prelock") filters: HasAttr(status, "idle_prelock")
actions: SetDisplayBrightness("pcf50633_bl", 0) actions: SetDisplayBrightness("pcf50633_bl", 0)
#
# usb and aux Handling
#
- -
trigger: InputEvent() trigger: InputEvent()
filters: filters:
@ -151,5 +168,3 @@
- HasAttr(event, "pressed") - HasAttr(event, "pressed")
actions: Command('auxmenu') actions: Command('auxmenu')