| Version 18 (modified by TaxAudit, 4 years ago) (diff) |
|---|
How to customize your SHR
You have installed SHR, and now want to customize it. At the moment, graphical interface is not available. You need to modify configuration files using a text editor (vi for example)
Customize the Ringtone
If you want you can personalize the noise that your FR must do for incoming calls or messages. Shortly, you have to modify /etc/freesmartphone/opreferences/conf/phone/default.yaml use .ogg or .sid and the default place is /usr/share/sounds/ you can find some at RingTone
If you like to test a .sid you can play it using this command on the FR:
gst-launch filesrc location=Arkanoid_PSID.sid ! siddec tune=2 ! alsasink
NOTE: it's used a ! not a | to construct the gstreamer pipe command.
Ringtone
You can define a short ringtone, repetead many time, or a long one, repeated 1 time
File: /etc/freesmartphone/opreferences/conf/phone/default.yaml
ring-volume # Ring Volume control 0 (mini) to ? maxi) ring-length # min time for ringtone. Must be greater than the duration of you ringtone ring-loop # define the number of loop of ringtone to play ring-tone: "ringtone_ringnroll.ogg" # .ogg example ring-tone: "Arkanoid_PSID.sid" # .sid example, use default tune ring-tone: "Arkanoid_PSID.sid;tune=2" # .sid example, plays the second tune of that
Message alert
The same as above, but with message- instead of ring- as parameters! :)
Sound Control
Up to now, there is no graphical interface to control the sound (In fact, there is non official one: http://wiki.openmoko.org/wiki/Neo_Freerunner_audio_subsystem#Volume_Control, not tested with SHR, but should work)
Mic and HP
The first idea is to use alsamixer; bad idea! There are 94 controls, and your modifications will be lost at the next reboot.Finding documentation is not easy. Here is my understanding: Scenarios are used for each case. They are located in /usr/share/openmoko/scenarios/
- capturehandset.state
- gsmheadset.state
- headset.state
- voip-handset.state
- gsmhandset.state
- gsmspeakerout.state
- stereoout.state
Each file is a set of value for the 94 parameters. I have identified some:
- Control 48: internal mic of the tel (set to 2 or 3)
- Control 4 : internal speaker (set from 110 to 120)
- Control 49: headset mic
- Control 3 : headset speaker
external link:
http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem
http://wiki.openmoko.org/wiki/Neo_alsamixer#Settings_Descriptions
http://wiki.openmoko.org/wiki/Neo_Freerunner_audio_subsystem
Global parameters
You can find them in /etc/frameworkd.conf
Power management
You can adjust parameters in
/etc/freesmartphone/oevents/rules.yaml /etc/freesmartphone/opreferences/conf/profiles/default.yaml
GPS
GPS is not started automaticly at boot. You need to switch it ON/OFF manually
method one (the simplest)
cd /etc/init.d/ fso-gpsd start
method two
you need to modify the file /etc/init.d/fso-gpsd. Replace the line
start-stop-daemon --start /usr/sbin/fso-gpsd -S localhost:gpsd -P /var/run/${NAME}.pid
by
start-stop-daemon --start --pidfile /var/run/${NAME}.pid --exec /usr/sbin/fso-gpsd -- -S localhost:gpsd -P /var/run/${NAME}.pid
and then you can start fso-gpsd by
/etc/init.d/fso-gpsd start
method 3 using a GUI
install http://wiki.openmoko.org/wiki/ShortOm
and configure it to start/stop fso-gps using method 2
Known issues
As all "testing" version, there are some minor problems.
Corrupted data base: if you receive a call from a number what is not composed of "numbers" (ie #923), the database of phone call is corrupted. The consequences are:
- error when trying to open the phonelog database)
- impossibility to answer an incoming phonecall
Solution: cleaning database
killall ophonekitd rm /var/db/phonelog.db
and restart your telephone (the 1rst incoming phonecall can be lost, but at the second one its OK).
