[OM2009] gsm don't start after opkg update-upgrade

Previdi Roberto previdi.roberto at gmail.com
Tue Jul 14 16:27:50 CEST 2009


On Tue, Jul 14, 2009 at 3:57 PM, Angus Ainslie <nytowl at openmoko.org> wrote:

> On July 14, 2009 07:15:13 am Previdi Roberto wrote:
> > hello list. I updated my OM2009 installation (3-4 days old) with opkg
> > update - opkg upgrade. After having accepted the new config files and
> > rebooted the gsm service cannot start anymore.
> >
>
> Please post /etc/frameworkd.conf and /etc/freesmartphone/oevents/rules.yaml
>


root at om-gta02:~# cat /etc/frameworkd.conf
[frameworkd]
version = 1
log_level = INFO
log_to = syslog

[odeviced.audio]
# set default alsa scenario
default_scenario = stereoout
# set path to alsa scenario files
scenario_dir = /usr/share/openmoko/scenarios

[odeviced.idlenotifier]
# don't read from accellerometers for GTA02
ignoreinput=2,3

[odeviced.input]
# don't read from accellerometers for GTA02
ignoreinput=2,3
# keys
report1 = AUX,key,169,1
report2 = POWER,key,116,1
report3 = USB,key,356,0
report4 = HEADSET,switch,2,0

# disable accelerometer since it uses LOADS of CPU resources
[odeviced.accelerometer]
disable = 1
accelerometer_type = gta02

[ogsmd]
# GTA02 has TI Calypso
modemtype = ti_calypso
ti_calypso_deep_sleep = never

[ogpsd]
device = GTA02Device
channel = SerialChannel
path = /dev/ttySAC1

[opreferencesd]
rootdir =
../etc/freesmartphone/opreferences:/etc/freesmartphone/opreferences:/usr/etc/freesmartphone/opreferences

[oeventsd]
rules_file =
../etc/freesmartphone/oevents/rules.yaml:/etc/freesmartphone/oevents/rules.yaml:/usr/etc/freesmartphone/oevents/rules.yaml

[opimd]
disable = 1

[ousaged]
disable = 1

[fsousage]
[fsousage.controller]

-----------------------------------------------------------------------------------------------------

root at om-gta02:~# cat /etc/freesmartphone/oevents/rules.yaml

# 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: 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
    #
    trigger: IncomingMessage()
    actions: MessageTone(play)

-
    while: CallListContains("incoming")
    filters: Not(CallListContains("active"))
    actions:
             - RingTone()
             - SetDisplayBrightness("0", 90)

-
    while: CallStatus()
    filters: Not(HasAttr(status, "release"))
    actions:
            - OccupyResource(CPU)
-
    while: CallStatus()
    filters:
            - Or(HasAttr(status, "outgoing"), HasAttr(status, "active"))
            - Not(BTHeadsetIsConnected())
    actions:
            - SetScenario(gsmhandset)
-
    while: CallStatus()
    filters:
            - Or(HasAttr(status, "outgoing"), HasAttr(status, "active"))
            - BTHeadsetIsConnected()
    actions:
            - SetScenario(gsmbluetooth)
            - BTHeadsetPlaying()

-
    while: PowerStatus()
    filters: HasAttr(status, "charging")
    actions: SetLed("gta02_power_orange", "light")

#-
#    while: PowerStatus()
#    filters: Not(HasAttr(status, "discharging"))
#    actions: OccupyResource(Display)

-
    while: PowerStatus()
    filters: HasAttr(status, "critical")
    actions: SetLed("gta02_power_orange", "blink")
-
    while: PowerStatus()
    filters: HasAttr(status, "full")
    actions: SetLed("gta02_power_blue", "light")
-
    trigger: PowerStatus()
    filters: HasAttr(status, "empty")
    actions: Command('poweroff')

    #
    # Headset Audio Scenario Support
    #
-
    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')

    #
    # A few testing rules :
    #

    # This rule will only be enabled in silent mode
    # According to the preferences rules conf files.
-
    name: 'test-rule'
    trigger: IdleState()
    filters: HasAttr(status, "busy")
    actions: Debug("Hello This is a test")
-
    trigger: Test("test")
    actions: Debug("trigger test")
-
    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
    #
    trigger: IdleState()
    filters: HasAttr(status, "busy")
    actions: SetDisplayBrightness("0", 90)
-
    trigger: IdleState()
    filters: HasAttr(status, "idle_dim")
    actions: SetDisplayBrightness("0", 20)
-
    trigger: IdleState()
    filters: HasAttr(status, "idle_prelock")
    actions: SetDisplayBrightness("0", 0)



>
>
> For Om2009 it is best not to choose the package maintianers version of
> those
> files and keep the ones you have installed.
>
> Angus
>
>


-- 
roby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20090714/5abffcac/attachment.htm 


More information about the community mailing list