User talk:Kapiteined

From Openmoko

(Difference between revisions)
Jump to: navigation, search
Line 18: Line 18:
  
 
In the scripts, you only have to change the MY_WAY variable and add your own scripts.
 
In the scripts, you only have to change the MY_WAY variable and add your own scripts.
 
 
<pre>
 
<pre>
 
MENU_ITEM[${N}]="${MY_WAY}/scripts/gsm.sh";            NAME[${N}]="GSM";              N=$(( ${N} + 1 ))
 
MENU_ITEM[${N}]="${MY_WAY}/scripts/gsm.sh";            NAME[${N}]="GSM";              N=$(( ${N} + 1 ))
Line 26: Line 25:
 
MENU_ITEM[${N}]="${MY_WAY}/scripts/screen.sh";          NAME[${N}]="Screen";            N=$(( ${N} + 1 ))
 
MENU_ITEM[${N}]="${MY_WAY}/scripts/screen.sh";          NAME[${N}]="Screen";            N=$(( ${N} + 1 ))
 
</pre>
 
</pre>
 +
As you can see, the layout is really simple, first you put the name of your script, and the name of the "button" shown on your screen.
 +
 +
Font size is automatically calculated based on the number of letters to show. You might need to add a space to the name sometimes, to prevent words beeing cut-off at the end.
 +
 +
 +
 +
--------------------------------------------------------------------------------------------------------------------------------------
  
  

Revision as of 13:42, 4 August 2009

Here You can see a video of my freerunner using menu's.

One of the things i did not like about the freerunner was the need for a stylus for the simplest tasks

If you need to use mdbus commands you need to type long strings on a small screen with a stylus.

So i ended up making some scripts, which was already better, but now i had to type the scriptname with the stylus.

This also was not satisfactory, so i wrote some scripts that pop-up xmessages and let you perform any action you can script with a simple button.

I have put up all the scripts you see in the video online Here.

Please untar it in /tmp and make sure it won't conflict with any file in your system.

You need to change the MY_WAY variable in the scripts, to reflect the base path where you put the scripts.

You start it by running menu_master.sh

In the scripts, you only have to change the MY_WAY variable and add your own scripts.

MENU_ITEM[${N}]="${MY_WAY}/scripts/gsm.sh";             NAME[${N}]="GSM";               N=$(( ${N} + 1 ))
MENU_ITEM[${N}]="${MY_WAY}/scripts/network.sh";         NAME[${N}]="Network";           N=$(( ${N} + 1 ))
MENU_ITEM[${N}]="${MY_WAY}/scripts/gps.sh";             NAME[${N}]="GPS";               N=$(( ${N} + 1 ))
MENU_ITEM[${N}]="${MY_WAY}/scripts/multimedia.sh";      NAME[${N}]="Multimedia";        N=$(( ${N} + 1 ))
MENU_ITEM[${N}]="${MY_WAY}/scripts/screen.sh";          NAME[${N}]="Screen";            N=$(( ${N} + 1 ))

As you can see, the layout is really simple, first you put the name of your script, and the name of the "button" shown on your screen.

Font size is automatically calculated based on the number of letters to show. You might need to add a space to the name sometimes, to prevent words beeing cut-off at the end.




This is a collection of scripts to obtain a GSM cellid, get the aprox loction based on the info of opencellid.org and get agps data about the aproximate location.

You also can log the gsm cellid's and after the trip submit the found cells back to opencellid.org with the script parse_logs.sh

This is working on om2008.12.

You need the gps-utils package, font-bitstream-100dpi, encodings, font-alias, font-util, gsm0710muxd

I use xmessage to have a rough way to create "menu's".

The default fontsize is to small to my likings, so i installed some aditional fonts and set the xmessage font size in

~/.Xdefaults-`hostname`

xmessage*font: -*-*-*-*-*-*-30-*-*-*-*-*-iso8859-1

xterm*font: -*-*-*-*-*-*-25-*-*-*-*-*-iso8859-1

And add a font path to the X server in the file /etc/X11/Xserver

To use the scripts, untar the tarball in /tmp and check if none of the files from the tarball is conflicting with your current files.

After verifying and makeing backups if necesary, you can install it by untarring the tarball in /

After all this you need to reboot the FR once to activate all the new settings.

To use it, simply click the gps icon on your desktop and in the following order:

click agps -> this will try to get your location based on the current cellid and get agps data for that location

click dump nmea -> this will log the gps data to a local file during your trip

click log GSM -> this will log the cellid's during your trip


To obtain the cellid and still being able to make phone calls, you need the gsm0710muxd package.

With the default /etc/X11/Xsession.d/89qtopia file it wasn't working for me,

