3 "zavai" is a word of the Bolognese language which means "useless thing of no
4 value". The idea that I'm trying to do what I can with what I have.
6 It is written with the purpose of working for me; everything else is optional.
7 Feature requests for things that I don't need will likely be ignored unless
8 of course they come with patches.
12 * Install dependencies
15 apt-get install valac libglib2.0-dev libdbus-glib-1-dev libgee-dev libgtk2.0-dev \
16 libwnck-dev libdevkit-power-gobject-dev \
17 libomhacks-dev liblua5.1-dev
20 apt-get install devicekit-power
23 apt-get install polygen polygen-data
29 * Install dbus.d configuration file
31 cp conf/zavai.conf /etc/dbus-1/system.d/
33 * Copy the .desktop files of the applications you use more often in ~/.zavai
38 cp /usr/share/applications/tangogps.desktop ~/.zavai
39 cp /usr/share/applications/navit.desktop ~/.zavai
40 cp /usr/share/applications/vala-terminal.desktop ~/.zavai
41 cp /usr/share/applications/midori.desktop ~/.zavai
42 cp /usr/share/applications/zhone.desktop ~/.zavai
43 cp /usr/share/applications/FBReader.desktop ~/.zavai
44 cp conf/satmon.desktop ~/.zavai
46 * Copy accessory scripts in ~/.zavai
48 cp hooks/display ~/.zavai
49 cp hooks/keyboard ~/.zavai
51 * Update the information about the polygen grammars installed in the system
54 src/update-polygen-info
60 This will run zavai and restart it if it quits/crashes. If you want to
61 restart zavai (for example after you build a new version) just choose
68 Push the power button to get the power menu, with options to
69 suspend/shutdown/reboot, lock the screen and keep the backlight always on
70 (useful if you are using the openmoko as a satellite navigator in the car)
74 Hold the power button longer to lock / unlock the screen. If the screen is
75 locked you see a lock icon in the traybar.
77 A short push of the power button while locked will turn on the backlight for a
78 bit, which is useful if you want to check the map for a moment. Another short
79 push will show the main zavai window, which is useful if you want to see the
80 time. Another short push will hide the main zavai window.
84 In the main window you see the time. If your GPS has a fix, the time comes
87 In the top left there is a gps icon. Push it to toggle the GPS to be always on
88 (useful to restart tangogps or navit without needing to reacquire a fix).
90 In the bottom there is a button to access the main menu.
94 Zavai shows several tray bar buttons. One kills the current application (or
95 goes back in the menu if the current application is zavai).
97 One hides and shows zavai.
99 One hides and shows the keyboard.
101 One shows the status of the battery.
105 The menu should be self-explanatory. It has options for simple GPS management
106 tasks, setting an alarm, running applications, a task switcher, and a polygen
111 It is possible to set an alarm, which will be shown in the alarm window. When
112 the alarm expires, the phone wakes up if it is suspended, and zavai vibrates
115 It is planned to use the AUX button to acknowledge the alarm and stop the
116 vibration; when this will happen, vibration can go on for more than 5 seconds.
118 When I'll implement some audio playing infrastructure, I'll implement playing
119 an audio file as well.
121 Also missing are a popup that tells that an alarm is ringing, and a notifier
122 for unacknowledged popups.
126 Details: the alarms are scheduled with at(1). Please see omhacks for simple
127 suspend hooks that will wake up the phone to run scheduled at jobs.
131 You can reach the calendar from the menu or by clicking on the date in the
134 The calendar shows notes on every day. You can add notes just by typing on the
135 white space below the calendar.
137 The notes are saved in ~/.zavai/cal/YEAR/MONTH/DAY.txt, feel free to:
138 - sync it with your main computer;
139 - create a tool that populates it using the information from your
140 favourite calendar system;
141 - interface zavai with a proper calendar system, without making the interface
142 harder to use (if you can).
146 Zavai currently focuses on the interface side, trying to make it easy for me
147 to reach the functions that I need. I try not to focus on hardware details
148 (yet) (when I can), so I build it on the freesmartphone framework, which is
149 unstable, underdocumented and sometimes untested, whose developers so far have
150 never answered my questions and whose API tends to change every now and again.
152 This said, I'm surprised it works for me so far.
154 TODO list / wish list
156 * FSO API "documentation":
157 http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/index.html;hb=HEAD
161 - timestamp, coordinates
162 - message (structured) (json?)
163 - instant or period (start, end). Period have timestamp and coordinates at
164 start and end. And GPX track of trip.
167 - play sound at alarm trigger
168 - leave expired alarm on screen until acknowledged
169 (alarm status icon that also brings to alarm menu)
170 - remember alarm names (on request, maybe with an add feature) and how
171 often they are triggered, and show them most frequent first
172 - show active alarms and allow to delete them
174 - start frameworkd as a subprocess, configured to only do phone
175 - go through the dbus motions of turning on this and that, and entering PIN
176 hardcoded in zavai config
177 - log and refuse incoming calls and messages
178 - check gobject introspection and dynamic loading
179 - there could be a basic loader core that just dynamically loads bits as
180 available/needed. Only the battery icon and calendar can be loaded on a
181 laptop, while on the moko one can also load the power menu.
182 Different bits can effectively work as plugins, to be there or not.
183 Alternative plugins can be loaded based on different technologies, too (a
184 gpsd satellite monitor, or a fso satellite monitor).
185 - zavai does not look good in landscape mode
186 - replace menus with a widget taking a list of actions, which then lays
187 them out according to the screen size
188 - set backlight with Randr (xrandr --prop shows "Backlight: 4 (0x00000004) range: (0,15)")
189 and xbacklight uses it
190 (note: the property is not available on the freerunner atm, it would be only
191 for desktop systems, to avoid chowning the device under /sys/something)
192 - volume control in power menu "Amp Spk"
193 (-> learn/test libalsamixer something)
194 /usr/share/vala/vapi/alsa.vapi
195 - space buttons from sliders, to avoid shutting down instead of lowering the volume
196 - fisheye list music player
197 (-> learn/test gstreamer libs)
198 - player page with seek/skip controls
200 - chosen song start playing if nothing is being played
201 - chosen song moves to playlist editor: play, add to playlist, add dir to playlist
202 (show a standard list multiselectable with all the songs in the dir and
203 only the selected song selected; allow to select others, select all, add
204 selected to playlist)
205 - playlist as reorderable standard list, allow to delete tracks, reorder tracks
206 - save playlist to file to reload later
207 - pause with headset button
208 - battery without devkit: do the parsing via lua
209 - contacts: show as a fancy focus+context list (see prefuse)
210 - vcard on e-vcard.{h,c}
211 - ical on libical-dev
213 - lua functions to read things
214 - zavai-calendar as a separate app
215 - zavai-contacts as a separate app
216 - next30: don't update if not shown currently on the notebook
217 - gtk_calendar_set_detail_func
218 - GPS FixNow mode for sleeping
219 - GSM power and network
220 - link to open SHR-dialer
221 - icon to show if there are new messages
222 - link to open SHR-messages
223 - switch backlight keep mode when on power/recharging
224 - the button changes the default for the current power mode
225 - unlock screen when receiving phone calls
226 - GPX status icon (off, waiting for fix, recording)
227 - GPX waypoint using AUX button
229 - track EPV (and similar) in gpx and kill trackpoints with bad accuracy
231 - shortcut icon in main screen
235 - start/stop wicd-client
236 - Simple wireless scanner (code from guessnet, or minimal wicd client)
237 - Suspend phone if not calling and gps is not on and backlight is not on
238 (maybe with idle notifier?)
239 - Phone from kapula (or just running kapula)
241 - Location aware (show timezones in order of distance from current
243 - Show timezone in clock
246 + Why sometimes the phone will stop acting normal and will completely ignore
247 the screen for the purpose of screen dimming, that is, it will dim the
248 screen even if I'm using the touchscreen? (it was old ousaged brokenness)
249 - Is there a way to lock the screen completely turning off the touchscreen, so
250 that interrupts are not even generated?
252 * Not quite needed yet:
253 - GPX log with more features (quality, course, speed, ...)
254 - Take a waypoint then show a menu with a timeout
255 - Add a scribbled note
257 - Add a text note (tickling the text input method thing)
258 If timeout expires, leave the waypoint with the automatic name
259 - get fix events without requesting the GPX resource (and then? gpx log all the time? what for?)