Introduction
I’ve been running XBMC with Ubuntu Karmic Koala v9.10 for a while now, but once I got the Intel X-25V 40GB SSD, I wanted to combine the upgrade with a move to Lucid. This post documents the installation process. Although an SSD would already improve boot speed, I wanted to take advantage of all the recent changes Lucid has brought to the table, not to mention being a Long Term Support (LTS) release to boot!
Within this post I have documented the installation process.
Install Lucid
There’s nothing hugely special to report about the installation of Lucid, which I did from a USB flash drive. I setup the partitioning like so:
- 100MB /boot EXT4
- 2048MB swap
- 10GB / EXT4
- (the rest) /home EXT4
After installation, I used Jockey (System -> Administration -> Hardware Drivers) to install and enable the Nvidia graphics drivers. Whilst I would normally do this via CLI package management, I’ve yet to have it go smoothly just by installing the nvidia-current package. I’ve a feeling Jockey does something a little more fancy to disable the nouveau drivers at the same time.
It’s a good idea to run System -> Administration -> Nvidia X Server Settings (or just nvidia-settings for the application name) to confirm all is happy after you reboot in.
Additional packages
Now, to make the following steps a lot easier, I would recommend having the following packages installed already via your favourite package management tool.
- curl
- dkms
- fakeroot
- mplayer-nogui
- libvdpau1
The last package there is the VDPAU libraries. For some reason I was lacking these after installing the main Nvidia driver and needed them before hardware accelerated playback would function in XBMC.
CIR Remote Driver
You can skip past this step if you don’t have or make use of the built-in CIR remote receiver hardware on the ASRock Ion 330. ASRock have now kindly updated their site to include a downloadable package which supports installation on Lucid. You can get this download here.
After downloading this package, I extracted and installed the .deb package named thusly:
lirc-nct677x-1.0.4-ubuntu10.04.deb
Follow the installation procedures documented within the PDF on the ASRock website if you are unfamiliar with the procedure. You can test the remote by first opening a terminal window, Applications -> Accessories -> Terminal (or gnome-terminal) and typing:
irw
Now when you press buttons on the remote, you should see each input echod on-screen.
Install XBMC
Ok, now you’re ready to install XBMC itself! The currently working version for me on Lucid is available via the Team XBMC SVN PPA which you can find here. Configuration instructions are laid out there, but all you need to do is run the following in a terminal:
sudo add-apt-repository ppa:team-xbmc-svn/ppa
This will automatically add the package mirror and grab the required key for PPA verification. Once this is done, you can simply install the meta-package, again with your favourite package management tool:
Once installed, you’ll find XBMC on the Applications -> Sound & Video menu. To confirm all is working well with VDPAU, play an HD video and press ‘o’ on your keyboard to see the text:
DC: FF-H264_VDPAU
If this reads FFMPEG, you’ve got something missing.
It works! But wait, something’s not quite right…
Now, you may be wondering why the ASRock remote button mappings don’t quite work that well in XBMC. The default configs available seemed to be mapped pretty incorrectly, so I’ve spent a lot of time mapping these myself. Once complete, I transplanted these custom files I’d been using with Karmic in place of the ones available. You can obtain my current version… here.
Here’s where these files need to be placed:
- lircd.conf.mceusb to:
/urs/share/lirc/remotes/mceusb
/usr/share/lirc/remotes/lirc_wb677
- lirc.conf.wb677 to:
/usr/share/lirc/remotes/lirc_wb677
- Lircmap.xml to:
/usr/share/xbmc/system
- remote.xml to:
/usr/share/xbmc/system/keymaps/
Once these are all in place, either restart the computer or open a terminal and run the following to restart LIRC in order to make use of the new configuration.
sudo /etc/init.d/lirc restart
Now you’re all done, so get playing with XBMC! I must add, it rocks even more on an SSD
*UPDATE* – Problems
After having a bit more time to make use of my HTPC, I’ve discovered a couple of problems, mainly with audio and seeking through video during playback. It’s quite possible these two are related.
Audio
Even after fiddling with the settings, I can only get an analog stereo or a surround sound (passthrough audio) video playing during one launch of XBMC. If I play one type (e.g. an HD film with a dolby digital audio track), stop it, then attempt to play a normal stereo sound video – I will get nothing. There won’t even be any UI sounds at this point.
When this happens, I have to close and re-run XBMC to get audio back. Apparently removing pulseaudio will most likely solve this, but I haven’t tried this yet.
Playback
I play all my content over a gigabit network connection, from SMB/CIFS mounts to my file server. I won’t bore you with the stats of the storage volume there, but it can max out gigabit at 120MB/sec+ when reading. During HD video file playback under Lucid, it takes a good few seconds to sync and start playback back if i skip forward / rewind. This was perfectly smooth and functional in Karmic so something is obviously amiss here.
So what can we do?
Ultimately I think the best thing to do is for those with a working configuration – just leave it be! If everything works for you on Karmic or whatever other type of installation, there’s no need to update yet.
Personally, I am keenly awaiting the release of XBMC v10.05 which I hope to solve these problems. If it doesn’t, then I will get experimenting with workarounds.
I’ll keep you posted!