From 36c9f2b47b803dd4f7575c8170ba1583b0b7ccea Mon Sep 17 00:00:00 2001 From: Paulus Date: Tue, 11 Nov 2008 16:46:30 +0000 Subject: [PATCH] changed oevents/rules.yaml to work with MS 4 git-svn-id: http://www.neo1973-germany.de/svn@210 46df4e5c-bc4e-4628-a0fc-830ba316316d --- .../trunk/fso_soundmanagement.tar | Bin 194560 -> 81920 bytes fso_soundmanagement/trunk/src/README | 8 +++++++- .../trunk/src/auxmenu/auxmenu.py | 2 +- .../trunk/src/oevents/rules.yaml | 19 ++++++++++++++++-- 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/fso_soundmanagement/trunk/fso_soundmanagement.tar b/fso_soundmanagement/trunk/fso_soundmanagement.tar index 2520603bdc4be08e9490ac6ba3f337e1159423c8..6607a20d8759fcd834e4ddbbe3a7e912cc9737bf 100644 GIT binary patch delta 1266 zcmb_bO=uHA6wcc=Hi;GyHAqD|R%lx2&&>YCMntStVznx*A|BK3Bw0*%%kCz%sI+SF zVh>`Zi&sxQsdNtudg{%KH&MZZK@b!{1&<1GcC*_iJ-dft=Y8*e@0<6t^lRtRQuN`< z9$63so|ht+5S|w!NUD+!#R2GmYV5_b2NPZv87v6tbOd1!t^(B8W3k?9?8EH?X%ZoX zV4nx4Jx5-a14jpj|HNZ+`aCuCe13i8Z~LRKe#(%O7gBq+nl=7*e@#9NtGerpo3V)fD^3D0JJYEF6tq zx_I^Uq-kdn`*~yIoj>DA+rm!TshAV1Wc3aN#+$c8ADYn6n*|_{}&6cD31^FJZBXSd_fZ z`CWJ6RckO2yx|GDx&bk;<2AU~6wGjGGkAlw-Hm;QWvSr@unF;SAXs`4A^+-fh^JnlsDDjFzDadEH{E8N{C z=^{>VDI4VKXI9^~5)eMzK?hF6!A-p57TUXb%oaFULSEu|HuG3yqaW7zBX_Jlc}*{) zd9_qRMVd2^rdvfeBm?%9Pn@`zNSrF>v;r;Zg-jwbNh^paID=+RA#qyjUsU<2*)EClvfSYLKSM5Y;!Wczu5@L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)HGQ za}=I8swX)zEEtGcZL%>syc3qkG)Bh5nqzu1+2#|$==!w>Gd25!wSLVgx;9Uj*|Xj; zY9!#jN~=F?rc`Bd9uyI{uUI1sYJwRPPpDMi)k-8NRi=>Py`m7*V_U1YnGpPwF&WGH z7d`9dww3Dp+MJ+NwJyO2P{VKR&0~U&k-Cp*fNBrNWn?-`Yw6yao+?5@alefNG9kf` ztB&?A101EogJE*jJa$#vbwDU6PxI*2ARQ2jgAD(RfRJA>HL!=*!2P!b4q|)!CaNtoS zNEGsrM&Mw~pfNKxLJgIxNw;+vSsx2MJsU+nJPh@@BLwE5U@T^ihv3Bk&%s_~_|_Rb z%O6{;I?lGVYG8YQ=yV@uI1pqA`Q#KYVtzFfVaVbJS`ana;xpPg+@#4RI1+AX%3>=)9R1!e0}}H zQjwSB9UzY4f#872OA44SwXpJ5Q4`}Wv_#SAdJyJSBtvH=Pnl8`+SbN4t3f(5$qxeg zqdQe(Cix{(a}_yeaw?^K-DP;{ig8Ypz=L%#r`|f*0cO$)Mcr>MHMXNwJHubZ`c$>5 z9+aIio3OU$_&7ooh_fGX7J9MIFf?i;JAoF_wsGx%l&tbqg~6lO^APkVwrQ=0A#&A5 zX%Uf-r10&-(h#}&v>qDpZb&XPfO@5Eu<`H>UOb!Rg(MXx8pb81VQA4mX1x4l+mqPZ zxXBM@di61D{kC3tp~$71*0Vmo{FMGai+ap--Fnda!So?qOd$m4K1iYK)?w?|p1Bj{ ps8K)KE-%*`=ga38{dRc~UcnXh)|E34TWsTVub#P%%GQ@3`Y)c8vDp9s 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') - -