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