so i provided my file in the tarball as well.

The local clock must be synchronized to link the cellid to the location.

to do this i use the gpsd as a clock source for ntpd.

add the following lines to /etc/ntp.conf:

#LinuxPPS: GPS + PPS (comment out either this whole section or the next one)

server 127.127.20.0 minpoll 4 prefer

fudge 127.127.20.0 flag3 1 flag2 0

# SHM: PPS filtered mean (comment out either this whole section or the previous one)

server 127.127.28.0 minpoll 4 prefer

fudge 127.127.28.0 refid PPS flag3 1

set the clock to the current time and make sure you start the ntpd.


I realize that this "manual" needs a lot of improvement, so please help me improving it

Kind regards,

Ed

Personal tools

Here You can see a video of my freerunner using menu's.

One of the things i did not like about the freerunner was the need for a stylus for the simplest tasks

If you need to use mdbus commands you need to type long strings on a small screen with a stylus.

So i ended up making some scripts, which was already better, but now i had to type the scriptname with the stylus.

This also was not satisfactory, so i wrote some scripts that pop-up xmessages and let you perform any action you can script with a simple button.

I have put up all the scripts you see in the video online Here.

Please untar it in /tmp and make sure it won't conflict with any file in your system.

You need to change the MY_WAY variable in the scripts, to reflect the base path where you put the scripts.

You start it by running menu_master.sh

In the scripts, you only have to change the MY_WAY variable and add your own scripts.

MENU_ITEM[${N}]="${MY_WAY}/scripts/gsm.sh";             NAME[${N}]="GSM";               N=$(( ${N} + 1 ))
MENU_ITEM[${N}]="${MY_WAY}/scripts/network.sh";         NAME[${N}]="Network";           N=$(( ${N} + 1 ))
MENU_ITEM[${N}]="${MY_WAY}/scripts/gps.sh";             NAME[${N}]="GPS";               N=$(( ${N} + 1 ))
MENU_ITEM[${N}]="${MY_WAY}/scripts/multimedia.sh";      NAME[${N}]="Multimedia";        N=$(( ${N} + 1 ))
MENU_ITEM[${N}]="${MY_WAY}/scripts/screen.sh";          NAME[${N}]="Screen";            N=$(( ${N} + 1 ))

As you can see, the layout is really simple, first you put the name of your script, and the name of the "button" shown on your screen.

Font size is automatically calculated based on the number of letters to show. You might need to add a space to the name sometimes, to prevent words beeing cut-off at the end.




This is a collection of scripts to obtain a GSM cellid, get the aprox loction based on the info of opencellid.org and get agps data about the aproximate location.

You also can log the gsm cellid's and after the trip submit the found cells back to opencellid.org with the script parse_logs.sh

This is working on om2008.12.

You need the gps-utils package, font-bitstream-100dpi, encodings, font-alias, font-util, gsm0710muxd

I use xmessage to have a rough way to create "menu's".

The default fontsize is to small to my likings, so i installed some aditional fonts and set the xmessage font size in

~/.Xdefaults-`hostname`

xmessage*font: -*-*-*-*-*-*-30-*-*-*-*-*-iso8859-1

xterm*font: -*-*-*-*-*-*-25-*-*-*-*-*-iso8859-1

And add a font path to the X server in the file /etc/X11/Xserver

To use the scripts, untar the tarball in /tmp and check if none of the files from the tarball is conflicting with your current files.

After verifying and makeing backups if necesary, you can install it by untarring the tarball in /

After all this you need to reboot the FR once to activate all the new settings.

To use it, simply click the gps icon on your desktop and in the following order:

click agps -> this will try to get your location based on the current cellid and get agps data for that location

click dump nmea -> this will log the gps data to a local file during your trip

click log GSM -> this will log the cellid's during your trip


To obtain the cellid and still being able to make phone calls, you need the gsm0710muxd package.

With the default /etc/X11/Xsession.d/89qtopia file it wasn't working for me,

so i provided my file in the tarball as well.

The local clock must be synchronized to link the cellid to the location.

to do this i use the gpsd as a clock source for ntpd.

add the following lines to /etc/ntp.conf:

#LinuxPPS: GPS + PPS (comment out either this whole section or the next one)

server 127.127.20.0 minpoll 4 prefer

fudge 127.127.20.0 flag3 1 flag2 0

# SHM: PPS filtered mean (comment out either this whole section or the previous one)

server 127.127.28.0 minpoll 4 prefer

fudge 127.127.28.0 refid PPS flag3 1

set the clock to the current time and make sure you start the ntpd.


I realize that this "manual" needs a lot of improvement, so please help me improving it

Kind regards,

Ed