2006-09-10 10:17:47 +00:00
|
|
|
% $Id$ %
|
2006-02-11 00:57:17 +00:00
|
|
|
\chapter{Advanced Topics}
|
2006-03-08 17:58:11 +00:00
|
|
|
|
2008-06-24 05:16:23 +00:00
|
|
|
\section{\label{ref:CustomisingUI}Customising the User Interface}
|
2008-03-23 22:07:09 +00:00
|
|
|
\opt{lcd_bitmap}{
|
2008-07-06 16:10:28 +00:00
|
|
|
\subsection{\label{ref:GettingExtras}Getting Extras}
|
|
|
|
|
2006-08-27 15:00:50 +00:00
|
|
|
Rockbox supports custom fonts. A collection of fonts is available for download
|
2008-07-06 16:10:28 +00:00
|
|
|
in the font package at \url{http://www.rockbox.org/daily.shtml}.}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2008-03-23 22:07:09 +00:00
|
|
|
\opt{lcd_bitmap}{
|
2006-11-20 19:56:55 +00:00
|
|
|
\subsection{\label{ref:Loadingfonts}Loading Fonts}\index{Fonts}
|
2006-09-10 10:17:47 +00:00
|
|
|
Rockbox can load fonts dynamically. Simply copy the \fname{.fnt} file to the
|
|
|
|
\dap{} and ``play'' it in the \setting{File Browser}. If you want a font to
|
|
|
|
be loaded automatically every time you start up, it must be located in the
|
2007-12-14 02:03:58 +00:00
|
|
|
\fname{/.rockbox/fonts} directory and the filename must be at most 24 characters
|
2006-09-10 10:17:47 +00:00
|
|
|
long. You can browse the fonts in \fname{/.rockbox/fonts} under
|
2009-06-22 17:37:36 +00:00
|
|
|
\setting{Settings $\rightarrow$ Theme Settings $\rightarrow$ Font}
|
2009-08-25 21:51:55 +00:00
|
|
|
in the \setting{Main Menu}.\\
|
|
|
|
|
2010-05-18 20:45:32 +00:00
|
|
|
\note{Advanced Users Only: Any BDF font should
|
2006-09-10 10:17:47 +00:00
|
|
|
be usable with Rockbox. To convert from \fname{.bdf} to \fname{.fnt}, use
|
|
|
|
the \fname{convbdf} tool. This tool can be found in the \fname{tools}
|
2010-05-18 20:45:32 +00:00
|
|
|
directory of the Rockbox source code. See \wikilink{CreateFonts\#ConvBdf}
|
2010-05-19 16:34:20 +00:00
|
|
|
for more details. Or just run \fname{convbdf} without any parameters to
|
|
|
|
see the possible options.}
|
2006-04-04 17:48:10 +00:00
|
|
|
}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
|
|
|
\subsection{\label{ref:Loadinglanguages}Loading Languages}
|
2006-11-20 19:56:55 +00:00
|
|
|
\index{Language files}%
|
2006-06-07 12:15:46 +00:00
|
|
|
Rockbox can load language files at runtime. Simply copy the \fname{.lng} file
|
2006-04-10 21:47:09 +00:00
|
|
|
\emph{(do not use the .lang file)} to the \dap\ and ``play'' it in the
|
2007-03-15 02:09:15 +00:00
|
|
|
Rockbox directory browser or select \setting{Settings $\rightarrow$
|
2009-08-25 21:51:55 +00:00
|
|
|
General Settings $\rightarrow$ Language }from the \setting{Main Menu}.\\
|
2006-03-15 10:56:14 +00:00
|
|
|
|
2006-04-10 21:47:09 +00:00
|
|
|
\note{If you want a language to be loaded automatically every time you start
|
2007-12-14 02:03:58 +00:00
|
|
|
up, it must be located in the \fname{/.rockbox/langs} directory and the filename
|
2009-08-25 21:51:55 +00:00
|
|
|
must be a maximum of 24 characters long.\\}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2006-04-04 17:48:10 +00:00
|
|
|
If your language is not yet supported and you want to write your own language
|
|
|
|
file find the instructions on the Rockbox website:
|
2006-12-29 19:22:56 +00:00
|
|
|
\wikilink{LangFiles}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2008-03-23 22:07:09 +00:00
|
|
|
\opt{lcd_color}{
|
2009-03-20 19:33:20 +00:00
|
|
|
\subsection{\label{ref:ChangingFiletypeColours}Changing Filetype Colours}
|
2009-03-18 14:24:28 +00:00
|
|
|
Rockbox has the capability to modify the \setting{File Browser} to show
|
2009-03-20 19:33:20 +00:00
|
|
|
files of different types in different colours, depending on the file extension.
|
|
|
|
|
|
|
|
\subsubsection{Set-up}
|
2009-03-21 09:25:49 +00:00
|
|
|
There are two steps to changing the filetype colours -- creating
|
2009-03-20 19:33:20 +00:00
|
|
|
a file with the extension \fname{.colours} and then activating it using
|
|
|
|
a config file. The \fname{.colours} files \emph{must} be stored in
|
|
|
|
the \fname{/.rockbox/themes/} directory.
|
|
|
|
The \fname{.colours} file is just a text file, and can be edited with
|
|
|
|
your text editor of choice.
|
|
|
|
|
|
|
|
\subsubsection{Creating the .colours file}
|
|
|
|
The \fname{.colours} file consists of the file extension
|
|
|
|
(or \fname{folder}) followed by a colon and then the colour desired
|
|
|
|
as an RGB value in hexadecimal, as in the following example:\\*
|
|
|
|
\\
|
|
|
|
\config{folder:808080}\\
|
|
|
|
\config{mp3:00FF00}\\
|
|
|
|
\config{ogg:00FF00}\\
|
|
|
|
\config{txt:FF0000}\\
|
|
|
|
\config{???:FFFFFF}\\*
|
|
|
|
|
|
|
|
The permissible extensions are as follows:\\*
|
|
|
|
\\
|
|
|
|
\config{folder, m3u, m3u8, cfg, wps, lng, rock, bmark, cue, colours, mpa,
|
|
|
|
\firmwareextension{}, %
|
|
|
|
\opt{swcodec}{mp1, }mp2, mp3%
|
|
|
|
\opt{swcodec}{, ogg, oga, wma, wmv, asf, wav, flac, ac3, a52, mpc,
|
|
|
|
wv, m4a, m4b, mp4, mod, shn, aif, aiff, spx, sid, adx, nsf, nsfe,
|
|
|
|
spc, ape, mac, sap}%
|
|
|
|
\opt{lcd_bitmap}{\opt{swcodec}{, mpg, mpeg}}%
|
|
|
|
\opt{HAVE_REMOTE_LCD}{, rwps}%
|
|
|
|
\opt{lcd_non-mono}{, bmp}%
|
|
|
|
\opt{radio}{, fmr}%
|
|
|
|
\opt{lcd_bitmap}{, fnt, kbd}}\\*
|
|
|
|
%It'd be ideal to get these from filetypes.c
|
|
|
|
|
|
|
|
All file extensions that are not either specifically listed in the
|
|
|
|
\fname{.colours} files or are not in the list above will be
|
|
|
|
set to the colour given by \config{???}. Extensions that
|
|
|
|
are in the above list but not in the \fname{.colours}
|
|
|
|
file will be set to the foreground colour as normal.
|
|
|
|
|
|
|
|
\subsubsection{Activating}
|
|
|
|
To activate the filetype colours, the \fname{.colours} file needs to be
|
|
|
|
invoked from a \fname{.cfg} configuration file. The easiest way to do
|
|
|
|
this is to create a new text file containing the following single
|
|
|
|
line:\\*
|
|
|
|
\\
|
|
|
|
\config{filetype colours: /.rockbox/themes/filename.colours}\\*
|
|
|
|
|
|
|
|
where filename is replaced by the filename you used when creating the
|
|
|
|
\fname{.colours} file. Save this file as e.g. \fname{colours.cfg} in the
|
|
|
|
\fname{/.rockbox/themes} directory and then activate the config file
|
|
|
|
from the menu as normal
|
|
|
|
(\setting{Settings} $\rightarrow$ \setting{Theme Settings}%
|
2009-06-22 17:37:36 +00:00
|
|
|
$\rightarrow$ \setting{Browse Theme Files}).
|
2009-03-20 19:33:20 +00:00
|
|
|
|
|
|
|
\subsubsection{Editing}
|
|
|
|
The built-in \setting{Text Editor} (see \reference{sec:text_editor})
|
|
|
|
automatically understands the
|
|
|
|
\fname{.colours} file format, but an external text editor can
|
|
|
|
also be used. To edit the \fname{.colours} file using Rockbox,
|
|
|
|
``play'' it in the \setting{File Browser}. The file will open in
|
|
|
|
the \setting{Text Editor}. Upon selecting a line, the following choices
|
|
|
|
will appear:\\*
|
|
|
|
\\
|
|
|
|
\config{Extension}\\
|
|
|
|
\config{Colour}\\*
|
|
|
|
|
|
|
|
If \config{Extension} is selected, the \setting{virtual keyboard}
|
|
|
|
(see \reference{sec:virtual_keyboard}) appears,
|
|
|
|
allowing the file extension to be modified. If \config{Colour}
|
|
|
|
is selected, the colour selector screen appears. Choose the desired
|
|
|
|
colour, then save the \fname{.colours} file using the standard
|
|
|
|
\setting{Text Editor} controls.
|
2007-03-15 02:09:15 +00:00
|
|
|
}
|
|
|
|
|
2008-07-15 20:57:05 +00:00
|
|
|
\opt{lcd_non-mono}{%
|
2006-11-13 15:14:28 +00:00
|
|
|
\subsection{\label{ref:LoadingBackdrops}Loading Backdrops}
|
|
|
|
Rockbox supports showing an image as a backdrop in the \setting{File Browser}
|
|
|
|
and the menus. The backdrop image must be a \fname{.bmp} file of the exact
|
2010-05-20 16:20:58 +00:00
|
|
|
same dimensions as the display in your \dap{} (\dapdisplaysize{} with the last
|
2006-11-13 15:14:28 +00:00
|
|
|
number giving the colour depth in bits). To use an image as a backdrop browse
|
2008-03-03 23:01:44 +00:00
|
|
|
to it in the \setting{File Browser} and open the \setting{Context Menu}
|
|
|
|
(see \reference{ref:Contextmenu}) on it and select the option
|
2006-11-13 15:14:28 +00:00
|
|
|
\setting{Set As Backdrop}. If you want rockbox to remember your
|
|
|
|
backdrop the next time you start your \dap{} the backdrop must be placed in
|
2007-12-14 02:03:58 +00:00
|
|
|
the \fname{/.rockbox/backdrops} directory.
|
2006-11-13 15:14:28 +00:00
|
|
|
}%
|
|
|
|
|
2009-09-20 16:48:45 +00:00
|
|
|
\nopt{lcd_charcell}{
|
|
|
|
\subsection{UI Viewport}
|
|
|
|
By default, the UI is drawn on the whole screen. This can be changed so that
|
|
|
|
the UI is confined to a specific area of the screen, by use of a UI
|
|
|
|
viewport. This is done by adding the following line to the
|
|
|
|
\fname{.cfg} file for a theme:\\*
|
|
|
|
|
|
|
|
\nopt{lcd_non-mono}{\config{ui viewport: X,Y,[width],[height],[font]}}
|
|
|
|
\nopt{lcd_color}{\opt{lcd_non-mono}{
|
|
|
|
\config{ui viewport: X,Y,[width],[height],[font],[fgshade],[bgshade]}}}
|
|
|
|
\opt{lcd_color}{
|
|
|
|
\config{ui viewport: X,Y,[width],[height],[font],[fgcolour],[bgcolour]}}
|
|
|
|
\\*
|
|
|
|
|
|
|
|
\opt{HAVE_REMOTE_LCD}{
|
|
|
|
The dimensions of the menu that is displayed on the remote control of your
|
|
|
|
\dap\ can be set in the same way. The line to be added to the theme
|
|
|
|
\fname{.cfg} is the following:\\*
|
|
|
|
|
|
|
|
\nopt{lcd_non-mono}{\config{remote ui viewport: X,Y,[width],[height],[font]}}
|
|
|
|
\nopt{lcd_color}{\opt{lcd_non-mono}{
|
|
|
|
\config{remote ui viewport: X,Y,[width],[height],[font],[fgshade],[bgshade]}}}
|
|
|
|
\opt{lcd_color}{
|
|
|
|
\config{remote ui viewport: X,Y,[width],[height],[font],[fgcolour],[bgcolour]}}
|
|
|
|
\\*
|
|
|
|
}
|
|
|
|
|
|
|
|
Only the first two parameters \emph{have} to be specified, the others can
|
2009-12-23 20:05:29 +00:00
|
|
|
be omitted using `-' as a placeholder. The syntax is very similar to WPS
|
2009-09-20 16:48:45 +00:00
|
|
|
viewports (see \reference{ref:Viewports}). Briefly:
|
|
|
|
|
|
|
|
\nopt{lcd_non-mono}{\input{advanced_topics/viewports/mono-uivp-syntax.tex}}
|
|
|
|
\nopt{lcd_color}{\opt{lcd_non-mono}{\input{advanced_topics/viewports/grayscale-uivp-syntax.tex}}}
|
|
|
|
\opt{lcd_color}{\input{advanced_topics/viewports/colour-uivp-syntax.tex}}
|
|
|
|
}
|
|
|
|
|
2010-05-13 08:13:31 +00:00
|
|
|
\section{\label{ref:ConfiguringtheWPS}Configuring the Theme}
|
|
|
|
|
|
|
|
\subsection{Themeing -- General Info}
|
|
|
|
|
|
|
|
There are various different aspects of the Rockbox interface
|
|
|
|
that can be themed -- the WPS or \setting{While Playing Screen}, the FMS or
|
|
|
|
\setting{FM Screen} (if the \dap{} has a tuner), and the SBS or
|
2010-05-16 11:20:42 +00:00
|
|
|
\setting{Base Skin}. The WPS is the name used to
|
2010-05-13 08:13:31 +00:00
|
|
|
describe the information displayed on the \daps{} screen whilst an audio
|
|
|
|
track is being played, the FMS is the screen shown while listening to the
|
2010-05-16 11:20:42 +00:00
|
|
|
radio, and the SBS lets you specify a base skin that is shown in the
|
2010-05-13 08:13:31 +00:00
|
|
|
menus and browsers, as well as the WPS and FMS. The SBS also allows you to
|
|
|
|
control certain aspects of the appearance of the menus/browsers.
|
|
|
|
There are a number of themes included in Rockbox, and
|
|
|
|
you can load one of these at any time by selecting it in
|
|
|
|
\setting{Settings $\rightarrow$ Theme Settings $\rightarrow$ Browse Theme Files}.
|
|
|
|
It is also possible to set individual items of a theme from within the
|
|
|
|
\setting{Settings $\rightarrow$ Theme Settings} menu.
|
|
|
|
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2010-05-13 08:13:31 +00:00
|
|
|
\subsection{\label{ref:CreateYourOwnWPS}Themes -- Create Your Own}
|
|
|
|
The theme files are simple text files, and can be created (or edited) in your
|
|
|
|
favourite text editor. To make sure non-English characters
|
2010-06-20 12:58:09 +00:00
|
|
|
display correctly in your theme you must save the theme files with UTF-8
|
|
|
|
character encoding. This can be done in most editors, for example Notepad in
|
|
|
|
Windows 2000 or XP (but not in 9x/ME) can do this.
|
2006-04-10 21:47:09 +00:00
|
|
|
|
|
|
|
\begin{description}
|
2010-05-13 08:13:31 +00:00
|
|
|
\item [Files Locations: ] Each different ``themeable'' aspect requires its own file --
|
|
|
|
WPS files have the extension \fname{.wps}, FM screen files have the extension
|
|
|
|
\fname{.fms}, and SBS files have the extension \fname{.sbs}. The main theme
|
|
|
|
file has the extension \fname{.cfg}. All files should have the same name.
|
|
|
|
|
|
|
|
The theme \fname{.cfg} file should be placed in the \fname{/.rockbox/themes}
|
|
|
|
directory, while the \fname{.wps}, \fname{.fms} and \fname{.sbs} files should
|
|
|
|
be placed in the \fname{/.rockbox/wps} directory. Any images used by the
|
|
|
|
theme should be placed in a subdirectory of \fname{/.rockbox/wps} with the
|
|
|
|
same name as the theme, e.g. if the theme files are named
|
|
|
|
\fname{mytheme.wps, mytheme.sbs} etc., then the images should be placed in
|
|
|
|
\fname{/.rockbox/wps/mytheme}.
|
2006-04-10 21:47:09 +00:00
|
|
|
\end{description}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2010-05-13 08:13:31 +00:00
|
|
|
All full list of the available tags are given in appendix
|
2010-08-02 21:38:37 +00:00
|
|
|
\reference{ref:wps_tags}; some of the more powerful concepts in theme design
|
2010-05-13 08:13:31 +00:00
|
|
|
are discussed below.
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2006-06-07 17:09:06 +00:00
|
|
|
\begin{itemize}
|
2006-08-18 16:57:56 +00:00
|
|
|
\item All characters not preceded by \% are displayed as typed.
|
|
|
|
\item Lines beginning with \# are comments and will be ignored.
|
2006-06-07 17:09:06 +00:00
|
|
|
\end{itemize}
|
2006-04-10 21:47:09 +00:00
|
|
|
|
2010-08-14 10:30:42 +00:00
|
|
|
\note{Keep in mind that your \daps{} resolution is \dapdisplaysize{} (with
|
2006-08-28 18:09:17 +00:00
|
|
|
the last number giving the colour depth in bits) when
|
|
|
|
designing your own WPS, or if you use a WPS designed for another target.
|
|
|
|
\opt{HAVE_REMOTE_LCD}{The resolution of the remote is
|
2011-01-17 18:30:18 +00:00
|
|
|
\opt{iriverh100,iriverh300}{128$\times$64$\times$1}%
|
2010-08-14 10:30:42 +00:00
|
|
|
\opt{iaudiox5,iaudiom5,iaudiom3}{128$\times$96$\times$2}
|
|
|
|
pixels.
|
|
|
|
}
|
|
|
|
}
|
2006-08-28 17:44:49 +00:00
|
|
|
|
2009-09-20 16:48:45 +00:00
|
|
|
\nopt{lcd_charcell}{
|
|
|
|
\subsubsection{\label{ref:Viewports}Viewports}
|
|
|
|
|
|
|
|
By default, a viewport filling the whole screen contains all the elements
|
2010-06-20 12:58:41 +00:00
|
|
|
defined in each theme file. The
|
2009-09-20 16:48:45 +00:00
|
|
|
\opt{lcd_non-mono}{elements in this viewport are displayed
|
2010-05-18 20:23:22 +00:00
|
|
|
with the same background/\linebreak{}foreground
|
2009-09-20 16:48:45 +00:00
|
|
|
\opt{lcd_color}{colours}\nopt{lcd_color}{shades} and the}
|
|
|
|
text is rendered in the
|
|
|
|
same font as in the main menu. To change this behaviour a custom viewport can
|
|
|
|
be defined. A viewport is a rectangular window on the screen%
|
|
|
|
\opt{lcd_non-mono}{ with its own foreground/background
|
|
|
|
\opt{lcd_color}{colours}\nopt{lcd_color}{shades}}.
|
|
|
|
This window also has variable dimensions. To
|
2010-06-20 12:58:41 +00:00
|
|
|
define a viewport a line starting \config{{\%V(\dots}} has to be
|
|
|
|
present in the theme file. The full syntax will be explained later in
|
2009-09-20 16:48:45 +00:00
|
|
|
this section. All elements placed before the
|
|
|
|
line defining a viewport are displayed in the default viewport. Elements
|
|
|
|
defined after a viewport declaration are drawn within that viewport.
|
|
|
|
\opt{lcd_bitmap}{Loading images (see Appendix \reference{ref:wps_images})
|
|
|
|
should be done within the default viewport.}
|
|
|
|
A viewport ends either with the end of the file, or with the next viewport
|
|
|
|
declaration line. Viewports sharing the same
|
|
|
|
coordinates and dimensions cannot be displayed at the same time. Viewports
|
|
|
|
cannot be layered \emph{transparently} over one another. Subsequent viewports
|
|
|
|
will be drawn over any other viewports already drawn onto that
|
|
|
|
area of the screen.
|
|
|
|
|
|
|
|
\nopt{lcd_non-mono}{\input{advanced_topics/viewports/mono-vp-syntax.tex}}
|
|
|
|
\nopt{lcd_color}{\opt{lcd_non-mono}{\input{advanced_topics/viewports/grayscale-vp-syntax.tex}}}
|
|
|
|
\opt{lcd_color}{\input{advanced_topics/viewports/colour-vp-syntax.tex}}
|
|
|
|
|
|
|
|
|
|
|
|
\subsubsection{Conditional Viewports}
|
|
|
|
|
|
|
|
Any viewport can be displayed either permanently or conditionally.
|
2010-06-20 12:58:41 +00:00
|
|
|
Defining a viewport as \config{{\%V(\dots}}
|
2009-09-20 16:48:45 +00:00
|
|
|
will display it permanently.
|
|
|
|
|
|
|
|
\begin{itemize}
|
2010-06-23 18:21:35 +00:00
|
|
|
\item {\config{\%Vl('identifier',\dots)}}
|
2010-05-12 22:07:49 +00:00
|
|
|
This tag preloads a viewport for later display. `identifier' is a single
|
2010-05-20 16:35:45 +00:00
|
|
|
lowercase letter (a-z) and the `\dots' parameters use the same logic as
|
2009-09-20 16:48:45 +00:00
|
|
|
the \config{\%V} tag explained above.
|
2010-06-23 18:21:35 +00:00
|
|
|
\item {\config{\%Vd('identifier')}} Display the `identifier' viewport.
|
2009-09-20 16:48:45 +00:00
|
|
|
\end{itemize}
|
|
|
|
|
|
|
|
Viewports can share identifiers so that you can display multiple viewports
|
|
|
|
with one \%Vd line.
|
|
|
|
|
|
|
|
\nopt{lcd_non-mono}{\input{advanced_topics/viewports/mono-conditional.tex}}
|
|
|
|
\nopt{lcd_color}{%
|
|
|
|
\opt{lcd_non-mono}{\input{advanced_topics/viewports/grayscale-conditional.tex}}}
|
|
|
|
\opt{lcd_color}{\input{advanced_topics/viewports/colour-conditional.tex}}
|
|
|
|
\\*
|
|
|
|
|
|
|
|
\note{The tag to display conditional viewports must come before the tag to
|
|
|
|
preload the viewport in the \fname{.wps} file.}
|
2010-05-13 08:13:37 +00:00
|
|
|
|
|
|
|
\subsection{Info Viewport (SBS only)}
|
|
|
|
As mentioned above, it is possible to set a UI viewport via the theme
|
|
|
|
\fname{.cfg} file. It is also possible to set the UI viewport through the SBS
|
|
|
|
file, and to conditionally select different UI viewports.
|
|
|
|
|
|
|
|
\begin{itemize}
|
2010-06-23 18:21:35 +00:00
|
|
|
\item {\config{\%Vi('label',\dots)}}
|
2010-05-13 08:13:37 +00:00
|
|
|
This viewport is used as Custom UI Viewport in the case that the theme
|
|
|
|
doesn't have a ui viewport set in the theme \fname{.cfg} file. Having this
|
|
|
|
is strongly recommended since it makes you able to use the SBS
|
|
|
|
with other themes. If label is set this viewport can be selectivly used as the
|
2010-05-20 16:35:45 +00:00
|
|
|
Info Viewport using the \%VI tag. The `\dots' parameters use the same logic as
|
2010-05-13 08:13:37 +00:00
|
|
|
the \config{\%V} tag explained above.
|
|
|
|
|
2010-06-23 18:21:35 +00:00
|
|
|
\item {\config{\%VI('label')}} Set the Info Viewport to use the viewport called
|
2010-05-13 08:13:37 +00:00
|
|
|
label, as declared with the previous tag.
|
|
|
|
\end{itemize}
|
2010-06-20 12:58:09 +00:00
|
|
|
|
|
|
|
\subsection{\label{ref:multifont}Additional Fonts}
|
|
|
|
Additional fonts can be loaded within each screen file to be used in that
|
|
|
|
screen. In this way not only can you have different fonts between e.g. the menu
|
|
|
|
and the WPS, but you can use multiple fonts in each of the individual screens.\\
|
|
|
|
|
2010-08-25 14:11:38 +00:00
|
|
|
\config{\%Fl('id',filename,glyphs)}
|
2010-06-20 12:58:09 +00:00
|
|
|
|
|
|
|
\begin{itemize}
|
2010-06-20 16:23:47 +00:00
|
|
|
\item `id' is the number you want to use in viewport declarations, 0 and 1
|
2010-06-20 12:58:09 +00:00
|
|
|
are reserved and so can't be used.
|
|
|
|
\item `filename' is the font filename to load. Fonts should be stored in
|
|
|
|
\fname{/.rockbox/fonts/}
|
2010-08-25 14:11:38 +00:00
|
|
|
\item `glyphs' is an optional specification of how many unique glyphs to
|
2010-08-26 20:56:07 +00:00
|
|
|
store in memory. Default is 256.
|
2010-06-20 12:58:09 +00:00
|
|
|
\end{itemize}
|
|
|
|
|
2010-08-25 14:11:38 +00:00
|
|
|
An example would be: \config{\%Fl(2,12-Nimbus.fnt,100)}
|
2010-06-20 12:58:09 +00:00
|
|
|
|
2009-09-20 16:48:45 +00:00
|
|
|
}
|
|
|
|
|
2006-03-08 15:04:36 +00:00
|
|
|
\subsubsection{Conditional Tags}
|
2006-03-15 10:56:14 +00:00
|
|
|
|
2006-06-07 12:15:46 +00:00
|
|
|
\begin{description}
|
|
|
|
\item[If/else: ]
|
2006-06-07 17:09:06 +00:00
|
|
|
Syntax: \config{\%?xx{\textless}true{\textbar}false{\textgreater}}
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2006-06-07 16:37:04 +00:00
|
|
|
If the tag specified by ``\config{xx}'' has a value, the text between the
|
|
|
|
``\config{{\textless}}'' and the ``\config{{\textbar}}'' is displayed (the true
|
|
|
|
part), else the text between the ``\config{{\textbar}}'' and the
|
|
|
|
``\config{{\textgreater}}'' is displayed (the false part).
|
|
|
|
The else part is optional, so the ``\config{{\textbar}}'' does not have to be
|
|
|
|
specified if no else part is desired. The conditionals nest, so the text in the
|
|
|
|
if and else part can contain all \config{\%} commands, including conditionals.
|
2006-03-15 10:56:14 +00:00
|
|
|
|
2006-06-07 12:15:46 +00:00
|
|
|
\item[Enumerations: ]
|
2006-06-07 17:09:06 +00:00
|
|
|
Syntax: \config{\%?xx{\textless}alt1{\textbar}alt2{\textbar}alt3{\textbar}\dots{\textbar}else{\textgreater}}
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2006-06-07 16:37:04 +00:00
|
|
|
For tags with multiple values, like Play status, the conditional can hold a
|
|
|
|
list of alternatives, one for each value the tag can have.
|
|
|
|
Example enumeration:
|
|
|
|
\begin{example}
|
2006-10-25 22:12:25 +00:00
|
|
|
\%?mp{\textless}Stop{\textbar}\%Play{\textbar}Pause{\textbar}Ffwd{\textbar}Rew{\textgreater}
|
2006-06-07 16:37:04 +00:00
|
|
|
\end{example}
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2006-06-07 16:37:04 +00:00
|
|
|
The last else part is optional, and will be displayed if the tag has no value.
|
|
|
|
The WPS parser will always display the last part if the tag has no value, or if
|
|
|
|
the list of alternatives is too short.
|
2006-06-07 12:15:46 +00:00
|
|
|
\end{description}
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2008-06-24 05:16:23 +00:00
|
|
|
\subsubsection{Next Song Info}
|
2006-04-10 21:47:09 +00:00
|
|
|
You can display information about the next song -- the song that is
|
2006-02-11 00:57:17 +00:00
|
|
|
about to play after the one currently playing (unless you change the
|
2006-03-08 15:04:36 +00:00
|
|
|
plan).
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2006-06-07 17:09:06 +00:00
|
|
|
If you use the upper-case versions of the
|
2006-06-07 16:37:04 +00:00
|
|
|
three tags: \config{F}, \config{I} and \config{D}, they will instead refer to
|
|
|
|
the next song instead of the current one. Example: \config{\%Ig} is the genre
|
2009-08-25 21:51:55 +00:00
|
|
|
name used in the next song and \config{\%Ff} is the mp3 frequency.\\
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2006-06-07 17:09:06 +00:00
|
|
|
\note{The next song information \emph{will not} be available at all
|
2006-08-18 16:57:56 +00:00
|
|
|
times, but will most likely be available at the end of a song. We
|
|
|
|
suggest you use the conditional display tag a lot when displaying
|
|
|
|
information about the next song!}
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2009-05-15 21:17:21 +00:00
|
|
|
\subsubsection{\label{ref:AlternatingSublines}Alternating Sublines}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2006-06-07 16:37:04 +00:00
|
|
|
It is possible to group items on each line into 2 or more groups or
|
|
|
|
``sublines''. Each subline will be displayed in succession on the line for a
|
|
|
|
specified time, alternating continuously through each defined subline.
|
2006-02-11 00:57:17 +00:00
|
|
|
|
|
|
|
Items on a line are broken into sublines with the semicolon
|
2010-05-20 16:35:45 +00:00
|
|
|
`\config{;}' character. The display time for
|
2006-02-11 00:57:17 +00:00
|
|
|
each subline defaults to 2 seconds unless modified by using the
|
2010-05-20 16:35:45 +00:00
|
|
|
`\config{\%t}' tag to specify an alternate
|
2006-02-11 00:57:17 +00:00
|
|
|
time (in seconds and optional tenths of a second) for the subline to be
|
|
|
|
displayed.
|
|
|
|
|
|
|
|
Subline related special characters and tags:
|
2006-06-07 17:09:06 +00:00
|
|
|
\begin{description}
|
|
|
|
\item[;] Split items on a line into separate sublines
|
|
|
|
\item[\%t] Set the subline display time. The
|
2010-06-20 12:58:41 +00:00
|
|
|
`\config{\%t}' is followed by either integer seconds (\config{\%t5}), or seconds
|
|
|
|
and tenths of a second within () e.g. (\config{\%t(3.5)}).
|
2006-06-07 17:09:06 +00:00
|
|
|
\end{description}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
|
|
|
Each alternating subline can still be optionally scrolled while it is
|
|
|
|
being displayed, and scrollable formats can be displayed on the same
|
|
|
|
line with non{}-scrollable formats (such as track elapsed time) as long
|
2006-03-08 15:04:36 +00:00
|
|
|
as they are separated into different sublines.
|
|
|
|
Example subline definition:
|
2006-06-07 12:15:46 +00:00
|
|
|
\begin{example}
|
2010-06-20 12:58:41 +00:00
|
|
|
%s%t(4)%ia;%s%it;%t(3)%pc %pr : Display id3 artist for 4 seconds,
|
2006-06-07 13:29:52 +00:00
|
|
|
Display id3 title for 2 seconds,
|
|
|
|
Display current and remaining track time
|
|
|
|
for 3 seconds,
|
|
|
|
repeat...
|
2006-06-07 12:15:46 +00:00
|
|
|
\end{example}
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2006-06-07 16:37:04 +00:00
|
|
|
Conditionals can be used with sublines to display a different set and/or number
|
|
|
|
of sublines on the line depending on the evaluation of the conditional.
|
2006-03-08 15:04:36 +00:00
|
|
|
Example subline with conditionals:
|
2006-06-07 12:15:46 +00:00
|
|
|
\begin{example}
|
2010-06-20 12:58:41 +00:00
|
|
|
%?it{\textless}%t(8)%s%it{\textbar}%s%fn{\textgreater};%?ia{\textless}%t(3)%s%ia{\textbar}%t(0){\textgreater}\\
|
2006-06-07 12:15:46 +00:00
|
|
|
\end{example}
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2006-06-07 16:37:04 +00:00
|
|
|
The format above will do two different things depending if ID3 tags are
|
|
|
|
present. If the ID3 artist and title are present:
|
2006-06-07 17:09:06 +00:00
|
|
|
\begin{itemize}
|
|
|
|
\item Display id3 title for 8 seconds,
|
|
|
|
\item Display id3 artist for 3 seconds,
|
|
|
|
\item repeat\dots
|
|
|
|
\end{itemize}
|
|
|
|
If the ID3 artist and title are not present:
|
|
|
|
\begin{itemize}
|
|
|
|
\item Display the filename continuously.
|
|
|
|
\end{itemize}
|
2006-04-04 17:48:10 +00:00
|
|
|
Note that by using a subline display time of 0 in one branch of a conditional,
|
|
|
|
a subline can be skipped (not displayed) when that condition is met.
|
2006-03-08 15:04:36 +00:00
|
|
|
|
|
|
|
\subsubsection{Using Images}
|
2006-04-10 21:47:09 +00:00
|
|
|
You can have as many as 52 images in your WPS. There are various ways of
|
2006-04-04 17:48:10 +00:00
|
|
|
displaying images:
|
2006-03-08 15:04:36 +00:00
|
|
|
\begin{enumerate}
|
2006-06-07 16:37:04 +00:00
|
|
|
\item Load and always show the image, using the \config{\%x} tag
|
|
|
|
\item Preload the image with \config{\%xl} and show it with \config{\%xd}.
|
|
|
|
This way you can have your images displayed conditionally.
|
2006-11-13 15:14:28 +00:00
|
|
|
\nopt{archos}{%
|
2006-08-18 16:57:56 +00:00
|
|
|
\item Load an image and show as backdrop using the \config{\%X} tag. The
|
|
|
|
image must be of the same exact dimensions as your display.
|
2006-11-13 15:14:28 +00:00
|
|
|
}%
|
2006-03-08 15:04:36 +00:00
|
|
|
\end{enumerate}
|
2006-06-04 15:03:39 +00:00
|
|
|
|
2008-03-23 22:07:09 +00:00
|
|
|
\optv{swcodec}{% This doesn't depend on swcodec but we don't have a \noptv
|
2006-11-13 15:14:28 +00:00
|
|
|
% command.
|
2006-06-07 12:15:46 +00:00
|
|
|
Example on background image use:
|
|
|
|
\begin{example}
|
2010-06-20 12:58:41 +00:00
|
|
|
%X(background.bmp)
|
2006-06-07 12:15:46 +00:00
|
|
|
\end{example}
|
|
|
|
The image with filename \fname{background.bmp} is loaded and used in the WPS.
|
2006-11-13 15:14:28 +00:00
|
|
|
}%
|
2006-06-07 12:15:46 +00:00
|
|
|
|
|
|
|
Example on bitmap preloading and use:
|
|
|
|
\begin{example}
|
2010-06-20 12:58:41 +00:00
|
|
|
%x(a,static_icon.bmp,50,50)
|
|
|
|
%xl(b,rep\_off.bmp,16,64)
|
|
|
|
%xl(c,rep\_all.bmp,16,64)
|
|
|
|
%xl(d,rep\_one.bmp,16,64)
|
|
|
|
%xl(e,rep\_shuffle.bmp,16,64)
|
|
|
|
%?mm<%xd(b)|%xd(c)|%xd(d)|%xd(e)>
|
2006-06-07 12:15:46 +00:00
|
|
|
\end{example}
|
|
|
|
Four images at the same x and y position are preloaded in the example. Which
|
2006-06-07 16:37:04 +00:00
|
|
|
image to display is determined by the \config{\%mm} tag (the repeat mode).
|
2006-03-08 15:04:36 +00:00
|
|
|
|
|
|
|
\subsubsection{Example File}
|
2006-06-07 12:15:46 +00:00
|
|
|
\begin{example}
|
2006-06-07 17:09:06 +00:00
|
|
|
%s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]>
|
|
|
|
%pb%pc/%pt
|
2006-06-07 12:15:46 +00:00
|
|
|
\end{example}
|
2006-04-04 17:48:10 +00:00
|
|
|
That is, ``tracknum -- title [artist, album]'', where most fields are only
|
|
|
|
displayed if available. Could also be rendered as ``filename'' or ``tracknum --
|
|
|
|
title [artist]''.
|
2006-03-08 15:04:36 +00:00
|
|
|
|
2008-03-23 22:07:09 +00:00
|
|
|
%\opt{lcd_bitmap}{
|
2006-03-08 15:04:36 +00:00
|
|
|
% \begin{verbatim}
|
2006-06-07 12:15:46 +00:00
|
|
|
% %s%?it<%?in<%in. |>%it|%fn>
|
2010-06-20 12:58:41 +00:00
|
|
|
% %s%?ia<%ia|%?d2<%d(2)|(root)>>
|
|
|
|
% %s%?id<%id|%?d1<%d(1)|(root)>> %?iy<(%iy)|>
|
2006-06-07 12:15:46 +00:00
|
|
|
%
|
|
|
|
% %al%pc/%pt%ar[%pp:%pe]
|
|
|
|
% %fbkBit %?fv<avg|> %?iv<(id3v%iv)|(no id3)>
|
|
|
|
% %pb
|
|
|
|
% %pm
|
|
|
|
% % \end{verbatim}
|
|
|
|
%}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2008-06-24 05:16:23 +00:00
|
|
|
\section{\label{ref:manage_settings}Managing Rockbox Settings}
|
2006-08-12 15:56:33 +00:00
|
|
|
|
2010-01-22 22:54:05 +00:00
|
|
|
\subsection{Introduction to \fname{.cfg} Files}
|
2008-01-17 19:45:22 +00:00
|
|
|
Rockbox allows users to store and load multiple settings through the use of
|
|
|
|
configuration files. A configuration file is simply a text file with the
|
|
|
|
extension \fname{.cfg}.
|
2006-08-18 16:57:56 +00:00
|
|
|
|
2007-05-19 19:03:39 +00:00
|
|
|
A configuration file may reside anywhere on the disk. Multiple
|
2006-08-18 16:57:56 +00:00
|
|
|
configuration files are permitted. So, for example, you could have
|
|
|
|
a \fname{car.cfg} file for the settings that you use while playing your
|
|
|
|
jukebox in your car, and a \fname{headphones.cfg} file to store the
|
2009-02-04 14:22:35 +00:00
|
|
|
settings that you use while listening to your \dap{} through headphones.
|
2006-08-18 16:57:56 +00:00
|
|
|
|
|
|
|
See \reference{ref:cfg_specs} below for an explanation of the format
|
2008-01-17 19:45:22 +00:00
|
|
|
for configuration files. See \reference{ref:manage_settings_menu} for an
|
2006-08-18 16:57:56 +00:00
|
|
|
explanation of how to create, edit and load configuration files.
|
|
|
|
|
2010-01-22 22:54:05 +00:00
|
|
|
\subsection{\label{ref:cfg_specs}Specifications for \fname{.cfg} Files}
|
2006-08-18 16:57:56 +00:00
|
|
|
|
|
|
|
The Rockbox configuration file is a plain text file, so once you use the
|
2008-03-22 15:26:45 +00:00
|
|
|
\setting{Save .cfg file} option to create the file, you can edit the file on
|
2008-01-17 19:45:22 +00:00
|
|
|
your computer using any text editor program. See
|
2006-08-18 16:57:56 +00:00
|
|
|
Appendix \reference{ref:config_file_options} for available settings. Configuration
|
2008-01-17 19:45:22 +00:00
|
|
|
files use the following formatting rules: %
|
2006-08-18 16:57:56 +00:00
|
|
|
|
|
|
|
\begin{enumerate}
|
|
|
|
\item Each setting must be on a separate line.
|
|
|
|
\item Each line has the format ``setting: value''.
|
|
|
|
\item Values must be within the ranges specified in this manual for each
|
|
|
|
setting.
|
|
|
|
\item Lines starting with \# are ignored. This lets you write comments into
|
|
|
|
your configuration files.
|
|
|
|
\end{enumerate}
|
|
|
|
|
|
|
|
Example of a configuration file:
|
|
|
|
\begin{example}
|
2009-03-22 12:14:03 +00:00
|
|
|
volume: 70
|
|
|
|
bass: 11
|
|
|
|
treble: 12
|
|
|
|
balance: 0
|
|
|
|
time format: 12hour
|
|
|
|
volume display: numeric
|
|
|
|
show files: supported
|
|
|
|
wps: /.rockbox/car.wps
|
|
|
|
lang: /.rockbox/afrikaans.lng
|
2006-08-18 16:57:56 +00:00
|
|
|
\end{example}
|
|
|
|
|
|
|
|
\note{As you can see from the example, configuration files do not need to
|
|
|
|
contain all of the Rockbox options. You can create configuration files
|
|
|
|
that change only certain settings. So, for example, supppose you
|
2006-08-27 20:44:23 +00:00
|
|
|
typically use the \dap{} at one volume in the car, and another when using
|
2006-08-18 16:57:56 +00:00
|
|
|
headphones. Further, suppose you like to use an inverse LCD when you are
|
|
|
|
in the car, and a regular LCD setting when you are using headphones. You
|
|
|
|
could create configuration files that control only the volume and LCD
|
|
|
|
settings. Create a few different files with different settings, give
|
|
|
|
each file a different name (such as \fname{car.cfg},
|
|
|
|
\fname{headphones.cfg}, etc.), and you can then use the \setting{Browse .cfg
|
2009-08-25 21:51:55 +00:00
|
|
|
files} option to quickly change settings.\\}
|
2009-02-04 14:22:35 +00:00
|
|
|
|
|
|
|
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). Format 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}.
|
2006-08-18 16:57:56 +00:00
|
|
|
|
|
|
|
\subsection{\label{ref:manage_settings_menu}The \setting{Manage Settings}
|
|
|
|
menu} The \setting{Manage Settings} menu can be found in the \setting{Main
|
2006-08-27 20:44:23 +00:00
|
|
|
Menu}. The \setting{Manage Settings} menu allows you to save and load
|
2009-02-04 14:22:35 +00:00
|
|
|
\fname{.cfg} files.
|
2006-08-18 16:57:56 +00:00
|
|
|
|
|
|
|
\begin{description}
|
|
|
|
|
2009-02-04 14:22:35 +00:00
|
|
|
\item [Browse .cfg Files]Opens the \setting{File Browser} in the
|
|
|
|
\fname{/.rockbox} directory and displays all \fname{.cfg} (configuration)
|
|
|
|
files. Selecting a \fname{.cfg} file will cause Rockbox to load the settings
|
2010-07-04 22:33:37 +00:00
|
|
|
contained in that file. Pressing \ActionStdCancel{} will exit back to the
|
2009-02-04 14:22:35 +00:00
|
|
|
\setting{Manage Settings} menu. See the \setting{Write .cfg files} option on
|
|
|
|
the \setting{Manage Settings} menu for details of how to save and edit a
|
2006-08-27 20:44:23 +00:00
|
|
|
configuration file.
|
2006-08-18 16:57:56 +00:00
|
|
|
|
2008-06-28 16:10:02 +00:00
|
|
|
\item [Reset Settings]This wipes the saved settings
|
2009-02-04 14:22:35 +00:00
|
|
|
in the \dap{} and resets all settings to their default values.
|
2006-08-12 15:56:33 +00:00
|
|
|
|
2010-05-24 19:24:38 +00:00
|
|
|
\opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,SANSA_E200_PAD,SANSA_C200_PAD%
|
|
|
|
,PBELL_VIBE500_PAD}{
|
2008-01-20 16:33:12 +00:00
|
|
|
\note{You can also reset all settings to their default
|
2008-06-28 16:10:02 +00:00
|
|
|
values by turning off the \dap, turning it back on, and holding the
|
2009-02-04 14:22:35 +00:00
|
|
|
\ButtonRec{} button immediately after the \dap{} turns on.}
|
2006-08-18 16:57:56 +00:00
|
|
|
}
|
2008-06-28 16:10:02 +00:00
|
|
|
\opt{IRIVER_H10_PAD}{\note{You can also reset all settings to
|
2008-01-20 16:33:12 +00:00
|
|
|
their default values by turning off the \dap, and turning it back on
|
2009-02-04 14:22:35 +00:00
|
|
|
with the \ButtonHold{} button on.}
|
2006-08-18 16:57:56 +00:00
|
|
|
}
|
2008-06-28 16:10:02 +00:00
|
|
|
\opt{IPOD_4G_PAD}{\note{You can also reset all settings to their default
|
|
|
|
values by turning off the \dap, turning it back on, and activating the
|
2009-02-04 14:22:35 +00:00
|
|
|
\ButtonHold{} button immediately after the backlight comes on.}
|
2008-06-28 16:10:02 +00:00
|
|
|
}
|
2008-01-20 16:33:12 +00:00
|
|
|
\opt{GIGABEAT_PAD}{\note{You can also reset all settings to their default
|
|
|
|
values by turning off the \dap, turning it back on and pressing the
|
2009-02-04 14:22:35 +00:00
|
|
|
\ButtonA{} button immediately after the \dap{} turns on.}
|
2007-04-27 19:38:16 +00:00
|
|
|
}
|
2008-01-17 19:45:22 +00:00
|
|
|
|
2008-06-24 05:16:23 +00:00
|
|
|
\item [Save .cfg File]This option writes a \fname{.cfg} file to
|
2009-02-04 14:22:35 +00:00
|
|
|
your \daps{} disk. The configuration file has the \fname{.cfg}
|
2006-08-18 16:57:56 +00:00
|
|
|
extension and is used to store all of the user settings that are described
|
|
|
|
throughout this manual.
|
2009-02-04 14:22:35 +00:00
|
|
|
|
2008-06-24 05:16:23 +00:00
|
|
|
Hint: Use the \setting{Save .cfg File} feature (\setting{Main Menu
|
2009-02-04 14:22:35 +00:00
|
|
|
$\rightarrow$ Manage Settings}) to save the current settings, then
|
2006-08-18 16:57:56 +00:00
|
|
|
use a text editor to customize the settings file. See Appendix
|
|
|
|
\reference{ref:config_file_options} for the full reference of available
|
|
|
|
options.
|
2008-03-11 18:43:56 +00:00
|
|
|
|
2008-06-24 05:16:23 +00:00
|
|
|
\item [Save Sound Settings]This option writes a \fname{.cfg} file to
|
2009-02-04 14:22:35 +00:00
|
|
|
your \daps{} disk. The configuration file has the \fname{.cfg}
|
2008-03-11 18:43:56 +00:00
|
|
|
extension and is used to store all of the sound related settings.
|
|
|
|
|
2008-06-24 05:16:23 +00:00
|
|
|
\item [Save Theme Settings]This option writes a \fname{.cfg} file to
|
2009-02-04 14:22:35 +00:00
|
|
|
your \daps{} disk. The configuration file has the \fname{.cfg}
|
2008-03-11 18:43:56 +00:00
|
|
|
extension and is used to store all of the theme related settings.
|
2006-08-12 15:56:33 +00:00
|
|
|
|
2006-08-18 16:57:56 +00:00
|
|
|
\end{description}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
|
|
|
\section{\label{ref:FirmwareLoading}Firmware Loading}
|
2006-03-25 09:22:43 +00:00
|
|
|
\opt{player,recorder,recorderv2fm,ondio}{
|
2006-08-27 15:00:50 +00:00
|
|
|
When your \dap{} powers on, it loads the Archos firmware in ROM, which
|
2007-12-14 02:03:58 +00:00
|
|
|
automatically checks your \daps{} root directory for a file named
|
2006-06-07 12:15:46 +00:00
|
|
|
\firmwarefilename. Note that Archos firmware can only read the first
|
2008-02-13 13:32:44 +00:00
|
|
|
ten characters of each filename in this process, so do not rename your old
|
2006-06-07 12:15:46 +00:00
|
|
|
firmware files with names like \firmwarefilename.\fname{old} and so on,
|
2007-12-13 22:51:27 +00:00
|
|
|
because it is possible that the \dap{} will load a file other than the one
|
2006-08-27 15:00:50 +00:00
|
|
|
you intended.
|
2006-03-15 10:56:14 +00:00
|
|
|
}
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2008-06-24 05:16:23 +00:00
|
|
|
\subsection{\label{ref:using_rolo}Using ROLO (Rockbox Loader)}
|
2006-04-04 17:48:10 +00:00
|
|
|
Rockbox is able to load and start another firmware file without rebooting.
|
2006-07-24 20:53:27 +00:00
|
|
|
You just ``play'' a file with the extension %
|
|
|
|
\opt{recorder,recorderv2fm,ondio}{\fname{.ajz}.} %
|
|
|
|
\opt{player}{\fname{.mod}.} %
|
2011-01-17 18:30:18 +00:00
|
|
|
\opt{iriverh100,iriverh300}{\fname{.iriver}.} %
|
2006-07-24 20:53:27 +00:00
|
|
|
\opt{ipod}{\fname{.ipod}.} %
|
|
|
|
\opt{iaudio}{\fname{.iaudio}.} %
|
2011-01-17 18:30:18 +00:00
|
|
|
\opt{sansa,iriverh10,iriverh10_5gb,vibe500}{\fname{.mi4}.} %
|
2009-05-22 10:44:15 +00:00
|
|
|
\opt{sansaAMS}{\fname{.sansa}.} %
|
2009-08-25 21:51:55 +00:00
|
|
|
\opt{gigabeatf,gigabeats}{\fname{.gigabeat}.} %
|
2006-07-24 20:53:27 +00:00
|
|
|
This can be used to test new firmware versions without deleting your
|
2006-04-04 17:48:10 +00:00
|
|
|
current version.
|
2006-02-11 00:57:17 +00:00
|
|
|
|
2006-06-15 11:56:50 +00:00
|
|
|
\opt{archos}{\input{advanced_topics/archos-flashing.tex}}
|
2009-12-23 20:05:29 +00:00
|
|
|
|
2010-03-29 17:58:17 +00:00
|
|
|
\section{Optimising battery runtime}
|
|
|
|
Rockbox offers a lot of settings that have high impact on the battery runtime
|
|
|
|
of your \dap{}. The largest power savings can be achieved through disabling
|
|
|
|
unneeded hardware components -- for some of those there are settings
|
|
|
|
available.
|
|
|
|
\opt{swcodec}{
|
|
|
|
Another area of savings is avoiding or reducing CPU boosting
|
|
|
|
through disabling computing intense features (e.g. sound processing) or
|
|
|
|
using effective audio codecs.
|
|
|
|
} The following provides a short overview of the most relevant settings and
|
|
|
|
rules of thumb.
|
|
|
|
|
|
|
|
\nopt{ondio}{
|
|
|
|
\subsection{Display backlight}
|
|
|
|
The active backlight consumes a lot of power. Therefore choose a setting that
|
|
|
|
disables the backlight after timeout (for setting \setting{Backlight} see
|
|
|
|
\reference{ref:Displayoptions}). Avoid to have the backlight enabled all the
|
|
|
|
time.
|
|
|
|
}
|
|
|
|
|
|
|
|
\opt{lcd_sleep}{
|
|
|
|
\subsection{Display power-off}
|
|
|
|
Shutting down the display and the display controller saves a reasonable amount
|
|
|
|
of power. Choose a setting that will put the display to sleep after timeout
|
|
|
|
(for setting \setting{Sleep} see \reference{ref:Displayoptions}). Avoid to
|
|
|
|
have the display enabled all the time -- even, if the display is transflective
|
|
|
|
and is readable without backlight. Depending on your \dap{} it might be
|
|
|
|
significantly more efficient to re-enable the display and its backlight for a
|
|
|
|
glimpse a few times per hour than to keep the display enabled.
|
|
|
|
}
|
|
|
|
|
|
|
|
\opt{accessory_supply}{
|
|
|
|
\subsection{Accessory power supply}
|
|
|
|
As default your \dap{}'s accessory power supply is always enabled to ensure
|
|
|
|
proper function of connected accessory devices. Disable this power supply, if
|
|
|
|
-- or as long as -- you do not use any accessory device with your \dap{} while
|
|
|
|
running Rockbox (see \reference{ref:AccessoryPowerSupply}).
|
|
|
|
}
|
|
|
|
|
|
|
|
\opt{lineout_poweroff}{
|
|
|
|
\subsection{Line Out}
|
|
|
|
Rockbox allows to switch off the line-out on your \dap{}. If you do not need
|
|
|
|
the line-out, switch it off (see \reference{ref:LineoutOnOff}).
|
|
|
|
}
|
|
|
|
|
|
|
|
\opt{spdif_power}{
|
|
|
|
\subsection{Optical Output}
|
|
|
|
Rockbox allows to switch off the S/PDIF output on your \dap{}. If you do not
|
|
|
|
need this output, switch it off (see \reference{ref:SPDIF_OnOff}).
|
|
|
|
}
|
|
|
|
|
|
|
|
\opt{disk_storage}{
|
|
|
|
\subsection{Anti-Skip Buffer}
|
|
|
|
Having a large anti-skip buffer tends to use more power, and may reduce your
|
|
|
|
battery life. It is recommended to always use the lowest possible setting
|
|
|
|
that allows correct and continuous playback (see \reference{ref:AntiSkipBuf}).
|
|
|
|
}
|
|
|
|
|
2010-04-12 06:40:58 +00:00
|
|
|
\opt{swcodec}{
|
|
|
|
\subsection{Replaygain}
|
|
|
|
Replaygain is a post processing that equalises the playback volume of audio
|
|
|
|
files to the same perceived loudness. This post processing applies a factor
|
|
|
|
to each single PCM sample and is therefore consuming additional CPU time. If
|
|
|
|
you want to achieve some (minor) savings in runtime, switch this feature off
|
|
|
|
(see \reference{ref:ReplayGain}).
|
|
|
|
}
|
|
|
|
|
2010-03-29 17:58:17 +00:00
|
|
|
\opt{swcodec,disk_storage,flash_storage}{
|
|
|
|
\subsection{Audio format and bitrate}
|
|
|
|
\opt{swcodec}{
|
|
|
|
In general the fastest decoding audio format will be the best in terms of
|
|
|
|
battery runtime on your \dap{}. An overview of different codec's performance
|
|
|
|
on different \dap{}s can be found at \wikilink{CodecPerformanceComparison}.
|
|
|
|
}
|
|
|
|
|
|
|
|
\opt{flash_storage}{
|
|
|
|
Your target uses flash that consumes a certain amount of power during access.
|
|
|
|
The less often the flash needs to be switched on for buffering and the shorter
|
|
|
|
the buffering duration is, the lower is the overall power consumption.
|
|
|
|
Therefore the bitrate of the audio files does have an impact on the battery
|
|
|
|
runtime as well. Lower bitrate audio files will result in longer battery
|
|
|
|
runtime.
|
|
|
|
}
|
|
|
|
\opt{disk_storage}{
|
|
|
|
Your target uses a hard disk which consumes a large amount of power while
|
|
|
|
spinning -- up to several hundred mA. The less often the hard disk needs to
|
|
|
|
spin up for buffering and the shorter the buffering duration is, the lower is
|
|
|
|
the power consumption. Therefore the bitrate of the audio files does have an
|
|
|
|
impact on the battery runtime as well. Lower bitrate audio files will result
|
|
|
|
in longer battery runtime.
|
|
|
|
}
|
|
|
|
|
|
|
|
Please do not re-encode any existing audio files from one lossy format to
|
|
|
|
another based upon the above mentioned. This will reduce the audio quality.
|
|
|
|
If you have the choice, select the best suiting codec when encoding the
|
|
|
|
original source material.
|
|
|
|
}
|
|
|
|
|
|
|
|
\opt{swcodec}{
|
|
|
|
\subsection{Sound settings}
|
|
|
|
In general all kinds of sound processing will need more CPU time and therefore
|
|
|
|
consume more power. The less sound processing you use, the better it is for
|
|
|
|
the battery runtime (for options see \reference{ref:configure_rockbox_sound}).
|
|
|
|
}
|