blob: 6247fe3a2ff146f2d6ad1daeb6b0cfa025997e02 [file] [log] [blame]
Nils Wallméniuscb527ca2006-09-10 10:17:47 +00001% $Id$ %
Martin Arver8e8207f2006-02-11 00:57:17 +00002\chapter{Advanced Topics}
Martin Arver35dcf902006-03-08 17:58:11 +00003
Marc Guay85eec852008-06-24 05:16:23 +00004\section{\label{ref:CustomisingUI}Customising the User Interface}
Nils Wallménius12eb0582008-03-23 22:07:09 +00005\opt{lcd_bitmap}{
Marianne Arnoldaf78b5f2008-07-06 16:10:28 +00006\subsection{\label{ref:GettingExtras}Getting Extras}
7
Martin Arver7bdd03a2006-08-27 15:00:50 +00008Rockbox supports custom fonts. A collection of fonts is available for download
Marianne Arnoldaf78b5f2008-07-06 16:10:28 +00009in the font package at \url{http://www.rockbox.org/daily.shtml}.}
Martin Arver8e8207f2006-02-11 00:57:17 +000010
Nils Wallménius12eb0582008-03-23 22:07:09 +000011\opt{lcd_bitmap}{
Dominik Riebeling85deab12006-11-20 19:56:55 +000012 \subsection{\label{ref:Loadingfonts}Loading Fonts}\index{Fonts}
Nils Wallméniuscb527ca2006-09-10 10:17:47 +000013 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
Marianne Arnoldb2f7c612007-12-14 02:03:58 +000016 \fname{/.rockbox/fonts} directory and the filename must be at most 24 characters
Nils Wallméniuscb527ca2006-09-10 10:17:47 +000017 long. You can browse the fonts in \fname{/.rockbox/fonts} under
Nils Wallménius15c5d262007-03-15 02:09:15 +000018 \setting{Settings $\rightarrow$ General Settings $\rightarrow$ Display
19 $\rightarrow$ Browse Fonts} in the \setting{Main Menu}.
Nils Wallméniuscb527ca2006-09-10 10:17:47 +000020 \warn{Advanced Users Only: Any BDF font file up to 16 pixels high should
21 be usable with Rockbox. To convert from \fname{.bdf} to \fname{.fnt}, use
22 the \fname{convbdf} tool. This tool can be found in the \fname{tools}
Martin Arver68e40172006-06-07 16:37:04 +000023 directory of the Rockbox source code.}
Dominik Riebelingebb8a222006-04-04 17:48:10 +000024}
Martin Arver8e8207f2006-02-11 00:57:17 +000025
26\subsection{\label{ref:Loadinglanguages}Loading Languages}
Dominik Riebeling85deab12006-11-20 19:56:55 +000027\index{Language files}%
Martin Arver47ea9062006-06-07 12:15:46 +000028Rockbox can load language files at runtime. Simply copy the \fname{.lng} file
Dominik Riebelingb7eef892006-04-10 21:47:09 +000029\emph{(do not use the .lang file)} to the \dap\ and ``play'' it in the
Nils Wallménius15c5d262007-03-15 02:09:15 +000030Rockbox directory browser or select \setting{Settings $\rightarrow$
31General Settings $\rightarrow$ Languages }from the \setting{Main Menu}.
Martin Arver8e8207f2006-02-11 00:57:17 +000032
Dominik Riebelingb7eef892006-04-10 21:47:09 +000033\note{If you want a language to be loaded automatically every time you start
Marianne Arnoldb2f7c612007-12-14 02:03:58 +000034up, it must be located in the \fname{/.rockbox/langs} directory and the filename
Marianne Arnoldfdc2daf2006-12-02 09:42:09 +000035must be a maximum of 24 characters long.}
Martin Arver8e8207f2006-02-11 00:57:17 +000036
Dominik Riebelingebb8a222006-04-04 17:48:10 +000037If your language is not yet supported and you want to write your own language
38file find the instructions on the Rockbox website:
Dominik Riebelingb394e182006-12-29 19:22:56 +000039\wikilink{LangFiles}
Martin Arver8e8207f2006-02-11 00:57:17 +000040
Nils Wallménius12eb0582008-03-23 22:07:09 +000041\opt{lcd_color}{
Nils Wallménius15c5d262007-03-15 02:09:15 +000042 \subsection{Changing Colours}
43 The colours used in the Rockbox interface can be changed to any combination
44 of background and foreground colour you like. To do this go to the
45 \setting{Settings $\rightarrow$ General Settings $\rightarrow$ Display}
46 and select \setting{Background Colour} or \setting{Foreground Colour}.
47 The colours set here are used in all menus, browsers and in the
48 \setting{While Playing Screen}.
Marc Guay85eec852008-06-24 05:16:23 +000049 \subsection{Changing Filetype Colours}
Marianne Arnoldaf78b5f2008-07-06 16:10:28 +000050 Rockbox has the capability to modify the File Browser to show different
51 filetypes in different colours depending upon the file extension.
52 See the \wikilink{CustomFiletypeColours} Wiki page for details.
Nils Wallménius15c5d262007-03-15 02:09:15 +000053}
54
Marianne Arnold81892462008-07-15 20:57:05 +000055\opt{lcd_non-mono}{%
Nils Wallméniusda555882006-11-13 15:14:28 +000056 \subsection{\label{ref:LoadingBackdrops}Loading Backdrops}
57 Rockbox supports showing an image as a backdrop in the \setting{File Browser}
58 and the menus. The backdrop image must be a \fname{.bmp} file of the exact
59 same dimensions as the display in your \dap{} (\genericimg{} with the last
60 number giving the colour depth in bits). To use an image as a backdrop browse
Marianne Arnold90bcefa2008-03-03 23:01:44 +000061 to it in the \setting{File Browser} and open the \setting{Context Menu}
62 (see \reference{ref:Contextmenu}) on it and select the option
Nils Wallméniusda555882006-11-13 15:14:28 +000063 \setting{Set As Backdrop}. If you want rockbox to remember your
64 backdrop the next time you start your \dap{} the backdrop must be placed in
Marianne Arnoldb2f7c612007-12-14 02:03:58 +000065 the \fname{/.rockbox/backdrops} directory.
Nils Wallméniusda555882006-11-13 15:14:28 +000066}%
67
Martin Arver8e8207f2006-02-11 00:57:17 +000068\section{\label{ref:ConfiguringtheWPS}Configuring the WPS}
69
Dominik Riebelingb7eef892006-04-10 21:47:09 +000070\subsection{WPS -- General Info}
Martin Arver8e8207f2006-02-11 00:57:17 +000071
Dominik Riebelingb7eef892006-04-10 21:47:09 +000072\begin{description}
Martin Arver09c39612006-08-18 16:57:56 +000073\item[Description: ] The WPS or While Playing Screen is the name used to
74 describe the information displayed on the \daps\ screen whilst an audio track
75 is being played. The default WPS is a relatively simple screen displaying
76 Track name, Artist, Album etc. in the default font as a purely text based
77 layout. There are a number of WPS files included in Rockbox, and you can
78 load one of these at anytime by selecting it in
79 \setting{General Settings $\rightarrow$ Display $\rightarrow$ Browse .wps files}.
Martin Arver6fc30d62006-08-28 17:44:49 +000080 \opt{HAVE_REMOTE_LCD}{There is a related option to browse \fname{.rwps}
81 files for \daps{} with LCD remote controls installed. This will load a
82 similar WPS screen for the remote but with usually a simpler and more
83 concise layout.}
Martin Arver8e8207f2006-02-11 00:57:17 +000084
Martin Arver47ea9062006-06-07 12:15:46 +000085\note{``Playing'' a \fname{.wps} from the file browser has the same effect.}
Dominik Riebelingb7eef892006-04-10 21:47:09 +000086
87\item [File Location: ]Custom WPS files may be located anywhere on the drive.
Martin Arver09c39612006-08-18 16:57:56 +000088 The only restriction is that they must end in \fname{.wps}. When you ``play''
89 a \fname{.wps} file, it will be used for future WPS screens, and if the
Marianne Arnoldb2f7c612007-12-14 02:03:58 +000090 ``played'' \fname{.wps} file is located in the \fname{/.rockbox/wps} directory, it
Martin Arver09c39612006-08-18 16:57:56 +000091 will be remembered and used after reboot. The \fname{.wps} filename must be
92 no more than 24 characters long for it to be remembered.
Dominik Riebelingb7eef892006-04-10 21:47:09 +000093\end{description}
Martin Arvera245e882006-03-08 15:04:36 +000094
Dominik Riebelingb7eef892006-04-10 21:47:09 +000095\subsection{\label{ref:CreateYourOwnWPS}WPS -- Build Your Own}
Dominik Riebelingebb8a222006-04-04 17:48:10 +000096Quite simply, enter the WPS code in your favourite text editor, Notepad on
Martin Arver47ea9062006-06-07 12:15:46 +000097Windows works fine. When you save it, instead of saving it as a \fname{.txt}
98file, save it as a \fname{.wps} file. Example: Instead of \fname{Rockbox.txt},
99save the file as \fname{Rockbox.wps}. To make sure non english characters
100display correctly in your WPS you must save the .wps file with UTF-8 character
101encoding. This can be done in most editors, for example Notepad in Windows 2000
Martin Arver09c39612006-08-18 16:57:56 +0000102or XP (but not in 9x/ME) can do this. See appendix \reference{ref:wps_tags} for
103all the tags that are available.
Martin Arver8e8207f2006-02-11 00:57:17 +0000104
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000105\begin{itemize}
Martin Arver09c39612006-08-18 16:57:56 +0000106\item All characters not preceded by \% are displayed as typed.
107\item Lines beginning with \# are comments and will be ignored.
108\item Maximum file size used is
Nils Wallménius12eb0582008-03-23 22:07:09 +0000109 \opt{lcd_bitmap}{1600}
Martin Arver09c39612006-08-18 16:57:56 +0000110 \opt{player}{400} bytes.
111 If you have a bigger WPS file, only the first part of it will be
112 loaded and used.
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000113\end{itemize}
Dominik Riebelingb7eef892006-04-10 21:47:09 +0000114
Dominik Riebeling5ec38052006-08-28 18:09:17 +0000115\note{Keep in mind that your \dap{} resolution is \genericimg{} (with
116 the last number giving the colour depth in bits) when
117 designing your own WPS, or if you use a WPS designed for another target.
118 \opt{HAVE_REMOTE_LCD}{The resolution of the remote is
119 \opt{h1xx,h300}{128x64x1}\opt{x5}{128x96x2} pixels.}}
Martin Arver6fc30d62006-08-28 17:44:49 +0000120
Martin Arvera245e882006-03-08 15:04:36 +0000121\subsubsection{Conditional Tags}
Martin Arverd3d3e342006-03-15 10:56:14 +0000122
Martin Arver47ea9062006-06-07 12:15:46 +0000123\begin{description}
124\item[If/else: ]
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000125Syntax: \config{\%?xx{\textless}true{\textbar}false{\textgreater}}
Martin Arver8e8207f2006-02-11 00:57:17 +0000126
Martin Arver68e40172006-06-07 16:37:04 +0000127If the tag specified by ``\config{xx}'' has a value, the text between the
128``\config{{\textless}}'' and the ``\config{{\textbar}}'' is displayed (the true
129part), else the text between the ``\config{{\textbar}}'' and the
130``\config{{\textgreater}}'' is displayed (the false part).
131The else part is optional, so the ``\config{{\textbar}}'' does not have to be
132specified if no else part is desired. The conditionals nest, so the text in the
133if and else part can contain all \config{\%} commands, including conditionals.
Martin Arverd3d3e342006-03-15 10:56:14 +0000134
Martin Arver47ea9062006-06-07 12:15:46 +0000135\item[Enumerations: ]
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000136Syntax: \config{\%?xx{\textless}alt1{\textbar}alt2{\textbar}alt3{\textbar}\dots{\textbar}else{\textgreater}}
Martin Arver8e8207f2006-02-11 00:57:17 +0000137
Martin Arver68e40172006-06-07 16:37:04 +0000138For tags with multiple values, like Play status, the conditional can hold a
139list of alternatives, one for each value the tag can have.
Martin Arver68e40172006-06-07 16:37:04 +0000140Example enumeration:
141\begin{example}
Martin Arver06424512006-10-25 22:12:25 +0000142 \%?mp{\textless}Stop{\textbar}\%Play{\textbar}Pause{\textbar}Ffwd{\textbar}Rew{\textgreater}
Martin Arver68e40172006-06-07 16:37:04 +0000143\end{example}
Martin Arver8e8207f2006-02-11 00:57:17 +0000144
Martin Arver68e40172006-06-07 16:37:04 +0000145The last else part is optional, and will be displayed if the tag has no value.
146The WPS parser will always display the last part if the tag has no value, or if
147the list of alternatives is too short.
Martin Arver47ea9062006-06-07 12:15:46 +0000148\end{description}
Martin Arver8e8207f2006-02-11 00:57:17 +0000149
Marc Guay85eec852008-06-24 05:16:23 +0000150\subsubsection{Next Song Info}
Dominik Riebelingb7eef892006-04-10 21:47:09 +0000151You can display information about the next song -- the song that is
Martin Arver8e8207f2006-02-11 00:57:17 +0000152about to play after the one currently playing (unless you change the
Martin Arvera245e882006-03-08 15:04:36 +0000153plan).
Martin Arver8e8207f2006-02-11 00:57:17 +0000154
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000155If you use the upper-case versions of the
Martin Arver68e40172006-06-07 16:37:04 +0000156three tags: \config{F}, \config{I} and \config{D}, they will instead refer to
157the next song instead of the current one. Example: \config{\%Ig} is the genre
158name used in the next song and \config{\%Ff} is the mp3 frequency.
Martin Arver8e8207f2006-02-11 00:57:17 +0000159
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000160\note{The next song information \emph{will not} be available at all
Martin Arver09c39612006-08-18 16:57:56 +0000161 times, but will most likely be available at the end of a song. We
162 suggest you use the conditional display tag a lot when displaying
163 information about the next song!}
Martin Arvera245e882006-03-08 15:04:36 +0000164
Marc Guay85eec852008-06-24 05:16:23 +0000165\subsubsection{Alternating Sublines}
Martin Arver8e8207f2006-02-11 00:57:17 +0000166
Martin Arver68e40172006-06-07 16:37:04 +0000167It is possible to group items on each line into 2 or more groups or
168``sublines''. Each subline will be displayed in succession on the line for a
169specified time, alternating continuously through each defined subline.
Martin Arver8e8207f2006-02-11 00:57:17 +0000170
171Items on a line are broken into sublines with the semicolon
Martin Arver68e40172006-06-07 16:37:04 +0000172'\config{;}' character. The display time for
Martin Arver8e8207f2006-02-11 00:57:17 +0000173each subline defaults to 2 seconds unless modified by using the
Martin Arver68e40172006-06-07 16:37:04 +0000174'\config{\%t}' tag to specify an alternate
Martin Arver8e8207f2006-02-11 00:57:17 +0000175time (in seconds and optional tenths of a second) for the subline to be
176displayed.
177
178Subline related special characters and tags:
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000179\begin{description}
180\item[;] Split items on a line into separate sublines
181\item[\%t] Set the subline display time. The
Martin Arver68e40172006-06-07 16:37:04 +0000182'\config{\%t}' is followed by either integer
183seconds (\config{\%t5}), or seconds and tenths of a second (\config{\%t3.5}).
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000184\end{description}
Martin Arver8e8207f2006-02-11 00:57:17 +0000185
186Each alternating subline can still be optionally scrolled while it is
187being displayed, and scrollable formats can be displayed on the same
188line with non{}-scrollable formats (such as track elapsed time) as long
Martin Arvera245e882006-03-08 15:04:36 +0000189as they are separated into different sublines.
Martin Arvera245e882006-03-08 15:04:36 +0000190Example subline definition:
Martin Arver47ea9062006-06-07 12:15:46 +0000191\begin{example}
Martin Arver49cdd5e2006-06-07 13:29:52 +0000192 %s%t4%ia;%s%it;%t3%pc %pr : Display id3 artist for 4 seconds,
193 Display id3 title for 2 seconds,
194 Display current and remaining track time
195 for 3 seconds,
196 repeat...
Martin Arver47ea9062006-06-07 12:15:46 +0000197\end{example}
Martin Arver8e8207f2006-02-11 00:57:17 +0000198
Martin Arver68e40172006-06-07 16:37:04 +0000199Conditionals can be used with sublines to display a different set and/or number
200of sublines on the line depending on the evaluation of the conditional.
Martin Arvera245e882006-03-08 15:04:36 +0000201Example subline with conditionals:
Martin Arver47ea9062006-06-07 12:15:46 +0000202\begin{example}
Martin Arver49cdd5e2006-06-07 13:29:52 +0000203 %?it{\textless}%t8%s%it{\textbar}%s%fn{\textgreater};%?ia{\textless}%t3%s%ia{\textbar}%t0{\textgreater}\\
Martin Arver47ea9062006-06-07 12:15:46 +0000204\end{example}
Martin Arver8e8207f2006-02-11 00:57:17 +0000205
Martin Arver68e40172006-06-07 16:37:04 +0000206The format above will do two different things depending if ID3 tags are
207present. If the ID3 artist and title are present:
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000208\begin{itemize}
209\item Display id3 title for 8 seconds,
210\item Display id3 artist for 3 seconds,
211\item repeat\dots
212\end{itemize}
213If the ID3 artist and title are not present:
214\begin{itemize}
215\item Display the filename continuously.
216\end{itemize}
Dominik Riebelingebb8a222006-04-04 17:48:10 +0000217Note that by using a subline display time of 0 in one branch of a conditional,
218a subline can be skipped (not displayed) when that condition is met.
Martin Arvera245e882006-03-08 15:04:36 +0000219
Martin Arvera245e882006-03-08 15:04:36 +0000220\subsubsection{Using Images}
Dominik Riebelingb7eef892006-04-10 21:47:09 +0000221You can have as many as 52 images in your WPS. There are various ways of
Dominik Riebelingebb8a222006-04-04 17:48:10 +0000222displaying images:
Martin Arvera245e882006-03-08 15:04:36 +0000223\begin{enumerate}
Martin Arver68e40172006-06-07 16:37:04 +0000224 \item Load and always show the image, using the \config{\%x} tag
225 \item Preload the image with \config{\%xl} and show it with \config{\%xd}.
226 This way you can have your images displayed conditionally.
Nils Wallméniusda555882006-11-13 15:14:28 +0000227 \nopt{archos}{%
Martin Arver09c39612006-08-18 16:57:56 +0000228 \item Load an image and show as backdrop using the \config{\%X} tag. The
229 image must be of the same exact dimensions as your display.
Nils Wallméniusda555882006-11-13 15:14:28 +0000230 }%
Martin Arvera245e882006-03-08 15:04:36 +0000231\end{enumerate}
Martin Arver959d23e2006-06-04 15:03:39 +0000232
Nils Wallménius12eb0582008-03-23 22:07:09 +0000233\optv{swcodec}{% This doesn't depend on swcodec but we don't have a \noptv
Nils Wallméniusda555882006-11-13 15:14:28 +0000234 % command.
Martin Arver47ea9062006-06-07 12:15:46 +0000235 Example on background image use:
236 \begin{example}
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000237 %X|background.bmp|
Martin Arver47ea9062006-06-07 12:15:46 +0000238 \end{example}
239 The image with filename \fname{background.bmp} is loaded and used in the WPS.
Nils Wallméniusda555882006-11-13 15:14:28 +0000240}%
Martin Arver47ea9062006-06-07 12:15:46 +0000241
242Example on bitmap preloading and use:
243\begin{example}
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000244 %x|a|static_icon.bmp|50|50|
245 %xl|b|rep\_off.bmp|16|64|
246 %xl|c|rep\_all.bmp|16|64|
247 %xl|d|rep\_one.bmp|16|64|
248 %xl|e|rep\_shuffle.bmp|16|64|
249 %?mm<%xdb|%xdc|%xdd|%xde>
Martin Arver47ea9062006-06-07 12:15:46 +0000250\end{example}
251Four images at the same x and y position are preloaded in the example. Which
Martin Arver68e40172006-06-07 16:37:04 +0000252image to display is determined by the \config{\%mm} tag (the repeat mode).
Martin Arvera245e882006-03-08 15:04:36 +0000253
254\subsubsection{Example File}
Martin Arver47ea9062006-06-07 12:15:46 +0000255\begin{example}
Dominik Riebelingf949c8e2006-06-07 17:09:06 +0000256 %s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]>
257 %pb%pc/%pt
Martin Arver47ea9062006-06-07 12:15:46 +0000258\end{example}
Dominik Riebelingebb8a222006-04-04 17:48:10 +0000259That is, ``tracknum -- title [artist, album]'', where most fields are only
260displayed if available. Could also be rendered as ``filename'' or ``tracknum --
261title [artist]''.
Martin Arvera245e882006-03-08 15:04:36 +0000262
Nils Wallménius12eb0582008-03-23 22:07:09 +0000263%\opt{lcd_bitmap}{
Martin Arvera245e882006-03-08 15:04:36 +0000264% \begin{verbatim}
Martin Arver47ea9062006-06-07 12:15:46 +0000265% %s%?it<%?in<%in. |>%it|%fn>
266% %s%?ia<%ia|%?d2<%d2|(root)>>
267% %s%?id<%id|%?d1<%d1|(root)>> %?iy<(%iy)|>
268%
269% %al%pc/%pt%ar[%pp:%pe]
270% %fbkBit %?fv<avg|> %?iv<(id3v%iv)|(no id3)>
271% %pb
272% %pm
273% % \end{verbatim}
274%}
Martin Arver8e8207f2006-02-11 00:57:17 +0000275
Marc Guay85eec852008-06-24 05:16:23 +0000276\section{\label{ref:manage_settings}Managing Rockbox Settings}
Martin Arver8e8207f2006-02-11 00:57:17 +0000277
Marc Guay85eec852008-06-24 05:16:23 +0000278\subsection{Introduction to \fname{.cfg} Files.}
Marianne Arnoldb24f5ce2008-01-17 19:45:22 +0000279Rockbox allows users to store and load multiple settings through the use of
280configuration files. A configuration file is simply a text file with the
281extension \fname{.cfg}.
Martin Arver8e8207f2006-02-11 00:57:17 +0000282
Marianne Arnolda352c622007-05-19 19:03:39 +0000283A configuration file may reside anywhere on the disk. Multiple
Martin Arver09c39612006-08-18 16:57:56 +0000284configuration files are permitted. So, for example, you could have
285a \fname{car.cfg} file for the settings that you use while playing your
286jukebox in your car, and a \fname{headphones.cfg} file to store the
287settings that you use while listening to your \dap\ through headphones.
Martin Arver8e8207f2006-02-11 00:57:17 +0000288
Martin Arver09c39612006-08-18 16:57:56 +0000289See \reference{ref:cfg_specs} below for an explanation of the format
Marianne Arnoldb24f5ce2008-01-17 19:45:22 +0000290for configuration files. See \reference{ref:manage_settings_menu} for an
Martin Arver09c39612006-08-18 16:57:56 +0000291explanation of how to create, edit and load configuration files.
Martin Arver8e8207f2006-02-11 00:57:17 +0000292
Martin Arver09c39612006-08-18 16:57:56 +0000293\subsection{\label{ref:cfg_specs}Specifications for \fname{.cfg}
Marc Guay85eec852008-06-24 05:16:23 +0000294 Files.}
Michael DiFebbo06238412006-08-12 15:56:33 +0000295
Martin Arver09c39612006-08-18 16:57:56 +0000296The Rockbox configuration file is a plain text file, so once you use the
Nils Wallméniusb659c0c2008-03-22 15:26:45 +0000297\setting{Save .cfg file} option to create the file, you can edit the file on
Marianne Arnoldb24f5ce2008-01-17 19:45:22 +0000298your computer using any text editor program. See
Martin Arver09c39612006-08-18 16:57:56 +0000299Appendix \reference{ref:config_file_options} for available settings. Configuration
Marianne Arnoldb24f5ce2008-01-17 19:45:22 +0000300files use the following formatting rules: %
Martin Arver09c39612006-08-18 16:57:56 +0000301
302\begin{enumerate}
303\item Each setting must be on a separate line.
304\item Each line has the format ``setting: value''.
305\item Values must be within the ranges specified in this manual for each
306 setting.
307\item Lines starting with \# are ignored. This lets you write comments into
308 your configuration files.
309\end{enumerate}
310
311Example of a configuration file:
312\begin{example}
313 # Example configuration file
314 # volume: 70
315 # bass: 11
316 # treble: 12
317 # balance: 0
318 # time format: 12hour
319 # volume display: numeric
320 # show files: supported
321 # wps: /.rockbox/car.wps
322 # lang: /.rockbox/afrikaans.lng
323\end{example}
324
325\note{As you can see from the example, configuration files do not need to
326 contain all of the Rockbox options. You can create configuration files
327 that change only certain settings. So, for example, supppose you
Martin Arver56b339e2006-08-27 20:44:23 +0000328 typically use the \dap{} at one volume in the car, and another when using
Martin Arver09c39612006-08-18 16:57:56 +0000329 headphones. Further, suppose you like to use an inverse LCD when you are
330 in the car, and a regular LCD setting when you are using headphones. You
331 could create configuration files that control only the volume and LCD
332 settings. Create a few different files with different settings, give
333 each file a different name (such as \fname{car.cfg},
334 \fname{headphones.cfg}, etc.), and you can then use the \setting{Browse .cfg
Michael DiFebbo06238412006-08-12 15:56:33 +0000335 files} option to quickly change settings.}
Marc Guay85eec852008-06-24 05:16:23 +0000336
337 A special case configuration file can be used to force a particular setting or settings every time Rockbox starts up (e.g. to set the volume to a safe level).
338Format a new configuration file as above with the required setting(s) and save it into the \fname{/.rockbox} directory with the filename \fname{fixed.cfg}.
Martin Arver09c39612006-08-18 16:57:56 +0000339
340\subsection{\label{ref:manage_settings_menu}The \setting{Manage Settings}
341 menu} The \setting{Manage Settings} menu can be found in the \setting{Main
Martin Arver56b339e2006-08-27 20:44:23 +0000342 Menu}. The \setting{Manage Settings} menu allows you to save and load
343\fname{.cfg} files. \opt{MASCODEC}{The \setting{Manage Settings} menu also
Martin Arver09c39612006-08-18 16:57:56 +0000344 allows you to load or save different firmware versions.}
345
346\begin{description}
Michael DiFebbo06238412006-08-12 15:56:33 +0000347
Marc Guay85eec852008-06-24 05:16:23 +0000348\item [Browse .cfg Files]Opens the file browser in the \fname{/.rockbox}
Martin Arver56b339e2006-08-27 20:44:23 +0000349 directory and displays all \fname{.cfg} (configuration) files. Selecting a
350 \fname{.cfg} file will cause Rockbox to load the settings contained in that
351 file. Pressing \ButtonLeft\ will exit back to the \setting{Manage Settings}
352 menu. See the \setting{Write .cfg files} option on the
353 \setting{Manage Settings} menu for details of how to save and edit a
354 configuration file.
Martin Arver09c39612006-08-18 16:57:56 +0000355
Marc Guay162a8f22008-06-28 16:10:02 +0000356\item [Reset Settings]This wipes the saved settings
357 in the \dap\ and resets all settings to their default values.
Martin Arver09c39612006-08-18 16:57:56 +0000358
Marianne Arnold56b3f922008-01-20 16:33:12 +0000359 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,SANSA_E200_PAD,SANSA_C200_PAD}{
360 \note{You can also reset all settings to their default
Marc Guay162a8f22008-06-28 16:10:02 +0000361 values by turning off the \dap, turning it back on, and holding the
Marianne Arnoldb24f5ce2008-01-17 19:45:22 +0000362 \ButtonRec\ button immediately after the \dap\ turns on.}
Martin Arver09c39612006-08-18 16:57:56 +0000363 }
Marc Guay162a8f22008-06-28 16:10:02 +0000364 \opt{IRIVER_H10_PAD}{\note{You can also reset all settings to
Marianne Arnold56b3f922008-01-20 16:33:12 +0000365 their default values by turning off the \dap, and turning it back on
366 with the \ButtonHold\ button on.}
Marcoen Hirschberg1e514772007-04-27 19:38:16 +0000367 }
Marc Guay162a8f22008-06-28 16:10:02 +0000368 \opt{IPOD_4G_PAD}{\note{You can also reset all settings to their default
369 values by turning off the \dap, turning it back on, and activating the
370 \ButtonHold\ button immediately after the backlight comes on.}
371 }
Marianne Arnold56b3f922008-01-20 16:33:12 +0000372 \opt{GIGABEAT_PAD}{\note{You can also reset all settings to their default
373 values by turning off the \dap, turning it back on and pressing the
374 \ButtonA\ button immediately after the \dap\ turns on.}
Marianne Arnoldb24f5ce2008-01-17 19:45:22 +0000375 }
376
Marc Guay85eec852008-06-24 05:16:23 +0000377\item [Save .cfg File]This option writes a \fname{.cfg} file to
Nils Wallméniusb659c0c2008-03-22 15:26:45 +0000378 your \daps{} disk. The configuration file has the \fname{.cfg}
Martin Arver09c39612006-08-18 16:57:56 +0000379 extension and is used to store all of the user settings that are described
380 throughout this manual.
Michael DiFebbo06238412006-08-12 15:56:33 +0000381
Marc Guay85eec852008-06-24 05:16:23 +0000382 Hint: Use the \setting{Save .cfg File} feature (\setting{Main Menu
Martin Arver09c39612006-08-18 16:57:56 +0000383 $\rightarrow$ General Settings}) to save the current settings, then
384 use a text editor to customize the settings file. See Appendix
385 \reference{ref:config_file_options} for the full reference of available
386 options.
Dominik Riebelingd3bf94f2008-03-11 18:43:56 +0000387
Marc Guay85eec852008-06-24 05:16:23 +0000388\item [Save Sound Settings]This option writes a \fname{.cfg} file to
Dominik Riebelingd3bf94f2008-03-11 18:43:56 +0000389 your \daps\ disk. The configuration file has the \fname{.cfg}
390 extension and is used to store all of the sound related settings.
391
Marc Guay85eec852008-06-24 05:16:23 +0000392\item [Save Theme Settings]This option writes a \fname{.cfg} file to
Dominik Riebelingd3bf94f2008-03-11 18:43:56 +0000393 your \daps\ disk. The configuration file has the \fname{.cfg}
394 extension and is used to store all of the theme related settings.
Michael DiFebbo06238412006-08-12 15:56:33 +0000395
Martin Arver09c39612006-08-18 16:57:56 +0000396\end{description}
Martin Arver8e8207f2006-02-11 00:57:17 +0000397
Martin Arver8e8207f2006-02-11 00:57:17 +0000398\section{\label{ref:FirmwareLoading}Firmware Loading}
Martin Arver96f898e2006-03-25 09:22:43 +0000399\opt{player,recorder,recorderv2fm,ondio}{
Martin Arver7bdd03a2006-08-27 15:00:50 +0000400 When your \dap{} powers on, it loads the Archos firmware in ROM, which
Marianne Arnoldb2f7c612007-12-14 02:03:58 +0000401 automatically checks your \daps{} root directory for a file named
Martin Arver47ea9062006-06-07 12:15:46 +0000402 \firmwarefilename. Note that Archos firmware can only read the first
Thom Johansenc479b992008-02-13 13:32:44 +0000403 ten characters of each filename in this process, so do not rename your old
Martin Arver47ea9062006-06-07 12:15:46 +0000404 firmware files with names like \firmwarefilename.\fname{old} and so on,
Thom Johansen10d03442007-12-13 22:51:27 +0000405 because it is possible that the \dap{} will load a file other than the one
Martin Arver7bdd03a2006-08-27 15:00:50 +0000406 you intended.
Martin Arverd3d3e342006-03-15 10:56:14 +0000407}
Martin Arver8e8207f2006-02-11 00:57:17 +0000408
Marc Guay85eec852008-06-24 05:16:23 +0000409\subsection{\label{ref:using_rolo}Using ROLO (Rockbox Loader)}
Dominik Riebelingebb8a222006-04-04 17:48:10 +0000410Rockbox is able to load and start another firmware file without rebooting.
Dominik Riebeling27948882006-07-24 20:53:27 +0000411You just ``play'' a file with the extension %
412\opt{recorder,recorderv2fm,ondio}{\fname{.ajz}.} %
413\opt{player}{\fname{.mod}.} %
Nils Wallménius924c0862007-09-18 21:56:42 +0000414\opt{h1xx,h300}{\fname{.iriver}.} %
Dominik Riebeling27948882006-07-24 20:53:27 +0000415\opt{ipod}{\fname{.ipod}.} %
416\opt{iaudio}{\fname{.iaudio}.} %
Nils Wallménius924c0862007-09-18 21:56:42 +0000417\opt{sansa,h10,h10_5gb}{\fname{.mi4}.} %
Dominik Riebeling27948882006-07-24 20:53:27 +0000418This can be used to test new firmware versions without deleting your
Dominik Riebelingebb8a222006-04-04 17:48:10 +0000419current version.
Martin Arver8e8207f2006-02-11 00:57:17 +0000420
Martin Arver30b0e662006-06-15 11:56:50 +0000421\opt{archos}{\input{advanced_topics/archos-flashing.tex}}