diff --git a/fso_soundmanagement/trunk/fso_soundmanagement.tar b/fso_soundmanagement/trunk/fso_soundmanagement.tar index 2520603..6607a20 100644 Binary files a/fso_soundmanagement/trunk/fso_soundmanagement.tar and b/fso_soundmanagement/trunk/fso_soundmanagement.tar differ diff --git a/fso_soundmanagement/trunk/src/README b/fso_soundmanagement/trunk/src/README index bebf8cf..0299f8b 100644 --- a/fso_soundmanagement/trunk/src/README +++ b/fso_soundmanagement/trunk/src/README @@ -19,4 +19,10 @@ during a call gsmhandset.state or gsmheadset.state is loaded Known Issues: -the "lock-funktion" don't work yet -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 \ No newline at end of file +-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 diff --git a/fso_soundmanagement/trunk/src/auxmenu/auxmenu.py b/fso_soundmanagement/trunk/src/auxmenu/auxmenu.py index 0bfba6d..68287bc 100644 --- a/fso_soundmanagement/trunk/src/auxmenu/auxmenu.py +++ b/fso_soundmanagement/trunk/src/auxmenu/auxmenu.py @@ -76,7 +76,7 @@ class auxmenuclass: os.system("apm -s") elif signal == "shutdown": print "shutdown" - os.system("halt") + os.system("poweroff") ecore.main_loop_quit() def mute(self): if self.profile == "default": diff --git a/fso_soundmanagement/trunk/src/oevents/rules.yaml b/fso_soundmanagement/trunk/src/oevents/rules.yaml index d84ac10..4ca6578 100644 --- a/fso_soundmanagement/trunk/src/oevents/rules.yaml +++ b/fso_soundmanagement/trunk/src/oevents/rules.yaml @@ -24,6 +24,16 @@ - trigger: Time(12,29) actions: Debug("A Test") +- + # + # Suspend Handling + # + trigger: InputEvent() + filters: + - HasAttr(switch, "POWER") + - HasAttr(event, "released") + - HasAttr(duration, 0) + actions: Suspend() - # # Call -> Audio Scenario Handling @@ -122,6 +132,9 @@ while: Test("test2") actions: RingTone() - + trigger: DbusTrigger(system, 'org.freesmartphone.odeviced', 0, 'org.freesmartphone.Device.IdleNotifier', 'State') + actions: Debug("dbus trigger test") +- # # Idleness Brightness Handling @@ -137,6 +150,10 @@ trigger: IdleState() filters: HasAttr(status, "idle_prelock") actions: SetDisplayBrightness("pcf50633_bl", 0) + + # + # usb and aux Handling + # - trigger: InputEvent() filters: @@ -151,5 +168,3 @@ - HasAttr(event, "pressed") actions: Command('auxmenu') - -