Kodi and Mythtv

Note: this blog was previously written for XBOX media centre (XBMC). It has been replaced by Kodi since a long time. Please read kodi instead of xbmc below.

In 2010 I wrote:
I recently tried XBMC on one of my mytfrontends. I must say, I was impressed by the user interface.

To run xbmc besides mythfrontend I had to do some tweaking to this mythbuntu frontend. To install, first add these lines to /etc/apt/sources.list

deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu jaunty main

Kodi can nowadays be found in the stable repository of Debian.

burdy@r2d2:~$ sudo apt-get update
burdy@r2d2:~$ sudo apt-get install xbmc

To access XBMC from mythfrontend I added a menu item in mainmenu.xml. library.xml

First I copied *.xml locally:

 

cp -av /usr/share/mythtv/*.xml  ~/.mythtv

First I copied the defaultmenu locally:

cp -av /usr/share/mythtv/themes/defaultmenu ~/.mythtv/themes

Then edited with:

vim ~/.mythtv/mainmenu.xml
vim ~/.mythtv/themes/defaultmenu/library.xml

And put in this “button” somewhere in the “Main menu” section

<button>
<type>XBMC</type>
<text>Start XBMC</text>
<action>EXEC /usr/bin/xbmc -fs</action>
</button>

I use an ATI wonder remote, which is detected out-of-the box by mythbuntu.
I only had to add the following to /usr/share/xbmc/system/Lircmap.xml to let the remote do something:

<remote device=”ati_remote_wonder_rf”>
<play>play</play>
<pause>pause</pause>
<stop>stop</stop>
<forward>fforward</forward>
<reverse>rewind</reverse>
<left>left</left>
<right>right</right>
<up>up</up>
<down>down</down>
<select>ok</select>
<pageplus>chup</pageplus>
<pageminus>chdown</pageminus>
<back>c</back>
<menu>menu</menu>
<title>d</title>
<info>timer</info>
<skipplus>f</skipplus>
<skipminus>e</skipminus>
<display>shrink_resize</display>
<start>a</start>
<record>rec</record>
<volumeplus>volup</volumeplus>
<volumeminus>voldown</volumeminus>
<mute>mute</mute>
<power>power</power>
<myvideo>dvd</myvideo>
<mytv>tv</mytv>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
<enter>check</enter>
</remote>

After fire-ing up XBMC from mythfrontend menu I was presented with a message that video hardware acceleration needed to be switched on.
Checking my /etc/X11/xorg.conf I noticed an nvidia device statement already. I assumed that this was a driver coming with the distro. So I decided to build it the NVIDIa way. After downloading and compiling using de NVIDIA installer my system crashed. After some troubleshooting I discovered that some statements from the xorg.conf caused this incident.

I googled somewhat and stumbled upon this page describing the usage of envyng, a nice tool used to ease the install of nvidia display drivers on ubuntu (and maybe debian) distro’s.

Installing the text-only version and running it:

burdy@r2d2:~$ sudo apt-get install envyng-core
burdy@r2d2:~$ sudo envyng -t

Finally I ended up with a working xorg.conf, tweaked for displaying on TV, using S-video output on the nvidia card, a Geforce 6200 model)

Section “Monitor”
Identifier      “Configured Monitor”
HorizSync 30-50
VertRefresh 60
EndSection

Section “Screen”
Identifier      “Default Screen”
Monitor         “Configured Monitor”
Device          “Configured Video Device”
DefaultDepth    24
SubSection “Display”
Depth       16
Modes      “800×600”
EndSubSection
EndSection

Section “Module”
Load    “glx”
Disable “dri2”
EndSection

Section “Device”
Identifier      “Configured Video Device”
Driver  “nvidia”
EndSection

 

One thought on “Kodi and Mythtv

  1. The only reason I have never setup myth tv is because it only supports a small amount of tunercards. If I could find some cheap ones that work with it I would be up and running in no time.

Leave a Reply

Your email address will not be published. Required fields are marked *

*