Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 1 | \chapter{Advanced Topics} |
Martin Arver | 35dcf90 | 2006-03-08 17:58:11 +0000 | [diff] [blame] | 2 | |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 3 | \section{\label{ref:CustomisingUI}Customising the userinterface} |
Martin Arver | 7bdd03a | 2006-08-27 15:00:50 +0000 | [diff] [blame] | 4 | \subsection{\label{ref:GettingExtras}Getting Extras} |
| 5 | \opt{HAVE_LCD_BITMAP}{ |
| 6 | Rockbox supports custom fonts. A collection of fonts is available for download |
| 7 | in the font package at \url{http://www.rockbox.org/daily.shtml}}. Support for a |
| 8 | number of languages is included with Rockbox, and the latest \fname{.lng} files |
| 9 | are always included in the different Rockbox builds. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 10 | |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 11 | \opt{HAVE_LCD_BITMAP}{ |
| 12 | \subsection{\label{ref:Loadingfonts}Loading Fonts} |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 13 | Rockbox can load fonts dynamically. Simply copy the \fname{.fnt} file to the |
| 14 | \dap\ and ``play'' them in the directory browser or select |
| 15 | \setting{General Settings $\rightarrow$ Fonts} from the Main Menu. |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 16 | If you want a font to be loaded automatically every time you start up, |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 17 | it must be located in the \fname{/.rockbox } folder and the filename |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 18 | must be at most 24 characters long. |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 19 | \warn{Advanced Users Only: Any BDF font file up to 16 pixels high should |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 20 | be usable with Rockbox. To convert from \fname{.bdf} to \fname{.fnt}, use |
| 21 | the \fname{convbdf} tool. This tool can be found in the \fname{tools} |
| 22 | directory of the Rockbox source code.} |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 23 | } |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 24 | |
| 25 | \subsection{\label{ref:Loadinglanguages}Loading Languages} |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 26 | Rockbox can load language files at runtime. Simply copy the \fname{.lng} file |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 27 | \emph{(do not use the .lang file)} to the \dap\ and ``play'' it in the |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 28 | Rockbox directory browser or select \setting{General Settings $\rightarrow$ |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 29 | Languages }from the Main Menu. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 30 | |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 31 | \note{If you want a language to be loaded automatically every time you start |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 32 | up, it must be located in the \fname{/.rockbox }folder and the filename must |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 33 | be a maximum of 24 characters long.} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 34 | |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 35 | If your language is not yet supported and you want to write your own language |
| 36 | file find the instructions on the Rockbox website: |
Martin Arver | 18239c0 | 2006-06-06 14:05:41 +0000 | [diff] [blame] | 37 | \wikilink{HowtoUpdateLangfile} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 38 | |
| 39 | \section{\label{ref:ConfiguringtheWPS}Configuring the WPS} |
| 40 | |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 41 | \subsection{WPS -- General Info} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 42 | |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 43 | \begin{description} |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 44 | \item[Description: ] The WPS or While Playing Screen is the name used to |
| 45 | describe the information displayed on the \daps\ screen whilst an audio track |
| 46 | is being played. The default WPS is a relatively simple screen displaying |
| 47 | Track name, Artist, Album etc. in the default font as a purely text based |
| 48 | layout. There are a number of WPS files included in Rockbox, and you can |
| 49 | load one of these at anytime by selecting it in |
| 50 | \setting{General Settings $\rightarrow$ Display $\rightarrow$ Browse .wps files}. |
Martin Arver | 6fc30d6 | 2006-08-28 17:44:49 +0000 | [diff] [blame] | 51 | \opt{HAVE_REMOTE_LCD}{There is a related option to browse \fname{.rwps} |
| 52 | files for \daps{} with LCD remote controls installed. This will load a |
| 53 | similar WPS screen for the remote but with usually a simpler and more |
| 54 | concise layout.} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 55 | |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 56 | \note{``Playing'' a \fname{.wps} from the file browser has the same effect.} |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 57 | |
| 58 | \item [File Location: ]Custom WPS files may be located anywhere on the drive. |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 59 | The only restriction is that they must end in \fname{.wps}. When you ``play'' |
| 60 | a \fname{.wps} file, it will be used for future WPS screens, and if the |
| 61 | ``played'' \fname{.wps} file is located in the \fname{/.rockbox} folder, it |
| 62 | will be remembered and used after reboot. The \fname{.wps} filename must be |
| 63 | no more than 24 characters long for it to be remembered. |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 64 | \end{description} |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 65 | |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 66 | \subsection{\label{ref:CreateYourOwnWPS}WPS -- Build Your Own} |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 67 | Quite simply, enter the WPS code in your favourite text editor, Notepad on |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 68 | Windows works fine. When you save it, instead of saving it as a \fname{.txt} |
| 69 | file, save it as a \fname{.wps} file. Example: Instead of \fname{Rockbox.txt}, |
| 70 | save the file as \fname{Rockbox.wps}. To make sure non english characters |
| 71 | display correctly in your WPS you must save the .wps file with UTF-8 character |
| 72 | encoding. This can be done in most editors, for example Notepad in Windows 2000 |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 73 | or XP (but not in 9x/ME) can do this. See appendix \reference{ref:wps_tags} for |
| 74 | all the tags that are available. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 75 | |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 76 | \begin{itemize} |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 77 | \item All characters not preceded by \% are displayed as typed. |
| 78 | \item Lines beginning with \# are comments and will be ignored. |
| 79 | \item Maximum file size used is |
Martin Arver | 56b339e | 2006-08-27 20:44:23 +0000 | [diff] [blame] | 80 | \opt{HAVE_LCD_BITMAP}{1600} |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 81 | \opt{player}{400} bytes. |
| 82 | If you have a bigger WPS file, only the first part of it will be |
| 83 | loaded and used. |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 84 | \end{itemize} |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 85 | |
Dominik Riebeling | 5ec3805 | 2006-08-28 18:09:17 +0000 | [diff] [blame] | 86 | \note{Keep in mind that your \dap{} resolution is \genericimg{} (with |
| 87 | the last number giving the colour depth in bits) when |
| 88 | designing your own WPS, or if you use a WPS designed for another target. |
| 89 | \opt{HAVE_REMOTE_LCD}{The resolution of the remote is |
| 90 | \opt{h1xx,h300}{128x64x1}\opt{x5}{128x96x2} pixels.}} |
Martin Arver | 6fc30d6 | 2006-08-28 17:44:49 +0000 | [diff] [blame] | 91 | |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 92 | \subsubsection{Conditional Tags} |
Martin Arver | d3d3e34 | 2006-03-15 10:56:14 +0000 | [diff] [blame] | 93 | |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 94 | \begin{description} |
| 95 | \item[If/else: ] |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 96 | Syntax: \config{\%?xx{\textless}true{\textbar}false{\textgreater}} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 97 | |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 98 | If the tag specified by ``\config{xx}'' has a value, the text between the |
| 99 | ``\config{{\textless}}'' and the ``\config{{\textbar}}'' is displayed (the true |
| 100 | part), else the text between the ``\config{{\textbar}}'' and the |
| 101 | ``\config{{\textgreater}}'' is displayed (the false part). |
| 102 | The else part is optional, so the ``\config{{\textbar}}'' does not have to be |
| 103 | specified if no else part is desired. The conditionals nest, so the text in the |
| 104 | if and else part can contain all \config{\%} commands, including conditionals. |
Martin Arver | d3d3e34 | 2006-03-15 10:56:14 +0000 | [diff] [blame] | 105 | |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 106 | \item[Enumerations: ] |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 107 | Syntax: \config{\%?xx{\textless}alt1{\textbar}alt2{\textbar}alt3{\textbar}\dots{\textbar}else{\textgreater}} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 108 | |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 109 | For tags with multiple values, like Play status, the conditional can hold a |
| 110 | list of alternatives, one for each value the tag can have. |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 111 | Example enumeration: |
| 112 | \begin{example} |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 113 | \%?mp{\textless}Stop{\textbar}Play{\textbar}Pause{\textbar}Ffwd{\textbar}Rew{\textgreater} |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 114 | \end{example} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 115 | |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 116 | The last else part is optional, and will be displayed if the tag has no value. |
| 117 | The WPS parser will always display the last part if the tag has no value, or if |
| 118 | the list of alternatives is too short. |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 119 | \end{description} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 120 | |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 121 | \subsubsection{Next Song info} |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 122 | You can display information about the next song -- the song that is |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 123 | about to play after the one currently playing (unless you change the |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 124 | plan). |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 125 | |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 126 | If you use the upper-case versions of the |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 127 | three tags: \config{F}, \config{I} and \config{D}, they will instead refer to |
| 128 | the next song instead of the current one. Example: \config{\%Ig} is the genre |
| 129 | name used in the next song and \config{\%Ff} is the mp3 frequency. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 130 | |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 131 | \note{The next song information \emph{will not} be available at all |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 132 | times, but will most likely be available at the end of a song. We |
| 133 | suggest you use the conditional display tag a lot when displaying |
| 134 | information about the next song!} |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 135 | |
| 136 | \subsubsection{Alternating sublines} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 137 | |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 138 | It is possible to group items on each line into 2 or more groups or |
| 139 | ``sublines''. Each subline will be displayed in succession on the line for a |
| 140 | specified time, alternating continuously through each defined subline. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 141 | |
| 142 | Items on a line are broken into sublines with the semicolon |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 143 | '\config{;}' character. The display time for |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 144 | each subline defaults to 2 seconds unless modified by using the |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 145 | '\config{\%t}' tag to specify an alternate |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 146 | time (in seconds and optional tenths of a second) for the subline to be |
| 147 | displayed. |
| 148 | |
| 149 | Subline related special characters and tags: |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 150 | \begin{description} |
| 151 | \item[;] Split items on a line into separate sublines |
| 152 | \item[\%t] Set the subline display time. The |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 153 | '\config{\%t}' is followed by either integer |
| 154 | seconds (\config{\%t5}), or seconds and tenths of a second (\config{\%t3.5}). |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 155 | \end{description} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 156 | |
| 157 | Each alternating subline can still be optionally scrolled while it is |
| 158 | being displayed, and scrollable formats can be displayed on the same |
| 159 | line with non{}-scrollable formats (such as track elapsed time) as long |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 160 | as they are separated into different sublines. |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 161 | Example subline definition: |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 162 | \begin{example} |
Martin Arver | 49cdd5e | 2006-06-07 13:29:52 +0000 | [diff] [blame] | 163 | %s%t4%ia;%s%it;%t3%pc %pr : Display id3 artist for 4 seconds, |
| 164 | Display id3 title for 2 seconds, |
| 165 | Display current and remaining track time |
| 166 | for 3 seconds, |
| 167 | repeat... |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 168 | \end{example} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 169 | |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 170 | Conditionals can be used with sublines to display a different set and/or number |
| 171 | of sublines on the line depending on the evaluation of the conditional. |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 172 | Example subline with conditionals: |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 173 | \begin{example} |
Martin Arver | 49cdd5e | 2006-06-07 13:29:52 +0000 | [diff] [blame] | 174 | %?it{\textless}%t8%s%it{\textbar}%s%fn{\textgreater};%?ia{\textless}%t3%s%ia{\textbar}%t0{\textgreater}\\ |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 175 | \end{example} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 176 | |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 177 | The format above will do two different things depending if ID3 tags are |
| 178 | present. If the ID3 artist and title are present: |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 179 | \begin{itemize} |
| 180 | \item Display id3 title for 8 seconds, |
| 181 | \item Display id3 artist for 3 seconds, |
| 182 | \item repeat\dots |
| 183 | \end{itemize} |
| 184 | If the ID3 artist and title are not present: |
| 185 | \begin{itemize} |
| 186 | \item Display the filename continuously. |
| 187 | \end{itemize} |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 188 | Note that by using a subline display time of 0 in one branch of a conditional, |
| 189 | a subline can be skipped (not displayed) when that condition is met. |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 190 | |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 191 | \subsubsection{Using Images} |
Dominik Riebeling | b7eef89 | 2006-04-10 21:47:09 +0000 | [diff] [blame] | 192 | You can have as many as 52 images in your WPS. There are various ways of |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 193 | displaying images: |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 194 | \begin{enumerate} |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 195 | \item Load and always show the image, using the \config{\%x} tag |
| 196 | \item Preload the image with \config{\%xl} and show it with \config{\%xd}. |
| 197 | This way you can have your images displayed conditionally. |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 198 | \opt{HAVE_LCD_COLOR}{ |
| 199 | \item Load an image and show as backdrop using the \config{\%X} tag. The |
| 200 | image must be of the same exact dimensions as your display. |
| 201 | } |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 202 | \end{enumerate} |
Martin Arver | 959d23e | 2006-06-04 15:03:39 +0000 | [diff] [blame] | 203 | |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 204 | \optv{HAVE_LCD_COLOR}{ |
| 205 | Example on background image use: |
| 206 | \begin{example} |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 207 | %X|background.bmp| |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 208 | \end{example} |
| 209 | The image with filename \fname{background.bmp} is loaded and used in the WPS. |
Martin Arver | 959d23e | 2006-06-04 15:03:39 +0000 | [diff] [blame] | 210 | } |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 211 | |
| 212 | Example on bitmap preloading and use: |
| 213 | \begin{example} |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 214 | %x|a|static_icon.bmp|50|50| |
| 215 | %xl|b|rep\_off.bmp|16|64| |
| 216 | %xl|c|rep\_all.bmp|16|64| |
| 217 | %xl|d|rep\_one.bmp|16|64| |
| 218 | %xl|e|rep\_shuffle.bmp|16|64| |
| 219 | %?mm<%xdb|%xdc|%xdd|%xde> |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 220 | \end{example} |
| 221 | Four images at the same x and y position are preloaded in the example. Which |
Martin Arver | 68e4017 | 2006-06-07 16:37:04 +0000 | [diff] [blame] | 222 | image to display is determined by the \config{\%mm} tag (the repeat mode). |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 223 | |
| 224 | \subsubsection{Example File} |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 225 | \begin{example} |
Dominik Riebeling | f949c8e | 2006-06-07 17:09:06 +0000 | [diff] [blame] | 226 | %s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]> |
| 227 | %pb%pc/%pt |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 228 | \end{example} |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 229 | That is, ``tracknum -- title [artist, album]'', where most fields are only |
| 230 | displayed if available. Could also be rendered as ``filename'' or ``tracknum -- |
| 231 | title [artist]''. |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 232 | |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 233 | %\opt{HAVE_LCD_BITMAP}{ |
Martin Arver | a245e88 | 2006-03-08 15:04:36 +0000 | [diff] [blame] | 234 | % \begin{verbatim} |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 235 | % %s%?it<%?in<%in. |>%it|%fn> |
| 236 | % %s%?ia<%ia|%?d2<%d2|(root)>> |
| 237 | % %s%?id<%id|%?d1<%d1|(root)>> %?iy<(%iy)|> |
| 238 | % |
| 239 | % %al%pc/%pt%ar[%pp:%pe] |
| 240 | % %fbkBit %?fv<avg|> %?iv<(id3v%iv)|(no id3)> |
| 241 | % %pb |
| 242 | % %pm |
| 243 | % % \end{verbatim} |
| 244 | %} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 245 | |
Michael DiFebbo | 0623841 | 2006-08-12 15:56:33 +0000 | [diff] [blame] | 246 | \section{\label{ref:manage_settings}Managing Rockbox settings} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 247 | |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 248 | \subsection{Introduction to \fname{.cfg} files.} |
| 249 | Rockbox allows users to store and load multiple settings through the use of |
| 250 | configuration files. A configuration file is simply a text file with the |
| 251 | extension \fname{.cfg}. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 252 | |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 253 | A configuration file may reside anywhere on the hard disk. Multiple |
| 254 | configuration files are permitted. So, for example, you could have |
| 255 | a \fname{car.cfg} file for the settings that you use while playing your |
| 256 | jukebox in your car, and a \fname{headphones.cfg} file to store the |
| 257 | settings that you use while listening to your \dap\ through headphones. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 258 | |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 259 | See \reference{ref:cfg_specs} below for an explanation of the format |
| 260 | for configuration files. See \reference{ref:manage_settings_menu} for an |
| 261 | explanation of how to create, edit and load configuration files. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 262 | |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 263 | \subsection{\label{ref:cfg_specs}Specifications for \fname{.cfg} |
| 264 | files.} |
Michael DiFebbo | 0623841 | 2006-08-12 15:56:33 +0000 | [diff] [blame] | 265 | |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 266 | The Rockbox configuration file is a plain text file, so once you use the |
| 267 | \setting{Write .cfg file} option to create the file, you can edit the file on |
| 268 | your computer using any text editor program. See |
| 269 | Appendix \reference{ref:config_file_options} for available settings. Configuration |
| 270 | files use the following formatting rules: % |
| 271 | |
| 272 | \begin{enumerate} |
| 273 | \item Each setting must be on a separate line. |
| 274 | \item Each line has the format ``setting: value''. |
| 275 | \item Values must be within the ranges specified in this manual for each |
| 276 | setting. |
| 277 | \item Lines starting with \# are ignored. This lets you write comments into |
| 278 | your configuration files. |
| 279 | \end{enumerate} |
| 280 | |
| 281 | Example of a configuration file: |
| 282 | \begin{example} |
| 283 | # Example configuration file |
| 284 | # volume: 70 |
| 285 | # bass: 11 |
| 286 | # treble: 12 |
| 287 | # balance: 0 |
| 288 | # time format: 12hour |
| 289 | # volume display: numeric |
| 290 | # show files: supported |
| 291 | # wps: /.rockbox/car.wps |
| 292 | # lang: /.rockbox/afrikaans.lng |
| 293 | \end{example} |
| 294 | |
| 295 | \note{As you can see from the example, configuration files do not need to |
| 296 | contain all of the Rockbox options. You can create configuration files |
| 297 | that change only certain settings. So, for example, supppose you |
Martin Arver | 56b339e | 2006-08-27 20:44:23 +0000 | [diff] [blame] | 298 | typically use the \dap{} at one volume in the car, and another when using |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 299 | headphones. Further, suppose you like to use an inverse LCD when you are |
| 300 | in the car, and a regular LCD setting when you are using headphones. You |
| 301 | could create configuration files that control only the volume and LCD |
| 302 | settings. Create a few different files with different settings, give |
| 303 | each file a different name (such as \fname{car.cfg}, |
| 304 | \fname{headphones.cfg}, etc.), and you can then use the \setting{Browse .cfg |
Michael DiFebbo | 0623841 | 2006-08-12 15:56:33 +0000 | [diff] [blame] | 305 | files} option to quickly change settings.} |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 306 | |
| 307 | \subsection{\label{ref:manage_settings_menu}The \setting{Manage Settings} |
| 308 | menu} The \setting{Manage Settings} menu can be found in the \setting{Main |
Martin Arver | 56b339e | 2006-08-27 20:44:23 +0000 | [diff] [blame] | 309 | Menu}. The \setting{Manage Settings} menu allows you to save and load |
| 310 | \fname{.cfg} files. \opt{MASCODEC}{The \setting{Manage Settings} menu also |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 311 | allows you to load or save different firmware versions.} |
| 312 | |
| 313 | \begin{description} |
Michael DiFebbo | 0623841 | 2006-08-12 15:56:33 +0000 | [diff] [blame] | 314 | |
Martin Arver | 56b339e | 2006-08-27 20:44:23 +0000 | [diff] [blame] | 315 | \item [Browse .cfg Files.]Opens the file browser in the \fname{/.rockbox} |
| 316 | directory and displays all \fname{.cfg} (configuration) files. Selecting a |
| 317 | \fname{.cfg} file will cause Rockbox to load the settings contained in that |
| 318 | file. Pressing \ButtonLeft\ will exit back to the \setting{Manage Settings} |
| 319 | menu. See the \setting{Write .cfg files} option on the |
| 320 | \setting{Manage Settings} menu for details of how to save and edit a |
| 321 | configuration file. |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 322 | |
| 323 | \item [Browse Firmwares.] |
| 324 | % |
Martin Arver | 56b339e | 2006-08-27 20:44:23 +0000 | [diff] [blame] | 325 | \opt{SWCODEC}{\fixme{This is a legacy item, and is deprecated.}} |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 326 | % |
| 327 | \opt{MASCODEC}{ |
| 328 | This displays a list of firmware files in the \fname{/.rockbox} |
| 329 | system directory. |
| 330 | % |
Martin Arver | dcf83af | 2006-08-27 17:05:57 +0000 | [diff] [blame] | 331 | \opt{recorder,recorderv2fm,ondio}{Firmware files have an extension of |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 332 | \fname{.ajz}. } |
| 333 | % |
Martin Arver | 56b339e | 2006-08-27 20:44:23 +0000 | [diff] [blame] | 334 | \opt{player}{Firmware files have an extension of \fname{.mod}. } |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 335 | % |
| 336 | Playing a firmware file loads it into memory. Thus, it is possible |
| 337 | to run the original Archos firmware or a different version of Rockbox |
| 338 | from here (assuming that you have the right files installed on your |
| 339 | disk. There is no need for any other file or directory to be |
| 340 | installed to use this option; the firmware is resident in that one |
| 341 | file. |
| 342 | } |
| 343 | |
| 344 | \item [Reset Settings.]This wipes the saved settings in the \dap\ and |
| 345 | resets all settings to their default values. |
| 346 | |
| 347 | \opt{h100,h300}{\note{You can also reset all settings to their default |
| 348 | values by turning off the \dap, turning it back on, and pressing the |
| 349 | \ButtonRec button immediately after the \dap\ turns on.} |
| 350 | } |
| 351 | \opt{ipod}{\note{You can also reset all settings to their default values |
| 352 | by turning off the \dap, and turning it back on with the hold button |
| 353 | on.} |
| 354 | } |
Michael DiFebbo | 0623841 | 2006-08-12 15:56:33 +0000 | [diff] [blame] | 355 | |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 356 | \item [Write .cfg file.]This option writes a \fname{.cfg} file to |
| 357 | your \daps\ hard disk. The configuration file has the \fname{.cfg} |
| 358 | extension and is used to store all of the user settings that are described |
| 359 | throughout this manual. |
Michael DiFebbo | 0623841 | 2006-08-12 15:56:33 +0000 | [diff] [blame] | 360 | |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 361 | Hint: Use the \setting{Write .cfg file} feature (\setting{Main Menu |
| 362 | $\rightarrow$ General Settings}) to save the current settings, then |
| 363 | use a text editor to customize the settings file. See Appendix |
| 364 | \reference{ref:config_file_options} for the full reference of available |
| 365 | options. |
Michael DiFebbo | 0623841 | 2006-08-12 15:56:33 +0000 | [diff] [blame] | 366 | |
Martin Arver | 09c3961 | 2006-08-18 16:57:56 +0000 | [diff] [blame] | 367 | \end{description} |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 368 | |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 369 | \section{\label{ref:FirmwareLoading}Firmware Loading} |
Martin Arver | 96f898e | 2006-03-25 09:22:43 +0000 | [diff] [blame] | 370 | \opt{player,recorder,recorderv2fm,ondio}{ |
Martin Arver | 7bdd03a | 2006-08-27 15:00:50 +0000 | [diff] [blame] | 371 | When your \dap{} powers on, it loads the Archos firmware in ROM, which |
| 372 | automatically checks your \daps{} root folder for a file named |
Martin Arver | 47ea906 | 2006-06-07 12:15:46 +0000 | [diff] [blame] | 373 | \firmwarefilename. Note that Archos firmware can only read the first |
| 374 | ten characters of each filename in this process, so don't rename your old |
| 375 | firmware files with names like \firmwarefilename.\fname{old} and so on, |
Martin Arver | 7bdd03a | 2006-08-27 15:00:50 +0000 | [diff] [blame] | 376 | because it's possible that the \dap{} will load a file other than the one |
| 377 | you intended. |
Martin Arver | d3d3e34 | 2006-03-15 10:56:14 +0000 | [diff] [blame] | 378 | } |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 379 | |
Dominik Riebeling | 2794888 | 2006-07-24 20:53:27 +0000 | [diff] [blame] | 380 | \subsection{\label{ref:using_rolo}Using ROLO (Rockbox loader)} |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 381 | Rockbox is able to load and start another firmware file without rebooting. |
Dominik Riebeling | 2794888 | 2006-07-24 20:53:27 +0000 | [diff] [blame] | 382 | You just ``play'' a file with the extension % |
| 383 | \opt{recorder,recorderv2fm,ondio}{\fname{.ajz}.} % |
| 384 | \opt{player}{\fname{.mod}.} % |
| 385 | \opt{iriver}{\fname{.iriver}.} % |
| 386 | \opt{ipod}{\fname{.ipod}.} % |
| 387 | \opt{iaudio}{\fname{.iaudio}.} % |
| 388 | This can be used to test new firmware versions without deleting your |
Dominik Riebeling | ebb8a22 | 2006-04-04 17:48:10 +0000 | [diff] [blame] | 389 | current version. |
Martin Arver | 8e8207f | 2006-02-11 00:57:17 +0000 | [diff] [blame] | 390 | |
Martin Arver | 30b0e66 | 2006-06-15 11:56:50 +0000 | [diff] [blame] | 391 | \opt{archos}{\input{advanced_topics/archos-flashing.tex}} |