<div class="gmail_quote">On Tue, Jul 14, 2009 at 3:57 PM, Angus Ainslie <span dir="ltr"><<a href="mailto:nytowl@openmoko.org">nytowl@openmoko.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On July 14, 2009 07:15:13 am Previdi Roberto wrote:<br>
> hello list. I updated my OM2009 installation (3-4 days old) with opkg<br>
> update - opkg upgrade. After having accepted the new config files and<br>
> rebooted the gsm service cannot start anymore.<br>
><br>
<br>
</div>Please post /etc/frameworkd.conf and /etc/freesmartphone/oevents/rules.yaml </blockquote><div><br>root@om-gta02:~# cat /etc/frameworkd.conf <br>[frameworkd]<br>version = 1<br>log_level = INFO<br>log_to = syslog<br>
<br>[odeviced.audio]<br># set default alsa scenario<br>default_scenario = stereoout<br># set path to alsa scenario files<br>scenario_dir = /usr/share/openmoko/scenarios<br><br>[odeviced.idlenotifier]<br># don't read from accellerometers for GTA02<br>
ignoreinput=2,3<br><br>[odeviced.input]<br># don't read from accellerometers for GTA02<br>ignoreinput=2,3<br># keys<br>report1 = AUX,key,169,1<br>report2 = POWER,key,116,1<br>report3 = USB,key,356,0<br>report4 = HEADSET,switch,2,0<br>
<br># disable accelerometer since it uses LOADS of CPU resources<br>[odeviced.accelerometer]<br>disable = 1<br>accelerometer_type = gta02<br><br>[ogsmd]<br># GTA02 has TI Calypso<br>modemtype = ti_calypso<br>ti_calypso_deep_sleep = never<br>
<br>[ogpsd]<br>device = GTA02Device<br>channel = SerialChannel<br>path = /dev/ttySAC1<br><br>[opreferencesd]<br>rootdir = ../etc/freesmartphone/opreferences:/etc/freesmartphone/opreferences:/usr/etc/freesmartphone/opreferences<br>
<br>[oeventsd]<br>rules_file = ../etc/freesmartphone/oevents/rules.yaml:/etc/freesmartphone/oevents/rules.yaml:/usr/etc/freesmartphone/oevents/rules.yaml<br><br>[opimd]<br>disable = 1<br><br>[ousaged]<br>disable = 1<br><br>
[fsousage]<br>[fsousage.controller]<br><br>-----------------------------------------------------------------------------------------------------<br><br>root@om-gta02:~# cat /etc/freesmartphone/oevents/rules.yaml <br><br># This file is in YAML format (<a href="http://www.yaml.org/">http://www.yaml.org/</a>)<br>
# We define a list of rules that will be automatically loaded<br># When we start the oevents module of the framework daemon<br>#<br># The attributes of a rule are :<br># - trigger : trigger object<br># - filters : filters object or list of filters objects<br>
# - actions : action object or list of actions objects<br>#<br># We define the following functions :<br># - CallStatus() : create a trigger object activated on a call status event<br># - PowerStatus() : create a trigger object activated on a power status event<br>
# - HasAttr(name, value) : create a filter that accept signal with a given attribute<br># - Not(filter) : create a neg filter<br># - PlaySound(file) : Action that starts to play an audio file<br># - StopSound(file) : Action that stop an audio file<br>
# - SetScenario(name) : Action that sets an audio scenario<br># - StartVibration<br># - StopVibration<br># - RingTone(cmd) : cmd can be 'start' or 'stop'<br># - Time(hour, min) : create a trigger activated at the given time<br>
# - Debug(msg) : Action that prints a debug message (only for debuging)<br>-<br> trigger: Time(12,29)<br> actions: Debug("A Test")<br>-<br> #<br> # Suspend Handling<br> #<br> trigger: InputEvent()<br>
filters:<br> - HasAttr(switch, "POWER")<br> - HasAttr(event, "released")<br> - HasAttr(duration, 0)<br> actions: Suspend()<br>-<br> #<br> # Call -> Audio Scenario Handling<br>
#<br> trigger: IncomingMessage()<br> actions: MessageTone(play)<br><br>-<br> while: CallListContains("incoming")<br> filters: Not(CallListContains("active"))<br> actions:<br> - RingTone()<br>
- SetDisplayBrightness("0", 90)<br><br>-<br> while: CallStatus()<br> filters: Not(HasAttr(status, "release"))<br> actions:<br> - OccupyResource(CPU)<br>-<br> while: CallStatus()<br>
filters:<br> - Or(HasAttr(status, "outgoing"), HasAttr(status, "active"))<br> - Not(BTHeadsetIsConnected())<br> actions:<br> - SetScenario(gsmhandset)<br>-<br> while: CallStatus()<br>
filters:<br> - Or(HasAttr(status, "outgoing"), HasAttr(status, "active"))<br> - BTHeadsetIsConnected()<br> actions:<br> - SetScenario(gsmbluetooth)<br> - BTHeadsetPlaying()<br>
<br>-<br> while: PowerStatus()<br> filters: HasAttr(status, "charging")<br> actions: SetLed("gta02_power_orange", "light")<br><br>#-<br># while: PowerStatus()<br># filters: Not(HasAttr(status, "discharging"))<br>
# actions: OccupyResource(Display)<br><br>-<br> while: PowerStatus()<br> filters: HasAttr(status, "critical")<br> actions: SetLed("gta02_power_orange", "blink")<br>-<br> while: PowerStatus()<br>
filters: HasAttr(status, "full")<br> actions: SetLed("gta02_power_blue", "light")<br>-<br> trigger: PowerStatus()<br> filters: HasAttr(status, "empty")<br> actions: Command('poweroff')<br>
<br> #<br> # Headset Audio Scenario Support<br> #<br>-<br> trigger: InputEvent()<br> filters:<br> - HasAttr(switch, "HEADSET")<br> - HasAttr(event, "pressed")<br>
actions: Command('amixer -d sset "Amp Spk" mute')<br>-<br> trigger: InputEvent()<br> filters:<br> - HasAttr(switch, "HEADSET")<br> - HasAttr(event, "released")<br>
actions: Command('amixer -d sset "Amp Spk" unmute')<br><br> #<br> # A few testing rules :<br> #<br><br> # This rule will only be enabled in silent mode<br> # According to the preferences rules conf files.<br>
-<br> name: 'test-rule'<br> trigger: IdleState()<br> filters: HasAttr(status, "busy")<br> actions: Debug("Hello This is a test")<br>-<br> trigger: Test("test")<br> actions: Debug("trigger test")<br>
-<br> while: Test("test2")<br> actions: RingTone()<br>-<br> trigger: DbusTrigger(system, 'org.freesmartphone.odeviced', 0, 'org.freesmartphone.Device.IdleNotifier', 'State')<br> actions: Debug("dbus trigger test")<br>
-<br><br> #<br> # Idleness Brightness Handling<br> #<br> trigger: IdleState()<br> filters: HasAttr(status, "busy")<br> actions: SetDisplayBrightness("0", 90)<br>-<br> trigger: IdleState()<br>
filters: HasAttr(status, "idle_dim")<br> actions: SetDisplayBrightness("0", 20)<br>-<br> trigger: IdleState()<br> filters: HasAttr(status, "idle_prelock")<br> actions: SetDisplayBrightness("0", 0)<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
For Om2009 it is best not to choose the package maintianers version of those<br>
files and keep the ones you have installed.<br>
<font color="#888888"><br>
Angus<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>roby<br>