in the latest release the cpu consumption of the xbmc, even in idle mode was pretty high. To reduce this create a file “advancedsettings.xml” in the folder .xbmc/userdata/ with the following content:
<advancedsettings> <fanartres>540</fanartres> <imageres>512</imageres> <useddsfanart>false</useddsfanart> <lookandfeel> <enablerssfeeds>false</enablerssfeeds> </lookandfeel> <gui> <algorithmdirtyregions>3</algorithmdirtyregions> <nofliptimeout>0</nofliptimeout> </gui> <bginfoloadermaxthreads>2</bginfoloadermaxthreads> </advancedsettings>
After that, activate vertical blanc synchronisation in the system preferences of the xbmc. Restart the media center.
These changes will drop the cpu consumption significantly. My system has now a cpu consumption from 30 - 60%
i have finished the compilation of XBMC for the raspberry pi. XBMC has been configured using the following command:
./configure --prefix=/usr --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --localstatedir=/var/lib --with-platform=raspberry-pi --disable-gl --enable-gles --disable-x11 --disable-sdl --enable-ccache --enable-optimizations --enable-external-libraries --disable-goom --disable-hal --disable-pulse --disable-vaapi --disable-vdpau --disable-xrandr --enable-airplay --enable-airtunes --disable-alsa --enable-avahi --enable-libbluray --enable-dvdcss --disable-debug --disable-joystick --enable-mid --enable-nfs --disable-profiling --disable-projectm --enable-rsxs --enable-rtmp --disable-vaapi --disable-vdadecoder --disable-external-ffmpeg --enable-optical-drive --enable-libcec --enable-player=omxplayer
This .deb package will install xbmc with the following features:
The full image contains the latest raspbian wheezy image and xbmc preinstalled. You can download the full image here. This image is compressed using 7zip. You may have to download 7zip in order to unzip the archive. After you have unzipped the archive you can write it to your sd card.
To reduce the cpu consumption take a look at here
You will have to run raspi-config in order to resize the sd-card and setup the correct memory split. You may also want to overclock your raspberry pi. For users who already a existing wheezy installation i recommed to download the .deb package and the required libraries to install xbmc manually.
Installation instruction for a manual installation:
1. Download the files:
2. Deinstall other xbmc installation and old libraries:
sudo dpkg -r xbmc
sudo dpkg -r libcec
3. Install the required libraries and .deb packages:
sudo apt-get update sudo apt-get install libplist1 libmicrohttpd10 libtinyxml2.6.2 libyajl2 libssh-4 libmysqlclient18 liblzo2-2 libfribidi0 libcurl3-gnutls liblockdev1 libpcrecpp0 sudo dpkg -i libcec_2.1.0-1_armhf.deb sudo dpkg -i taglib_20130324-1_armhf.deb sudo dpkg -i libshairport_1-1202030-1_armhf.deb sudo dpkg -i xbmc_12.1-1_armhf.deb cd /usr/lib/ //In case you want cec enabled sudo ln -s /usr/local/lib/libcec.so.2 ./libcec.so.2 //In case you want airtunes/airplay enabled sudo ln -s /usr/local/lib/libshairport.so.0 ./libshairport.so.0
4. Setup your raspberry pi:
Make sure that you have setup the correct memory split
Make sure that you have installed all the required libraries
After that you can start xbmc via /usr/lib/xbmc/xbmc.bin
I have finished compiling xbmc. I had some problems in order to get libcec working. Right now i am preparing the source-code to create .deb packages. Come back later for download and install instructions…
Today im starting to compile the current master-branch of xbmc for the raspberry pi. The reason for me being apart from the blog for so long, was that i didn´t saw the need to compile a new version. The version from december wasn´t perfect at all, but was running smooth enough to take a break from compiling. Another reason was, that my sd-card which i´ve used for compiling was broken. So i had to buy a new one in order to start the compilation process.
This agenda shows the current process of the compilation:
- Bought new SD-Card ✓
- Installed new raspbian-wheezy ✓
- Installed libraries for compilation ✓
- Checkout XBMC-Source ✓
- Configure XBMC-Source ✓
- Compiling ✓
- Creating .deb-file ✓
- Testing ✓
- Creating full image ✓