Howto make Navit usable for daily use

zappi thezappi at gmail.com
Sun Sep 14 17:38:10 CEST 2008


the most anoying thing about navit is, that the speech-dispatcher blocks the
audio when fr wake up  http://docs.openmoko.org/trac/ticket/1599 (bug #1599) 
from suspend. One way to resov it is do disable speech-disptcher at boot
time.

update-rc.d -f speech-dispatcher remove 

but navit makes no real fun without speech-dispatcher running, so i add to
the navit start script at /usr/bin/navit two things. at the top of the file
i'd add.

/etc/init.d/speech-dispatcher start

at the bottom of the file right after navit.real $* i'd add:

&& /etc/init.d/speech-dispatcher stop

Here is the complete startscript that i use for starting navit (including
the  http://wiki.openmoko.org/wiki/Navit#Setting_up_Navit LANG  fix)

--------------------------------------------
#! /bin/sh
#
# Copyright Matthias Hentges <devel at hentges.net> (c) 2008
# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the
license)
#
# Filename: navit.launcher
# Date: 20080105 (YMD)
#
###########################################
##
#
# 20080105 - v0.0.1	- Initial release
/etc/init.d/speech-dispatcher start
export LANG=en_EN.utf8

# On devices with low memory (< 512Mb?) Navit will segfault on start.
# This can be worked around by doing
# "echo 1 > /proc/sys/vm/overcommit_memory"

if test "`cat /proc/meminfo | grep ^MemTotal | awk '{print $2}'`" -lt
"500000"
then
	if test "$USER" = "root"
	then
		echo "Enabling low-mem workaround..."
		echo 1 > /proc/sys/vm/overcommit_memory
	else
		echo "I need root-privs to enable the low-mem workaround!"
	fi
fi

navit.real $* && /etc/init.d/speech-dispatcher stop
----------------------------------------------

this one works for me for the last 2 days maybe it help other to have more
fun with the fr. :)

zappi


-- 
View this message in context: http://n2.nabble.com/Howto-make-Navit-usable-for-daily-use-tp1088795p1088795.html
Sent from the Openmoko Community mailing list archive at Nabble.com.





More information about the community mailing list