==> /etc/freesmartphone/opreferences/conf/profiles/default.yaml <== profiles: default: 0 silent: 1 ==> /etc/freesmartphone/opreferences/conf/phone/default.yaml <== ring-tone: "01_Ehma_Larrivee.mp3" ring-volume: 10 message-tone: "notify_message.mp3" message-volume: 10 ==> /etc/freesmartphone/opreferences/conf/phone/silent.yaml <== # Those values are just here to test the preferences service, # They are not actually used yet ring-volume: 0 ==> /etc/freesmartphone/opreferences/schema/phone.yaml <== ring-tone: type: str profilable: yes ring-volume: type: int profilable: yes default: 10 message-tone: type: str profilable: yes message-volume: type: int profilable: yes default: 10 ==> /etc/freesmartphone/opreferences/schema/profiles.yaml <== # This schema file defines the preferences parameters of the profiles service # For the moment all we have is a dict of (str -> int) # The strings are the profiles name. # The int have no meaning, it will be replaced by a real structure later profiles: type: list ==> /etc/freesmartphone/opreferences/schema/rules.yaml <== enabled-rules: profilable: yes type: list default: [""] ==> /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: IncomingMessage() actions: MessageTone(play) - trigger: CallStatus() filters: HasAttr(status, "incoming") actions: RingTone(play) - trigger: CallStatus() filters: Not(HasAttr(status, "incoming")) actions: RingTone(stop) - trigger: Time(12,29) actions: Debug("A Test") - trigger: CallStatus() filters: HasAttr(status, "outgoing") actions: SetScenario(gsmhandset) - trigger: CallStatus() filters: HasAttr(status, "active") actions: SetScenario(gsmhandset) - trigger: CallStatus() filters: HasAttr(status, "release") actions: SetScenario(stereoout) - trigger: PowerStatus() filters: HasAttr(status, "Charging") actions: - SetLed("gta02_power_blue", "dark") - SetLed("gta02_power_orange", "light") - trigger: PowerStatus() filters: HasAttr(status, "Discharging") actions: - SetLed("gta02_power_blue", "dark") - SetLed("gta02_power_orange", "dark") - trigger: PowerStatus() filters: HasAttr(status, "Full") actions: - SetLed("gta02_power_blue", "light") - SetLed("gta02_power_orange", "dark") - trigger: PowerStatus() filters: HasAttr(status, "Critical") actions: - SetLed("gta02_power_blue","dark") - SetLed("gta02_power_orange","blink") - 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') ==> /etc/frameworkd.conf <== [frameworkd] version = 1 [odeviced.audio] # set default alsa scenario default_scenario = stereoout # set path to alsa scenario files scenario_dir = /usr/share/openmoko/scenarios [odeviced.idlenotifier] disable = 1 # don't read from accellerometers for GTA02 ignoreinput=2,3 [odeviced.input] disable = 1 # 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 log_level = DEBUG [ogpsd] disable = 1 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 [odeviced.info] disable = 1 [odeviced.kernel26] disable = 1