FS#11243 - The %VI (capital i) WPS tag is not described in the manual.
[kugel-rb.git] / manual / advanced_topics / main.tex
blob7241de2aefe25d8ae4234f44481948df4fd72bbc
1 % $Id$ %
2 \chapter{Advanced Topics}
4 \section{\label{ref:CustomisingUI}Customising the User Interface}
5 \opt{lcd_bitmap}{
6 \subsection{\label{ref:GettingExtras}Getting Extras}
8 Rockbox supports custom fonts. A collection of fonts is available for download
9 in the font package at \url{http://www.rockbox.org/daily.shtml}.}
11 \opt{lcd_bitmap}{
12 \subsection{\label{ref:Loadingfonts}Loading Fonts}\index{Fonts}
13 Rockbox can load fonts dynamically. Simply copy the \fname{.fnt} file to the
14 \dap{} and ``play'' it in the \setting{File Browser}. If you want a font to
15 be loaded automatically every time you start up, it must be located in the
16 \fname{/.rockbox/fonts} directory and the filename must be at most 24 characters
17 long. You can browse the fonts in \fname{/.rockbox/fonts} under
18 \setting{Settings $\rightarrow$ Theme Settings $\rightarrow$ Font}
19 in the \setting{Main Menu}.\\
21 \note{Advanced Users Only: Any BDF font file up to 16 pixels high should
22 be usable with Rockbox. To convert from \fname{.bdf} to \fname{.fnt}, use
23 the \fname{convbdf} tool. This tool can be found in the \fname{tools}
24 directory of the Rockbox source code.}
27 \subsection{\label{ref:Loadinglanguages}Loading Languages}
28 \index{Language files}%
29 Rockbox can load language files at runtime. Simply copy the \fname{.lng} file
30 \emph{(do not use the .lang file)} to the \dap\ and ``play'' it in the
31 Rockbox directory browser or select \setting{Settings $\rightarrow$
32 General Settings $\rightarrow$ Language }from the \setting{Main Menu}.\\
34 \note{If you want a language to be loaded automatically every time you start
35 up, it must be located in the \fname{/.rockbox/langs} directory and the filename
36 must be a maximum of 24 characters long.\\}
38 If your language is not yet supported and you want to write your own language
39 file find the instructions on the Rockbox website:
40 \wikilink{LangFiles}
42 \opt{lcd_color}{
43 \subsection{\label{ref:ChangingFiletypeColours}Changing Filetype Colours}
44 Rockbox has the capability to modify the \setting{File Browser} to show
45 files of different types in different colours, depending on the file extension.
47 \subsubsection{Set-up}
48 There are two steps to changing the filetype colours -- creating
49 a file with the extension \fname{.colours} and then activating it using
50 a config file. The \fname{.colours} files \emph{must} be stored in
51 the \fname{/.rockbox/themes/} directory.
52 The \fname{.colours} file is just a text file, and can be edited with
53 your text editor of choice.
55 \subsubsection{Creating the .colours file}
56 The \fname{.colours} file consists of the file extension
57 (or \fname{folder}) followed by a colon and then the colour desired
58 as an RGB value in hexadecimal, as in the following example:\\*
60 \config{folder:808080}\\
61 \config{mp3:00FF00}\\
62 \config{ogg:00FF00}\\
63 \config{txt:FF0000}\\
64 \config{???:FFFFFF}\\*
66 The permissible extensions are as follows:\\*
67 \\
68 \config{folder, m3u, m3u8, cfg, wps, lng, rock, bmark, cue, colours, mpa,
69 \firmwareextension{}, %
70 \opt{swcodec}{mp1, }mp2, mp3%
71 \opt{swcodec}{, ogg, oga, wma, wmv, asf, wav, flac, ac3, a52, mpc,
72 wv, m4a, m4b, mp4, mod, shn, aif, aiff, spx, sid, adx, nsf, nsfe,
73 spc, ape, mac, sap}%
74 \opt{lcd_bitmap}{\opt{swcodec}{, mpg, mpeg}}%
75 \opt{HAVE_REMOTE_LCD}{, rwps}%
76 \opt{lcd_non-mono}{, bmp}%
77 \opt{radio}{, fmr}%
78 \opt{lcd_bitmap}{, fnt, kbd}}\\*
79 %It'd be ideal to get these from filetypes.c
81 All file extensions that are not either specifically listed in the
82 \fname{.colours} files or are not in the list above will be
83 set to the colour given by \config{???}. Extensions that
84 are in the above list but not in the \fname{.colours}
85 file will be set to the foreground colour as normal.
87 \subsubsection{Activating}
88 To activate the filetype colours, the \fname{.colours} file needs to be
89 invoked from a \fname{.cfg} configuration file. The easiest way to do
90 this is to create a new text file containing the following single
91 line:\\*
93 \config{filetype colours: /.rockbox/themes/filename.colours}\\*
95 where filename is replaced by the filename you used when creating the
96 \fname{.colours} file. Save this file as e.g. \fname{colours.cfg} in the
97 \fname{/.rockbox/themes} directory and then activate the config file
98 from the menu as normal
99 (\setting{Settings} $\rightarrow$ \setting{Theme Settings}%
100 $\rightarrow$ \setting{Browse Theme Files}).
102 \subsubsection{Editing}
103 The built-in \setting{Text Editor} (see \reference{sec:text_editor})
104 automatically understands the
105 \fname{.colours} file format, but an external text editor can
106 also be used. To edit the \fname{.colours} file using Rockbox,
107 ``play'' it in the \setting{File Browser}. The file will open in
108 the \setting{Text Editor}. Upon selecting a line, the following choices
109 will appear:\\*
111 \config{Extension}\\
112 \config{Colour}\\*
114 If \config{Extension} is selected, the \setting{virtual keyboard}
115 (see \reference{sec:virtual_keyboard}) appears,
116 allowing the file extension to be modified. If \config{Colour}
117 is selected, the colour selector screen appears. Choose the desired
118 colour, then save the \fname{.colours} file using the standard
119 \setting{Text Editor} controls.
122 \opt{lcd_non-mono}{%
123 \subsection{\label{ref:LoadingBackdrops}Loading Backdrops}
124 Rockbox supports showing an image as a backdrop in the \setting{File Browser}
125 and the menus. The backdrop image must be a \fname{.bmp} file of the exact
126 same dimensions as the display in your \dap{} (\genericimg{} with the last
127 number giving the colour depth in bits). To use an image as a backdrop browse
128 to it in the \setting{File Browser} and open the \setting{Context Menu}
129 (see \reference{ref:Contextmenu}) on it and select the option
130 \setting{Set As Backdrop}. If you want rockbox to remember your
131 backdrop the next time you start your \dap{} the backdrop must be placed in
132 the \fname{/.rockbox/backdrops} directory.
135 \nopt{lcd_charcell}{
136 \subsection{UI Viewport}
137 By default, the UI is drawn on the whole screen. This can be changed so that
138 the UI is confined to a specific area of the screen, by use of a UI
139 viewport. This is done by adding the following line to the
140 \fname{.cfg} file for a theme:\\*
142 \nopt{lcd_non-mono}{\config{ui viewport: X,Y,[width],[height],[font]}}
143 \nopt{lcd_color}{\opt{lcd_non-mono}{
144 \config{ui viewport: X,Y,[width],[height],[font],[fgshade],[bgshade]}}}
145 \opt{lcd_color}{
146 \config{ui viewport: X,Y,[width],[height],[font],[fgcolour],[bgcolour]}}
149 \opt{HAVE_REMOTE_LCD}{
150 The dimensions of the menu that is displayed on the remote control of your
151 \dap\ can be set in the same way. The line to be added to the theme
152 \fname{.cfg} is the following:\\*
154 \nopt{lcd_non-mono}{\config{remote ui viewport: X,Y,[width],[height],[font]}}
155 \nopt{lcd_color}{\opt{lcd_non-mono}{
156 \config{remote ui viewport: X,Y,[width],[height],[font],[fgshade],[bgshade]}}}
157 \opt{lcd_color}{
158 \config{remote ui viewport: X,Y,[width],[height],[font],[fgcolour],[bgcolour]}}
162 Only the first two parameters \emph{have} to be specified, the others can
163 be omitted using `-' as a placeholder. The syntax is very similar to WPS
164 viewports (see \reference{ref:Viewports}). Briefly:
166 \nopt{lcd_non-mono}{\input{advanced_topics/viewports/mono-uivp-syntax.tex}}
167 \nopt{lcd_color}{\opt{lcd_non-mono}{\input{advanced_topics/viewports/grayscale-uivp-syntax.tex}}}
168 \opt{lcd_color}{\input{advanced_topics/viewports/colour-uivp-syntax.tex}}
171 \section{\label{ref:ConfiguringtheWPS}Configuring the Theme}
173 \subsection{Themeing -- General Info}
175 There are various different aspects of the Rockbox interface
176 that can be themed -- the WPS or \setting{While Playing Screen}, the FMS or
177 \setting{FM Screen} (if the \dap{} has a tuner), and the SBS or
178 \setting{custom status bar}. The WPS is the name used to
179 describe the information displayed on the \daps{} screen whilst an audio
180 track is being played, the FMS is the screen shown while listening to the
181 radio, and the SBS lets you specify a custom status bar that is shown in the
182 menus and browsers, as well as the WPS and FMS. The SBS also allows you to
183 control certain aspects of the appearance of the menus/browsers.
184 There are a number of themes included in Rockbox, and
185 you can load one of these at any time by selecting it in
186 \setting{Settings $\rightarrow$ Theme Settings $\rightarrow$ Browse Theme Files}.
187 It is also possible to set individual items of a theme from within the
188 \setting{Settings $\rightarrow$ Theme Settings} menu.
191 \subsection{\label{ref:CreateYourOwnWPS}Themes -- Create Your Own}
192 The theme files are simple text files, and can be created (or edited) in your
193 favourite text editor. To make sure non-English characters
194 display correctly in your WPS you must save the .wps file with UTF-8 character
195 encoding. This can be done in most editors, for example Notepad in Windows 2000
196 or XP (but not in 9x/ME) can do this.
198 \begin{description}
199 \item [Files Locations: ] Each different ``themeable'' aspect requires its own file --
200 WPS files have the extension \fname{.wps}, FM screen files have the extension
201 \fname{.fms}, and SBS files have the extension \fname{.sbs}. The main theme
202 file has the extension \fname{.cfg}. All files should have the same name.
204 The theme \fname{.cfg} file should be placed in the \fname{/.rockbox/themes}
205 directory, while the \fname{.wps}, \fname{.fms} and \fname{.sbs} files should
206 be placed in the \fname{/.rockbox/wps} directory. Any images used by the
207 theme should be placed in a subdirectory of \fname{/.rockbox/wps} with the
208 same name as the theme, e.g. if the theme files are named
209 \fname{mytheme.wps, mytheme.sbs} etc., then the images should be placed in
210 \fname{/.rockbox/wps/mytheme}.
211 \end{description}
213 All full list of the available tags are given in appendix
214 \reference{ref:wps_tags}; some of the more powerful concepts in theme designe
215 are discussed below.
217 \begin{itemize}
218 \item All characters not preceded by \% are displayed as typed.
219 \item Lines beginning with \# are comments and will be ignored.
220 \end{itemize}
222 \note{Keep in mind that your \dap{} resolution is \genericimg{} (with
223 the last number giving the colour depth in bits) when
224 designing your own WPS, or if you use a WPS designed for another target.
225 \opt{HAVE_REMOTE_LCD}{The resolution of the remote is
226 \opt{h100,h300}{128x64x1}\opt{x5,m5}{128x96x2} pixels.}}
228 \nopt{lcd_charcell}{
229 \subsubsection{\label{ref:Viewports}Viewports}
231 By default, a viewport filling the whole screen contains all the elements
232 defined in the \fname(.wps) file. The
233 \opt{lcd_non-mono}{elements in this viewport are displayed
234 with the same background/foreground
235 \opt{lcd_color}{colours}\nopt{lcd_color}{shades} and the}
236 text is rendered in the
237 same font as in the main menu. To change this behaviour a custom viewport can
238 be defined. A viewport is a rectangular window on the screen%
239 \opt{lcd_non-mono}{ with its own foreground/background
240 \opt{lcd_color}{colours}\nopt{lcd_color}{shades}}.
241 This window also has variable dimensions. To
242 define a viewport a line starting \config{{\%V{\textbar}\dots}} has to be
243 present in the \fname{.wps} file. The full syntax will be explained later in
244 this section. All elements placed before the
245 line defining a viewport are displayed in the default viewport. Elements
246 defined after a viewport declaration are drawn within that viewport.
247 \opt{lcd_bitmap}{Loading images (see Appendix \reference{ref:wps_images})
248 should be done within the default viewport.}
249 A viewport ends either with the end of the file, or with the next viewport
250 declaration line. Viewports sharing the same
251 coordinates and dimensions cannot be displayed at the same time. Viewports
252 cannot be layered \emph{transparently} over one another. Subsequent viewports
253 will be drawn over any other viewports already drawn onto that
254 area of the screen.
256 \nopt{lcd_non-mono}{\input{advanced_topics/viewports/mono-vp-syntax.tex}}
257 \nopt{lcd_color}{\opt{lcd_non-mono}{\input{advanced_topics/viewports/grayscale-vp-syntax.tex}}}
258 \opt{lcd_color}{\input{advanced_topics/viewports/colour-vp-syntax.tex}}
261 \subsubsection{Conditional Viewports}
263 Any viewport can be displayed either permanently or conditionally.
264 Defining a viewport as \config{{\%V{\textbar}\dots}}
265 will display it permanently.
267 \begin{itemize}
268 \item {\config{\%Vl{\textbar}'identifier'{\textbar}\dots{\textbar}}}
269 This tag preloads a viewport for later display. `identifier' is a single
270 lowercase letter (a-z) and the '\dots' parameters use the same logic as
271 the \config{\%V} tag explained above.
272 \item {\config{\%Vd'identifier'}} Display the 'identifier' viewport.
273 \end{itemize}
275 Viewports can share identifiers so that you can display multiple viewports
276 with one \%Vd line.
278 \nopt{lcd_non-mono}{\input{advanced_topics/viewports/mono-conditional.tex}}
279 \nopt{lcd_color}{%
280 \opt{lcd_non-mono}{\input{advanced_topics/viewports/grayscale-conditional.tex}}}
281 \opt{lcd_color}{\input{advanced_topics/viewports/colour-conditional.tex}}
284 \note{The tag to display conditional viewports must come before the tag to
285 preload the viewport in the \fname{.wps} file.}
287 \subsection{Info Viewport (SBS only)}
288 As mentioned above, it is possible to set a UI viewport via the theme
289 \fname{.cfg} file. It is also possible to set the UI viewport through the SBS
290 file, and to conditionally select different UI viewports.
292 \begin{itemize}
293 \item {\config{\%Vi{\textbar}'label'{\textbar}\dots{\textbar}}}
294 This viewport is used as Custom UI Viewport in the case that the theme
295 doesn't have a ui viewport set in the theme \fname{.cfg} file. Having this
296 is strongly recommended since it makes you able to use the SBS
297 with other themes. If label is set this viewport can be selectivly used as the
298 Info Viewport using the \%VI tag. The '\dots' parameters use the same logic as
299 the \config{\%V} tag explained above.
301 \item {\config{\%VI'label'}} Set the Info Viewport to use the viewport called
302 label, as declared with the previous tag.
303 \end{itemize}
306 \subsubsection{Conditional Tags}
308 \begin{description}
309 \item[If/else: ]
310 Syntax: \config{\%?xx{\textless}true{\textbar}false{\textgreater}}
312 If the tag specified by ``\config{xx}'' has a value, the text between the
313 ``\config{{\textless}}'' and the ``\config{{\textbar}}'' is displayed (the true
314 part), else the text between the ``\config{{\textbar}}'' and the
315 ``\config{{\textgreater}}'' is displayed (the false part).
316 The else part is optional, so the ``\config{{\textbar}}'' does not have to be
317 specified if no else part is desired. The conditionals nest, so the text in the
318 if and else part can contain all \config{\%} commands, including conditionals.
320 \item[Enumerations: ]
321 Syntax: \config{\%?xx{\textless}alt1{\textbar}alt2{\textbar}alt3{\textbar}\dots{\textbar}else{\textgreater}}
323 For tags with multiple values, like Play status, the conditional can hold a
324 list of alternatives, one for each value the tag can have.
325 Example enumeration:
326 \begin{example}
327 \%?mp{\textless}Stop{\textbar}\%Play{\textbar}Pause{\textbar}Ffwd{\textbar}Rew{\textgreater}
328 \end{example}
330 The last else part is optional, and will be displayed if the tag has no value.
331 The WPS parser will always display the last part if the tag has no value, or if
332 the list of alternatives is too short.
333 \end{description}
335 \subsubsection{Next Song Info}
336 You can display information about the next song -- the song that is
337 about to play after the one currently playing (unless you change the
338 plan).
340 If you use the upper-case versions of the
341 three tags: \config{F}, \config{I} and \config{D}, they will instead refer to
342 the next song instead of the current one. Example: \config{\%Ig} is the genre
343 name used in the next song and \config{\%Ff} is the mp3 frequency.\\
345 \note{The next song information \emph{will not} be available at all
346 times, but will most likely be available at the end of a song. We
347 suggest you use the conditional display tag a lot when displaying
348 information about the next song!}
350 \subsubsection{\label{ref:AlternatingSublines}Alternating Sublines}
352 It is possible to group items on each line into 2 or more groups or
353 ``sublines''. Each subline will be displayed in succession on the line for a
354 specified time, alternating continuously through each defined subline.
356 Items on a line are broken into sublines with the semicolon
357 '\config{;}' character. The display time for
358 each subline defaults to 2 seconds unless modified by using the
359 '\config{\%t}' tag to specify an alternate
360 time (in seconds and optional tenths of a second) for the subline to be
361 displayed.
363 Subline related special characters and tags:
364 \begin{description}
365 \item[;] Split items on a line into separate sublines
366 \item[\%t] Set the subline display time. The
367 '\config{\%t}' is followed by either integer
368 seconds (\config{\%t5}), or seconds and tenths of a second (\config{\%t3.5}).
369 \end{description}
371 Each alternating subline can still be optionally scrolled while it is
372 being displayed, and scrollable formats can be displayed on the same
373 line with non{}-scrollable formats (such as track elapsed time) as long
374 as they are separated into different sublines.
375 Example subline definition:
376 \begin{example}
377 %s%t4%ia;%s%it;%t3%pc %pr : Display id3 artist for 4 seconds,
378 Display id3 title for 2 seconds,
379 Display current and remaining track time
380 for 3 seconds,
381 repeat...
382 \end{example}
384 Conditionals can be used with sublines to display a different set and/or number
385 of sublines on the line depending on the evaluation of the conditional.
386 Example subline with conditionals:
387 \begin{example}
388 %?it{\textless}%t8%s%it{\textbar}%s%fn{\textgreater};%?ia{\textless}%t3%s%ia{\textbar}%t0{\textgreater}\\
389 \end{example}
391 The format above will do two different things depending if ID3 tags are
392 present. If the ID3 artist and title are present:
393 \begin{itemize}
394 \item Display id3 title for 8 seconds,
395 \item Display id3 artist for 3 seconds,
396 \item repeat\dots
397 \end{itemize}
398 If the ID3 artist and title are not present:
399 \begin{itemize}
400 \item Display the filename continuously.
401 \end{itemize}
402 Note that by using a subline display time of 0 in one branch of a conditional,
403 a subline can be skipped (not displayed) when that condition is met.
405 \subsubsection{Using Images}
406 You can have as many as 52 images in your WPS. There are various ways of
407 displaying images:
408 \begin{enumerate}
409 \item Load and always show the image, using the \config{\%x} tag
410 \item Preload the image with \config{\%xl} and show it with \config{\%xd}.
411 This way you can have your images displayed conditionally.
412 \nopt{archos}{%
413 \item Load an image and show as backdrop using the \config{\%X} tag. The
414 image must be of the same exact dimensions as your display.
416 \end{enumerate}
418 \optv{swcodec}{% This doesn't depend on swcodec but we don't have a \noptv
419 % command.
420 Example on background image use:
421 \begin{example}
422 %X|background.bmp|
423 \end{example}
424 The image with filename \fname{background.bmp} is loaded and used in the WPS.
427 Example on bitmap preloading and use:
428 \begin{example}
429 %x|a|static_icon.bmp|50|50|
430 %xl|b|rep\_off.bmp|16|64|
431 %xl|c|rep\_all.bmp|16|64|
432 %xl|d|rep\_one.bmp|16|64|
433 %xl|e|rep\_shuffle.bmp|16|64|
434 %?mm<%xdb|%xdc|%xdd|%xde>
435 \end{example}
436 Four images at the same x and y position are preloaded in the example. Which
437 image to display is determined by the \config{\%mm} tag (the repeat mode).
439 \subsubsection{Example File}
440 \begin{example}
441 %s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]>
442 %pb%pc/%pt
443 \end{example}
444 That is, ``tracknum -- title [artist, album]'', where most fields are only
445 displayed if available. Could also be rendered as ``filename'' or ``tracknum --
446 title [artist]''.
448 %\opt{lcd_bitmap}{
449 % \begin{verbatim}
450 % %s%?it<%?in<%in. |>%it|%fn>
451 % %s%?ia<%ia|%?d2<%d2|(root)>>
452 % %s%?id<%id|%?d1<%d1|(root)>> %?iy<(%iy)|>
454 % %al%pc/%pt%ar[%pp:%pe]
455 % %fbkBit %?fv<avg|> %?iv<(id3v%iv)|(no id3)>
456 % %pb
457 % %pm
458 % % \end{verbatim}
461 \section{\label{ref:manage_settings}Managing Rockbox Settings}
463 \subsection{Introduction to \fname{.cfg} Files}
464 Rockbox allows users to store and load multiple settings through the use of
465 configuration files. A configuration file is simply a text file with the
466 extension \fname{.cfg}.
468 A configuration file may reside anywhere on the disk. Multiple
469 configuration files are permitted. So, for example, you could have
470 a \fname{car.cfg} file for the settings that you use while playing your
471 jukebox in your car, and a \fname{headphones.cfg} file to store the
472 settings that you use while listening to your \dap{} through headphones.
474 See \reference{ref:cfg_specs} below for an explanation of the format
475 for configuration files. See \reference{ref:manage_settings_menu} for an
476 explanation of how to create, edit and load configuration files.
478 \subsection{\label{ref:cfg_specs}Specifications for \fname{.cfg} Files}
480 The Rockbox configuration file is a plain text file, so once you use the
481 \setting{Save .cfg file} option to create the file, you can edit the file on
482 your computer using any text editor program. See
483 Appendix \reference{ref:config_file_options} for available settings. Configuration
484 files use the following formatting rules: %
486 \begin{enumerate}
487 \item Each setting must be on a separate line.
488 \item Each line has the format ``setting: value''.
489 \item Values must be within the ranges specified in this manual for each
490 setting.
491 \item Lines starting with \# are ignored. This lets you write comments into
492 your configuration files.
493 \end{enumerate}
495 Example of a configuration file:
496 \begin{example}
497 volume: 70
498 bass: 11
499 treble: 12
500 balance: 0
501 time format: 12hour
502 volume display: numeric
503 show files: supported
504 wps: /.rockbox/car.wps
505 lang: /.rockbox/afrikaans.lng
506 \end{example}
508 \note{As you can see from the example, configuration files do not need to
509 contain all of the Rockbox options. You can create configuration files
510 that change only certain settings. So, for example, supppose you
511 typically use the \dap{} at one volume in the car, and another when using
512 headphones. Further, suppose you like to use an inverse LCD when you are
513 in the car, and a regular LCD setting when you are using headphones. You
514 could create configuration files that control only the volume and LCD
515 settings. Create a few different files with different settings, give
516 each file a different name (such as \fname{car.cfg},
517 \fname{headphones.cfg}, etc.), and you can then use the \setting{Browse .cfg
518 files} option to quickly change settings.\\}
520 A special case configuration file can be used to force a particular setting
521 or settings every time Rockbox starts up (e.g. to set the volume to a safe
522 level). Format a new configuration file as above with the required setting(s)
523 and save it into the \fname{/.rockbox} directory with the filename
524 \fname{fixed.cfg}.
526 \subsection{\label{ref:manage_settings_menu}The \setting{Manage Settings}
527 menu} The \setting{Manage Settings} menu can be found in the \setting{Main
528 Menu}. The \setting{Manage Settings} menu allows you to save and load
529 \fname{.cfg} files.
531 \begin{description}
533 \item [Browse .cfg Files]Opens the \setting{File Browser} in the
534 \fname{/.rockbox} directory and displays all \fname{.cfg} (configuration)
535 files. Selecting a \fname{.cfg} file will cause Rockbox to load the settings
536 contained in that file. Pressing \nopt{COWON_D2_PAD}{\ButtonLeft}
537 \opt{COWON_D2_PAD}{\ButtonPower{} or \TouchTopLeft} will exit back to the
538 \setting{Manage Settings} menu. See the \setting{Write .cfg files} option on
539 the \setting{Manage Settings} menu for details of how to save and edit a
540 configuration file.
542 \item [Reset Settings]This wipes the saved settings
543 in the \dap{} and resets all settings to their default values.
545 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,SANSA_E200_PAD,SANSA_C200_PAD}{
546 \note{You can also reset all settings to their default
547 values by turning off the \dap, turning it back on, and holding the
548 \ButtonRec{} button immediately after the \dap{} turns on.}
550 \opt{IRIVER_H10_PAD}{\note{You can also reset all settings to
551 their default values by turning off the \dap, and turning it back on
552 with the \ButtonHold{} button on.}
554 \opt{IPOD_4G_PAD}{\note{You can also reset all settings to their default
555 values by turning off the \dap, turning it back on, and activating the
556 \ButtonHold{} button immediately after the backlight comes on.}
558 \opt{GIGABEAT_PAD}{\note{You can also reset all settings to their default
559 values by turning off the \dap, turning it back on and pressing the
560 \ButtonA{} button immediately after the \dap{} turns on.}
563 \item [Save .cfg File]This option writes a \fname{.cfg} file to
564 your \daps{} disk. The configuration file has the \fname{.cfg}
565 extension and is used to store all of the user settings that are described
566 throughout this manual.
568 Hint: Use the \setting{Save .cfg File} feature (\setting{Main Menu
569 $\rightarrow$ Manage Settings}) to save the current settings, then
570 use a text editor to customize the settings file. See Appendix
571 \reference{ref:config_file_options} for the full reference of available
572 options.
574 \item [Save Sound Settings]This option writes a \fname{.cfg} file to
575 your \daps{} disk. The configuration file has the \fname{.cfg}
576 extension and is used to store all of the sound related settings.
578 \item [Save Theme Settings]This option writes a \fname{.cfg} file to
579 your \daps{} disk. The configuration file has the \fname{.cfg}
580 extension and is used to store all of the theme related settings.
582 \end{description}
584 \section{\label{ref:FirmwareLoading}Firmware Loading}
585 \opt{player,recorder,recorderv2fm,ondio}{
586 When your \dap{} powers on, it loads the Archos firmware in ROM, which
587 automatically checks your \daps{} root directory for a file named
588 \firmwarefilename. Note that Archos firmware can only read the first
589 ten characters of each filename in this process, so do not rename your old
590 firmware files with names like \firmwarefilename.\fname{old} and so on,
591 because it is possible that the \dap{} will load a file other than the one
592 you intended.
595 \subsection{\label{ref:using_rolo}Using ROLO (Rockbox Loader)}
596 Rockbox is able to load and start another firmware file without rebooting.
597 You just ``play'' a file with the extension %
598 \opt{recorder,recorderv2fm,ondio}{\fname{.ajz}.} %
599 \opt{player}{\fname{.mod}.} %
600 \opt{h100,h300}{\fname{.iriver}.} %
601 \opt{ipod}{\fname{.ipod}.} %
602 \opt{iaudio}{\fname{.iaudio}.} %
603 \opt{sansa,h10,h10_5gb,vibe500}{\fname{.mi4}.} %
604 \opt{sansaAMS}{\fname{.sansa}.} %
605 \opt{gigabeatf,gigabeats}{\fname{.gigabeat}.} %
606 This can be used to test new firmware versions without deleting your
607 current version.
609 \opt{archos}{\input{advanced_topics/archos-flashing.tex}}
611 \section{Optimising battery runtime}
612 Rockbox offers a lot of settings that have high impact on the battery runtime
613 of your \dap{}. The largest power savings can be achieved through disabling
614 unneeded hardware components -- for some of those there are settings
615 available.
616 \opt{swcodec}{
617 Another area of savings is avoiding or reducing CPU boosting
618 through disabling computing intense features (e.g. sound processing) or
619 using effective audio codecs.
620 } The following provides a short overview of the most relevant settings and
621 rules of thumb.
623 \nopt{ondio}{
624 \subsection{Display backlight}
625 The active backlight consumes a lot of power. Therefore choose a setting that
626 disables the backlight after timeout (for setting \setting{Backlight} see
627 \reference{ref:Displayoptions}). Avoid to have the backlight enabled all the
628 time.
631 \opt{lcd_sleep}{
632 \subsection{Display power-off}
633 Shutting down the display and the display controller saves a reasonable amount
634 of power. Choose a setting that will put the display to sleep after timeout
635 (for setting \setting{Sleep} see \reference{ref:Displayoptions}). Avoid to
636 have the display enabled all the time -- even, if the display is transflective
637 and is readable without backlight. Depending on your \dap{} it might be
638 significantly more efficient to re-enable the display and its backlight for a
639 glimpse a few times per hour than to keep the display enabled.
642 \opt{accessory_supply}{
643 \subsection{Accessory power supply}
644 As default your \dap{}'s accessory power supply is always enabled to ensure
645 proper function of connected accessory devices. Disable this power supply, if
646 -- or as long as -- you do not use any accessory device with your \dap{} while
647 running Rockbox (see \reference{ref:AccessoryPowerSupply}).
650 \opt{lineout_poweroff}{
651 \subsection{Line Out}
652 Rockbox allows to switch off the line-out on your \dap{}. If you do not need
653 the line-out, switch it off (see \reference{ref:LineoutOnOff}).
656 \opt{spdif_power}{
657 \subsection{Optical Output}
658 Rockbox allows to switch off the S/PDIF output on your \dap{}. If you do not
659 need this output, switch it off (see \reference{ref:SPDIF_OnOff}).
662 \opt{disk_storage}{
663 \subsection{Anti-Skip Buffer}
664 Having a large anti-skip buffer tends to use more power, and may reduce your
665 battery life. It is recommended to always use the lowest possible setting
666 that allows correct and continuous playback (see \reference{ref:AntiSkipBuf}).
669 \opt{swcodec}{
670 \subsection{Replaygain}
671 Replaygain is a post processing that equalises the playback volume of audio
672 files to the same perceived loudness. This post processing applies a factor
673 to each single PCM sample and is therefore consuming additional CPU time. If
674 you want to achieve some (minor) savings in runtime, switch this feature off
675 (see \reference{ref:ReplayGain}).
678 \opt{swcodec,disk_storage,flash_storage}{
679 \subsection{Audio format and bitrate}
680 \opt{swcodec}{
681 In general the fastest decoding audio format will be the best in terms of
682 battery runtime on your \dap{}. An overview of different codec's performance
683 on different \dap{}s can be found at \wikilink{CodecPerformanceComparison}.
686 \opt{flash_storage}{
687 Your target uses flash that consumes a certain amount of power during access.
688 The less often the flash needs to be switched on for buffering and the shorter
689 the buffering duration is, the lower is the overall power consumption.
690 Therefore the bitrate of the audio files does have an impact on the battery
691 runtime as well. Lower bitrate audio files will result in longer battery
692 runtime.
694 \opt{disk_storage}{
695 Your target uses a hard disk which consumes a large amount of power while
696 spinning -- up to several hundred mA. The less often the hard disk needs to
697 spin up for buffering and the shorter the buffering duration is, the lower is
698 the power consumption. Therefore the bitrate of the audio files does have an
699 impact on the battery runtime as well. Lower bitrate audio files will result
700 in longer battery runtime.
703 Please do not re-encode any existing audio files from one lossy format to
704 another based upon the above mentioned. This will reduce the audio quality.
705 If you have the choice, select the best suiting codec when encoding the
706 original source material.
709 \opt{swcodec}{
710 \subsection{Sound settings}
711 In general all kinds of sound processing will need more CPU time and therefore
712 consume more power. The less sound processing you use, the better it is for
713 the battery runtime (for options see \reference{ref:configure_rockbox_sound}).