User:Vanous

From Openmoko

(Difference between revisions)
Jump to: navigation, search
Line 107: Line 107:
  
 
[http://vanous.penguin.cz/files/om/navi.sh Navit start/stop script] (start/stop gpsd daemon, disable/enable screen dimming)
 
[http://vanous.penguin.cz/files/om/navi.sh Navit start/stop script] (start/stop gpsd daemon, disable/enable screen dimming)
 +
 +
<pre>
 +
#!/bin/sh
 +
 +
xrandr -o 1
 +
fso-gpsd
 +
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy
 +
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout idle_dim 0 
 +
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout suspend 0
 +
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy
 +
 +
navit
 +
 +
xrandr -o 0
 +
killall fso-gpsd
 +
#mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy
 +
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout idle_dim 1 
 +
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout suspend 6
 +
 +
</pre>
  
 
[http://vanous.penguin.cz/files/om/navit.xml My Navit conf]
 
[http://vanous.penguin.cz/files/om/navit.xml My Navit conf]

Revision as of 17:59, 20 January 2009

Contents

Czech national settings for Neo Freerunner

all settings apply for current (January 2009) SHR (SHR is FSO based)

comments? here


Why is localizing good for you?

  • displays time and date in your national settings
  • displays local time instead of universal time
  • applications will show translated interface (if available)
  • some applications require correct lang settings for correct localized function (speech will speak in your language, navit will search throuch database of your country)


Time zone

opkg install tzdata-europe

ln -sf /usr/share/zoneinfo/Europe/Prague /etc/timezone

ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime

hwclock --systohc


Locales

opkg install glibc-binary-localedata-cs-cz

For console set this in /etc/profile :

export LANG=cs_CZ
export LC_ALL=cs_CZ


For X, go to Wrench (Settings) -> Language ->Language Settings -> Choose: Čeština


Gprs

O2 flat rate

Scripts for framework (FSO, SHR, Debian). (Not for ASU, OM2008)

Start script
#!/bin/sh
APN="internet"
USERNAME="x"
PASSWORD="x"
BUSNAME="org.freesmartphone.frameworkd"
OBJECTPATH="/org/freesmartphone/GSM/Device"
METHODNAME="org.freesmartphone.GSM.PDP.ActivateContext"
mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN "$USERNAME" "$PASSWORD"
Stop script
#!/bin/sh
BUSNAME="org.freesmartphone.frameworkd"
OBJECTPATH="/org/freesmartphone/GSM/Device"
METHODNAME="org.freesmartphone.GSM.PDP.DeactivateContext"
mdbus -s $BUSNAME $OBJECTPATH $METHODNAME

Translations

Here are some translated .mo files that i gathered, place them into /usr/share/locale/cs/LC_MESSAGES/


http://vanous.penguin.cz/files/om/enlightenment.mo Enlightenment/Illume

http://vanous.penguin.cz/files/om/tangogps.mo TangoGPS

Navit translation is already in SHR


SMS delivery confirmation codes

Place on the beggining of each SMS

Vodafone: *n# (needs confirming)
O2: YYYY
T-mobile: *stav# (needs confirming)


Navit maps

http://vanous.penguin.cz/files/om/czech_republic_navit.bin Openstreetmap of CZ, generated December 2008, 57MB. Place into ~/.navit

My Navit conf with the above map configured. Place into ~/.navit

Dictionary for Illume keyboard

temporary solution:

echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic

switch to it after every reboot :) and the None.dic will autolearn and save it in /.e/e/dicts-dynamic/personal.dic

Other stuff

My TangoGPS tracks

FDSubmenu (icon enhancement)


Navit

Navit start/stop script (start/stop gpsd daemon, disable/enable screen dimming)

#!/bin/sh

xrandr -o 1
fso-gpsd
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout idle_dim 0  
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout suspend 0
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy

navit

xrandr -o 0
killall fso-gpsd
#mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout idle_dim 1  
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout suspend 6

My Navit conf

SHR Customization

http://shr.bearstech.com/trac/wiki/Tweaks

echo src navit http://download.navit-project.org/navit/openmoko/svn >/etc/opkg/navit-feed.conf

opkg update

opkg install navit libgps16 mc

copy cz map

copy Data

echo ppp-generic > /etc/modutils/ppp-generic

update-modules

echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic

opkg upgrade

set time from desktop:

ssh root@openmoko "date -u -s `date -u +%m%d%H%M%Y.%S`"

Personal tools

Czech national settings for Neo Freerunner

all settings apply for current (January 2009) SHR (SHR is FSO based)

comments? here


Why is localizing good for you?

  • displays time and date in your national settings
  • displays local time instead of universal time
  • applications will show translated interface (if available)
  • some applications require correct lang settings for correct localized function (speech will speak in your language, navit will search throuch database of your country)


Time zone

opkg install tzdata-europe

ln -sf /usr/share/zoneinfo/Europe/Prague /etc/timezone

ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime

hwclock --systohc


Locales

opkg install glibc-binary-localedata-cs-cz

For console set this in /etc/profile :

export LANG=cs_CZ
export LC_ALL=cs_CZ


For X, go to Wrench (Settings) -> Language ->Language Settings -> Choose: Čeština


Gprs

O2 flat rate

Scripts for framework (FSO, SHR, Debian). (Not for ASU, OM2008)

Start script
#!/bin/sh
APN="internet"
USERNAME="x"
PASSWORD="x"
BUSNAME="org.freesmartphone.frameworkd"
OBJECTPATH="/org/freesmartphone/GSM/Device"
METHODNAME="org.freesmartphone.GSM.PDP.ActivateContext"
mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN "$USERNAME" "$PASSWORD"
Stop script
#!/bin/sh
BUSNAME="org.freesmartphone.frameworkd"
OBJECTPATH="/org/freesmartphone/GSM/Device"
METHODNAME="org.freesmartphone.GSM.PDP.DeactivateContext"
mdbus -s $BUSNAME $OBJECTPATH $METHODNAME

Translations

Here are some translated .mo files that i gathered, place them into /usr/share/locale/cs/LC_MESSAGES/


http://vanous.penguin.cz/files/om/enlightenment.mo Enlightenment/Illume

http://vanous.penguin.cz/files/om/tangogps.mo TangoGPS

Navit translation is already in SHR


SMS delivery confirmation codes

Place on the beggining of each SMS

Vodafone: *n# (needs confirming)
O2: YYYY
T-mobile: *stav# (needs confirming)


Navit maps

http://vanous.penguin.cz/files/om/czech_republic_navit.bin Openstreetmap of CZ, generated December 2008, 57MB. Place into ~/.navit

My Navit conf with the above map configured. Place into ~/.navit

Dictionary for Illume keyboard

temporary solution:

echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic

switch to it after every reboot :) and the None.dic will autolearn and save it in /.e/e/dicts-dynamic/personal.dic

Other stuff

My TangoGPS tracks

FDSubmenu (icon enhancement)


Navit

Navit start/stop script (start/stop gpsd daemon, disable/enable screen dimming)

#!/bin/sh

xrandr -o 1
fso-gpsd
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout idle_dim 0  
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout suspend 0
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy

navit

xrandr -o 0
killall fso-gpsd
#mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetState busy
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout idle_dim 1  
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout suspend 6

My Navit conf

SHR Customization

http://shr.bearstech.com/trac/wiki/Tweaks

echo src navit http://download.navit-project.org/navit/openmoko/svn >/etc/opkg/navit-feed.conf

opkg update

opkg install navit libgps16 mc

copy cz map

copy Data

echo ppp-generic > /etc/modutils/ppp-generic

update-modules

echo "" > /usr/lib/enlightenment/modules/illume/dicts/None.dic

opkg upgrade

set time from desktop:

ssh root@openmoko "date -u -s `date -u +%m%d%H%M%Y.%S`"