User:Lindi

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m (update)
 
(51 intermediate revisions by 2 users not shown)
Line 1: Line 1:
On this page I try to describe how I use my phone so that others can
+
Last reviewed on: 2011-09-26
learn and suggest improvements.
+
  
= Hardrware =
+
 
* gta02V6 with [buzzfix|http://lindi.iki.fi/lindi/openmoko/buzz-fix/]
+
This page describes how I use my phone. Feel feel to copy these ideas
 +
and suggest improvements. You can reach me at timo.lindfors@iki.fi or as lindi- on ircnet, freenode or oftc. Please consider adding Cc: to e.g. smartphones-userland@linuxtogo.org if you feel that also others might want to see your question/comment.
 +
 
 +
Btw, [http://wiki.openmoko.org/wiki/User:JohnSullivan John Sullivan] and [http://wiki.openmoko.org/wiki/User:TimoJyrinki Timo Jyrinki] have similar pages.
 +
 
 +
= Hardware =
 +
* gta02V7 (previously used [http://lindi.iki.fi/lindi/openmoko/buzz-fix/ buzzfixed] gta02V5)
 
* invisible shield(tm) for the screen
 
* invisible shield(tm) for the screen
 +
* 4 GB microSD card
 +
* [http://www.dealextreme.com/details.dx/sku.688 Universal USB Power Car Adapter (1000mA)]
 +
* [http://www.dealextreme.com/details.dx/sku.3060 Rechargeable USB Emergency Power Backup Pack 2400mAh]
 +
* [http://www.dealextreme.com/details.dx/sku.3060 Rechargeable USB Emergency Power Backup Pack 1000mAh]
 +
* USB gender changer for connecting USB devices to the phone without special cables
 +
* mobile USB hub
 +
* Huawei E169 USB 3G stick
 +
* multiple SIM cards from my provider. I can answer calls with both my nokia phone and openmoko but only one phone can be configured to receive SMS.
 +
* [http://www.dealextreme.com/details.dx/sku.13526 Cable Style Dual-Power 1000mA USB 2.0 4-Port Hub], lets me charge the phone and still have the phone work as an USB host
 +
* [http://www.dealextreme.com/details.dx/sku.5859 USB to RS232 Serial Port Adapter (Transparent Green)]
 +
* [http://www.dealextreme.com/details.dx/sku.26780 USB A-Female to Mini USB 5-Pin Female Adapter], for connecting wall charger to the USB hub
 +
* openmoko debug board V3
 +
* openmoko headset, not used much since I don't want to break it and buzzfix does not work with it anyway
 +
* gta02V5 with buzzfix
 +
* gta02V7 with broken AUX button
 +
* four openmoko batteries
 +
* [http://www.dealextreme.com/details.dx/sku.2797 USB 10/100 RJ45 Ethernet Network Adapter Dongle]. Beware, this triggers a bug ([http://docs.openmoko.org/trac/ticket/2310 #2310 charging N900 with gta02 causes the gta02 to overheat]) but can be worked around if you supply power to USB bus by some other means (for example with the "Cable Style Dual-Power 1000mA USB 2.0 4-Port Hub" mentioned above).
 +
* full-body invisible shield(tm) installed to the second phone
 +
* [http://www.dealextreme.com/details.dx/sku.3541 4-Pin 2.5mm to 3.5mm Stereo Audio Jack Convertor]
 +
* [http://www.dealextreme.com/details.dx/sku.22475 Virtual 5.1-Surround USB 2.0 External Sound Card]
 +
* [http://www.samsontech.com/products/productpage.cfm?prodID=1878 C03U - Multi-Pattern USB Studio Condenser Microphone] (only tested once, I don't own one)
 +
 +
= Software =
 +
 +
== Boot loader ==
 +
* qi 20100107-1 (now in debian sid!)
 +
* mmcblk0p1 and mmcblk0p2 both have /boot so that I can have a fallback kernel with Qi just in case
 +
 +
== Kernel ==
 +
* linux-image-2.6.34-openmoko-gta02    20101212.git049b71de-2  from pkg-fso
 +
 +
== Userland ==
 +
 +
Generally I try to use Debian GNU/Linux unstable with as little
 +
software from other sources as possible. I'm quite conservative and
 +
try to stick to known-to-work programs (currently unsure about
 +
bleeding edge stuff like E17 window manager, vala programming language
 +
and Qi).
 +
 +
Also note that I run my X programs as a normal user. I used to run Xorg as non-root too but that [http://lists.debian.org/debian-x/2011/02/msg01110.html|did not work very well].
 +
 +
=== programs from debian main ===
 +
* Xorg
 +
* xserver-xorg-video-fbdev for reliable graphics output (xserver-xorg-video-glamo will hopefully replace this soon! [http://docs.openmoko.org/trac/ticket//2294 #2294 xf86-video-glamo: stopping X can crash the whole system (not even JTAG works)])
 +
* xdm as display manager
 +
* xvkbd as virtual keyboard
 +
* xterm as terminal emulator
 +
* elinks and midori for browsing the web
 +
* ssh to connect home to IRC and use email
 +
* icewm as window manager
 +
* gpsd for talking to GPS
 +
* watchdog for making sure that I can recover from kernel crash without having to remove battery.
 +
* dates as calendar
 +
* omhacks for accessing openmoko specific hardware features
 +
 +
=== programs for reliable GSM calls ===
 +
I do not use whole FSO frameworkd for reliability reasons involved around dbus.  At present I also don't use the debian packages of frameworkd so that I can more easily test different upstream versions. NOTE: many programs here are not documented and not really ready to be packaged.
 +
 +
Related bug reports:
 +
* [http://trac.freesmartphone.org/ticket/348 #348: provide a way to debug framework when it goes to a state where it does not respond to dbus]
 +
* [https://bugs.freedesktop.org/show_bug.cgi?id=19796 #19796: dbus_connection_send_with_reply + usage of pending have severe timing issues]
 +
* [http://docs.openmoko.org/trac/ticket/2264 #2264: Heavy GPRS traffic causes a Calypso crash]
 +
* [http://docs.openmoko.org/trac/ticket/2291 #2291: AT+CCLK sometimes returns corrupted time]
 +
* [http://docs.openmoko.org/trac/ticket/1024 #1024: gsm modem oscillating between registrated / not-registrated]
 +
 +
The actual software in use:
 +
 +
* gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko11b1 firmware for the Calypso GSM device
 +
* [http://iki.fi/lindi/openmoko/gsmhandset-lindi.state gsmhandset-lindi.state] for configuring ALSA for calls.
 +
* gsm0710muxd abcbcd7cc532a8834906de3fc24c8f8fe7643cd4 for multiplexing data to Calypso
 +
* ogsmd module of frameworkd e6c36e917cc75809f60fa587b68bbf6be0c5bf58 for actually talking to Calypso (Note that I am not using other modules of frameworkd for reliability reasons)
 +
* [http://iki.fi/lindi/darcs/kapula/ kapula] for making calls. I start it with options --popup-sms --no-oeventsd --no-ousaged --logfile --no-request-gsm-on-startup
 +
* [http://iki.fi/lindi/openmoko/answering-machine answering-machine] for receiving calls and playing the ringtone. This lets me answer calls with AUX button even if X is dead.
 +
* [http://iki.fi/lindi/openmoko/gsm-watchdog gsm-watchdog] for periodically checking that everything works and forcibly restarting gsm0710muxd, ogsmd and answering-machine if something is wrong.
 +
* [http://iki.fi/lindi/openmoko/susp a really messy suspend script] that tells ogsmd to tell Calypso to be quiet when we are in suspend.
 +
* [http://iki.fi/lindi/openmoko/dump-sms dump-sms] for reading SMS and smsl for sending then via the web page of my operator. As you can imagine I do not use SMS much.
 +
 +
=== Useful tools ===
 +
* [http://iki.fi/lindi/openmoko/touchscreen-lock.c touchscreen-lock] for locking the screen
 +
* FIXME: talk about RTC clock accuracy issues
 +
 +
= Open questions =
 +
 +
* What is a clean way to start answering-machine on boot as normal user? I want to run it as my normal user since then call logs can be written to my home directory.
 +
 +
= Development =
 +
 +
* [http://lindi.iki.fi/lindi/cgi-bin/openmoko-bugs.py My unofficial search to bugs.openmoko.org that does regular expressions]
 +
 +
= Questions and answers =
 +
 +
; On your user page you state that you only use ogsmd from frameworkd -- how do you disable the rest (are you setting loads of "disable = 1" lines in frameworkd.conf?) : I have my own /etc/init.d/ogsmd that uses start-stop-daemon to invoke "frameworkd -s ogsmd"
  
== fff ==
 
* 2
 
* 4
 
  
 +
= Deprecated stuff =
  
 +
== Editing wiki using mvs (BROKEN, NO TIME TO DEBUG) ==
  
 
  mvs login -v -d wiki.openmoko.org -u lindi -p `cat ~/.passwd/osm-wiki` -w 'index.php'
 
  mvs login -v -d wiki.openmoko.org -u lindi -p `cat ~/.passwd/osm-wiki` -w 'index.php'

Latest revision as of 22:09, 17 March 2013

Last reviewed on: 2011-09-26


This page describes how I use my phone. Feel feel to copy these ideas and suggest improvements. You can reach me at timo.lindfors@iki.fi or as lindi- on ircnet, freenode or oftc. Please consider adding Cc: to e.g. smartphones-userland@linuxtogo.org if you feel that also others might want to see your question/comment.

Btw, John Sullivan and Timo Jyrinki have similar pages.

Contents

[edit] Hardware

[edit] Software

[edit] Boot loader

  • qi 20100107-1 (now in debian sid!)
  • mmcblk0p1 and mmcblk0p2 both have /boot so that I can have a fallback kernel with Qi just in case

[edit] Kernel

  • linux-image-2.6.34-openmoko-gta02 20101212.git049b71de-2 from pkg-fso

[edit] Userland

Generally I try to use Debian GNU/Linux unstable with as little software from other sources as possible. I'm quite conservative and try to stick to known-to-work programs (currently unsure about bleeding edge stuff like E17 window manager, vala programming language and Qi).

Also note that I run my X programs as a normal user. I used to run Xorg as non-root too but that not work very well.

[edit] programs from debian main

  • Xorg
  • xserver-xorg-video-fbdev for reliable graphics output (xserver-xorg-video-glamo will hopefully replace this soon! #2294 xf86-video-glamo: stopping X can crash the whole system (not even JTAG works))
  • xdm as display manager
  • xvkbd as virtual keyboard
  • xterm as terminal emulator
  • elinks and midori for browsing the web
  • ssh to connect home to IRC and use email
  • icewm as window manager
  • gpsd for talking to GPS
  • watchdog for making sure that I can recover from kernel crash without having to remove battery.
  • dates as calendar
  • omhacks for accessing openmoko specific hardware features

[edit] programs for reliable GSM calls

I do not use whole FSO frameworkd for reliability reasons involved around dbus. At present I also don't use the debian packages of frameworkd so that I can more easily test different upstream versions. NOTE: many programs here are not documented and not really ready to be packaged.

Related bug reports:

The actual software in use:

  • gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko11b1 firmware for the Calypso GSM device
  • gsmhandset-lindi.state for configuring ALSA for calls.
  • gsm0710muxd abcbcd7cc532a8834906de3fc24c8f8fe7643cd4 for multiplexing data to Calypso
  • ogsmd module of frameworkd e6c36e917cc75809f60fa587b68bbf6be0c5bf58 for actually talking to Calypso (Note that I am not using other modules of frameworkd for reliability reasons)
  • kapula for making calls. I start it with options --popup-sms --no-oeventsd --no-ousaged --logfile --no-request-gsm-on-startup
  • answering-machine for receiving calls and playing the ringtone. This lets me answer calls with AUX button even if X is dead.
  • gsm-watchdog for periodically checking that everything works and forcibly restarting gsm0710muxd, ogsmd and answering-machine if something is wrong.
  • a really messy suspend script that tells ogsmd to tell Calypso to be quiet when we are in suspend.
  • dump-sms for reading SMS and smsl for sending then via the web page of my operator. As you can imagine I do not use SMS much.

[edit] Useful tools

  • touchscreen-lock for locking the screen
  • FIXME: talk about RTC clock accuracy issues

[edit] Open questions

  • What is a clean way to start answering-machine on boot as normal user? I want to run it as my normal user since then call logs can be written to my home directory.

[edit] Development

[edit] Questions and answers

On your user page you state that you only use ogsmd from frameworkd -- how do you disable the rest (are you setting loads of "disable = 1" lines in frameworkd.conf?) 
I have my own /etc/init.d/ogsmd that uses start-stop-daemon to invoke "frameworkd -s ogsmd"


[edit] Deprecated stuff

[edit] Editing wiki using mvs (BROKEN, NO TIME TO DEBUG)

mvs login -v -d wiki.openmoko.org -u lindi -p `cat ~/.passwd/osm-wiki` -w 'index.php'
emacs User:lindi.wiki
mvs update User:lindi.wiki
mvs commit -m "test commit" User:Lindi.wiki
MVS_BROWSER=dillo mvs preview -m "test commit" User:Lindi.wiki

~/.emacs

(setq load-path (cons "~/.elisp" load-path))

(autoload 'wikipedia-mode "wikipedia-mode.el"
"Major mode for editing documents in Wikipedia markup." t)

(add-to-list 'auto-mode-alist
'("\\.wiki\\'" . wikipedia-mode))

http://www.emacswiki.org/cgi-bin/wiki/download/wikipedia-mode.el

Personal tools

On this page I try to describe how I use my phone so that others can learn and suggest improvements.

Hardrware

fff

  • 2
  • 4


mvs login -v -d wiki.openmoko.org -u lindi -p `cat ~/.passwd/osm-wiki` -w 'index.php'
emacs User:lindi.wiki
mvs update User:lindi.wiki
mvs commit -m "test commit" User:Lindi.wiki
MVS_BROWSER=dillo mvs preview -m "test commit" User:Lindi.wiki

~/.emacs

(setq load-path (cons "~/.elisp" load-path))

(autoload 'wikipedia-mode "wikipedia-mode.el"
"Major mode for editing documents in Wikipedia markup." t)

(add-to-list 'auto-mode-alist
'("\\.wiki\\'" . wikipedia-mode))

http://www.emacswiki.org/cgi-bin/wiki/download/wikipedia-mode.el