Howto make Navit usable for daily use

umaxx umaxx at oleco.net
Mon Sep 15 00:16:53 CEST 2008


On Sun, 14 Sep 2008 08:38:10 -0700 (PDT)
zappi <thezappi at gmail.com> wrote:

> 
> 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. :)
> 

another solution (which is working at least for me) is to use navit with
flite instead of espeak+speech-dispatcher (here on 2008-asu)





More information about the community mailing list