* 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.

  1. 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.
  2. No icons in Illume.
    Check in /usr/share/applications/ the category of the *.desktop files. It should be Applications.
  3. 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”.
  4. Mofi does not show any networks.
    Activate Wifi in the settings first.
  5. 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/sounds and 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.

  6. Volume of caller is too low.
    Have a look into this post.
  7. 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.
  8. TangoGPS does not download tiles from Google Maps.
    The wiki of openmoko describes a solution.
  9. Enlightenment constantly consumes 20% CPU.
    Delete the dropshadow directory in usr/lib/enlightenment/modules/ and acknowledge the error message after executing /etc/init.d/xserver-nodm restart
  10. 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.
  11. opkg crashes with a Segmentation fault.
    Shut down the X server with /etc/init.d/xserver-nodm stop to free up memory. As alternative or if it still crashes, consider to provide a swap file or swapt partition on the uSD card.
  12. phonelog crashes
    If you start phonelog in the terminal and get something like this (after export 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’ objects

    You can replace all call[4] occurrences with str(call[4]) in /usr/bin/phonelog to 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 delete rm /var/db/phonelog.db and either restart the phone or ophonekitd.

  13. 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.
  14. 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.py in the terminal.
  15. 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.
  16. To change the brightness of the backlight by script, do a echo <brightnessLevel> > /sys/class/backlight/gta02-bl/brightness with <brightnessLevel> between 0 (darkest = off) and 255 (brightest).
  17. To prevent the Freerunner from suspending while e.g. tangoGPS is running, copy this script into /usr/bin and change the Exec entry in /usr/share/applications/tangogps.desktop to tangogpsStart.sh.
  18. 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/
  19. 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



One Response to “tips and tricks for shr on freerunner”

  1. KaZeR Says:

    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]

Trackback URI | Comments RSS

Leave a Reply


RSS Feeds:

Search:


Pages:

Categories:

Archives: