* tips and tricks for shr on freerunner
Posted on April 22nd, 2009 by Alex. Filed under openmoko.
In this post I would like to collect some tips and tricks copied from the Shr-devel mailing list so that I do not have to search everytime for a solution in the list. Basically I started to collect links to solutions for problems, I experienced so far and I though, it might be useful for others too. This list might change over the time or get expanded. I will try to remove old tricks and tips which do not apply to the current testing branch anymore. But if you found an outdated entry, let me know.
- Incoming SMS are not displayed.
mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.RetrieveMessagebook 'all'which marks them all as read, so that they can be displayed. - No icons in Illume.
Check in/usr/share/applications/the category of the*.desktopfiles. It should be Applications. - AUX button does not lock display.
Have a look into the illume settings (wrench in the shelf) -> Input -> Key Bindings and bind the AUX button to “Desktop Simple Lock”. - Mofi does not show any networks.
Activate Wifi in the settings first. - When I receive a call, it takes several seconds after hitting the “Accept” button before the call is actually accepted.
There is some delay in the framewark. There is no workaround currently. However it can be eased a little bit by using ringtone encoded in WAV (e.g. Mono, 11025Hz) which reduces the delay. Place the ringtone in/usr/share/soundsand select it in Settings -> Profiles.To convert a WAV file to Mono open it in e.g. Audacity (Tracks -> Stereo to Mono) and save it. Use
mplayer -vo null -vc dummy -af volume=10,resample=11025:0:1 -ao pcm:waveheader:file="outputFile.wav" "inputFile.wav"to set the sample rate and to change the volume. - Volume of caller is too low.
Have a look into this post. - How to backup the NAND before trying out a new release?
Have a look here. However it might be difficult to access the jffs image in case you need a configuration file. So it is a good idea to backup /etc and self written programs in /usr/bin to a separate tar file to ease the access. - TangoGPS does not download tiles from Google Maps.
The wiki of openmoko describes a solution. - Enlightenment constantly consumes 20% CPU.
Delete thedropshadowdirectory inusr/lib/enlightenment/modules/and acknowledge the error message after executing/etc/init.d/xserver-nodm restart - In the current unstable release (20090617) the scenarii (scenarios) are not in
/usr/share/openmoko/scenarios/, but in/usr/share/shr/scenarii/. The setting for the directory can be found in/etc/frameworkd.conf. - opkg crashes with a Segmentation fault.
Shut down the X server with/etc/init.d/xserver-nodm stopto free up memory. As alternative or if it still crashes, consider to provide a swap file or swapt partition on the uSD card. - phonelog crashes
If you startphonelogin the terminal and get something like this (afterexport DISPLAY=:0):phonelog Phonelog
Initialized global vars
Initializing gtk interface
Showing main window
Upright
Traceback (most recent call last):
File “/usr/bin/phonelog”, line 741, in
outgoing.populateList()
File “/usr/bin/phonelog”, line 191, in populateList
print “There’s a corruption in the DB, empty phone number!” + “(” + call[4] + “)”
TypeError: cannot concatenate ‘str’ and ‘int’ objectsYou can replace all
call[4]occurrences withstr(call[4])in/usr/bin/phonelogto figure out the empty phone number. After that you can delete the problem causing entry from the data base.
If that is too much work and you do not care about the content of the data base anyway, you can also deleterm /var/db/phonelog.dband either restart the phone orophonekitd. - Provider information (Service Data) is not displayed.
Some providers send a message through the network stating, how much was the cost of the last call or SMS and how much balance is left (if prepaid). However it seems that sometimes this message comes and sometimes it does not. However, if the balance is checked after booting the phone and registering to the network (that is forcing this kind of message), the message is received after every call/SMS. - To check the currently used scenario, you can use this quick and dirty script. Download it to your phone, make it executable (
chmod +x scenario.py) and execute it in the state, you want to figure out (e.g. during a call) by typing./scenario.pyin the terminal. - A new black/green theme has been created. It is much faster than the original SHR theme, since many fancy icons have been removed from it. Installation manual and download.
- To change the brightness of the backlight by script, do a
echo <brightnessLevel> > /sys/class/backlight/gta02-bl/brightnesswith<brightnessLevel>between 0 (darkest = off) and 255 (brightest). - To prevent the Freerunner from suspending while e.g. tangoGPS is running, copy this script into
/usr/binand change theExecentry in/usr/share/applications/tangogps.desktoptotangogpsStart.sh. - If you are curious where the module for shr-settings are located to derive some hints to configure the system with your own scripts, have a look in
/usr/lib/python2.6/site-packages/shr_settings_modules/ - Currently there is a bug in my shr-settings: I cannot change the ringtone nor its volume. To change these settings manually, edit the file in
/etc/freesmartphone/opreferences/conf/phone/ring.yaml
July 7th, 2009 at 10:38 am
You might be interested in http://trac.shr-project.org/trac/wiki/Tweaks
It could be better to have a central page with up to date tips
[REPLY]