63 thoughts on “MythTV on Ubuntu Feisty”

  1. Hi Garry

    Good idea to simplify the guide and not have to go through the extra steps of adding a “mythtv” user, etc, but…

    If I follow the simplified procedure I end up with a situation where the frontend can’t see the backend!

    A few days ago I had a combined frontend/backend on one PC that worked fine from your previous guide. Then I tried to move from “localhost” to a static IP address so that I could add a second frontend on another PC and it broke.

    Now if I try to get back to the position I was in a few days ago I can’t using the new guide, even if I trash the system, format the disk and install everything from scratch.

    One thing that puzzles me is that after I complete the install and look at /etc/mysql/my.cnf, the port that the mysql server is listening on is the default of 3306 (IIRC) and not 6543. Maybe this is just because I don’t understand mysql… but changing it to 6543 doesn’t help either!

    I would really like to get to a situation where I can add extra frontends, but just having one working frontend/backend system would be a bonus right now…

  2. Hi Martin,

    Strange. I ran through the guide on a brand new install with no such problems.

    A few points, though. 6543 is the MythTV port. Mythbackend listens on that port for connections from frontends.

    3306 is port on which MySQL listens for connections to the database, so clients connect to it over that port. It looks like the ports were configured correctly in the first place.

    Also, regarding your remote frontend issue. It might be to do with the bind-address line in: /etc/mysql/my.cnf …comment out the line so it reads:

    #bind-address =

    Commenting out this line allows clients from any machine to connect. Once done, restart MySQL with: /etc/init.d/mysql restart

    If you were putting your main IP address into mythtv-setup instead of localhost without changing the bind address then this might be why your system wouldn’t work even on a combined frontend/backend.

    In any case, I’ll add this to the guide.

  3. Hi Garry, excellent guide as always! I find mythtv is running a lot slower in feisty than edgy, but nevermind. One question…

    “Channel Listings
    Go here and check you have all the channels you need. If there are any you don’t want, uncheck the “Visible” box.”

    Where is this box (I couldn’t find it in edgy either) – I really don’t want to waste time downloading schedule data for ~50 channels that I don’t watch!

  4. r76 – the “visible” box can be found using the Channel Editor in mythtv-setup. Highlight the channel you (don’t) want, press enter and it’s on that page. It’s quite a tedious process doing this for all the channels I don’t want to watch. While you’re there it may be worth checking the “commercial free” box for all the BBC channels.

    Garry – Oops, my mistake, I really ~don’t~ want to change the port numbers in my.cnf to 6543! I can confirm that that stops MythTV dead (not surprising as both the backend and mySQL are listening on the same port…)

    Not sure why my install failed without using the mythtv login – perhaps a permissions issue. Like yours, mine are all fresh installs from a newly formatted hard disk. Just done a second install using the mythtv login and it works fine.

    Good advice about changing the bind-address field in my.cnf. Rather than comment it I set it to the actual (static) IP address of the backend PC, and now the remote frontends work as well. Thanks again!

  5. Following the guide with a default install has you a-ok up to the step to check live tv.

    When trying that, it states that the backend isn’t running…even though it is. I’ve repeated this problem on Kubuntu as well :/

    The problem is that during mythfilldatabase, the database crashes (repeated twice just to make sure). Then the table becomes corrupt and doesn’t allow mythtv to start.

    Fix is here: http://dinomite.net/archives/mythbackend-startup-error#comments

  6. I have a quick one for you, followed your old guide in the past and all worked well, just decided to upgrade the hardware and I have hit upon a hurdle.

    In you old instructions we had to add the local user to myth user and group. Well I just tried to export and import from my old server and thought I would try and backup the new servers sql. All I keep getting is permission denied for the myth user? and for the life of me I don’t remember even creating it in the new howto? Probably lost the plot here, but if you old howto is knocking around?


  7. Hi Garry, i have just checked out your MythTV guide and your Satanic Edition of Ubuntu. It looks good and will give them a shot!

    Now since it seems you know what you are talking about, i wonder if you have had a look at http://linuxmce.com/(check out the video!). I seems to be a combination of mythtv and pluto(check out flash animation on http://plutohome.com/) that is installed on top of Ubuntu.

    Right now I got it installed on my system but am still busy configuring mythtv. Thereafter i will have to get pluto working!(complicated! Makes installing mythtv look easy!).

    Now here is the thing: since i am an (ex-)windows user that barely knows how to use the “ls” command in linux, i wonder what someone with more experience thinks of linuxmce? Is it mature enough and worth many weeks/months trying to configure it, or should one stick to plain mythtv and wait for the Ubuntu Media Center (https://wiki.ubuntu.com/UbuntuMediaCenterTeam) to come out?


  8. Hi,

    I was trying to install mythtv according to Your guide but…

    There is a problem. When I go to the input connections there is nothing there, hence I can not choose anything. And the channel search is not working since there is no input / video source… can anybody help… Please email ;)

    Br, Ville

  9. Hi Alex,

    Whether you need LinuxMCE kind of depends on whether you need the extra security/home automation/telecoms features it provides. With experience of some of the individual components I can only assume that it’s a bit of a pig to get it all working… put probably lots of fun if you have the time and inclination.

    To be honest, I’d install Myth yourself and run it for a while to gain a bit of Linux experience.

    Good luck anyway!

  10. Hi Ville,

    The input connections screen associates your capture card with a video source (such as the freeview EIT) for channel listings. Have you set these up in the previous setup screens?

    If you’re having trouble, maybe send us some screenshots of your capture card and video source settings to:



  11. Tried your suggestions re setup with “bind”, etc . I can’t connect to the mysql server if I use anything but “-h localhost, e.g.,
    mysql mythconverg -u mythtv -h -p, when that ip is entered in mythtv-setup and even in /usr/share/mythtv/sql/mc.sql. This on either the backend machine or a remote feisty box.

    However, the frontend on the backend box works fine with either address.

    The file mc.sql shows localhost after GRANT ALL…; if I change that to (the ip address of the localhost), myth backend won;t even start.

    jack@biko:~$ cat /usr/share/mythtv/sql/mc.sql
    CREATE DATABASE if not exists mythconverg;
    GRANT ALL ON mythconverg.* TO mythtv@localhost IDENTIFIED BY “mythtv”;
    GRANT CREATE TEMPORARY TABLES ON mythconverg.* TO mythtv@localhost IDENTIFIED BY “mythtv”;

    Any ideas

  12. Garry wonder if you can help please.

    As per my previous post, I have reinstalled Myth from your guide, and I am trying to import in my recordings, for some reason I am having problems with the myth user and mysql, any help really appreciated as I am in trouble with the boss as she wants to watch her programs…

    Error below

    paul@vs:~/downloads$ ./myth.rebuilddatabase.pl –dbhost=localhost –ext mpgDBI connect(‘database=mythconverg:host=localhost’,’mythtv’,…) failed: Access denied for user ‘mythtv’@’localhost’ (using password: YES) at ./myth.rebuilddatabase.pl line 188
    Cannot connect to database ()

    Regards Paul.

  13. Hi Jacktv,

    Once you’ve commented out the bind-address line /etc/mysql/my.cnf, try the following to make sure mysql is listening on all interfaces:

    netstat -a | grep mysql
    tcp 0 0 *:mysql *:* LISTEN

    The *:mysql shows that mysql is listening on all interfaces, so remote hosts should be able to connect. Then, find the mythtv password on your backend:

    grep DBPassword /etc/mythtv/mysql.txt

    …and try connecting (assuming your machine is called biko and your password is yqkmoeiw):

    mysql mythconverg -h biko -u mythtv --password=yqkmoeiw

    You *may* have to grant privileges to remote machines to use the mythtv user:

    mysql -u root mythconverg
    grant all privileges on mythconverg.* to ‘mythtv’@’%’;
    set password for ‘mythtv’@’%’ = password(‘yqkmoeiw’);
    flush privileges;

    That’s MySQL sorted, but you still have to tell MythTV to accept remote connections. This is done in the first screen in mythtv-setup – change to the main IP address of your machine.


  14. Hi Paul,

    Oops! I’m really sorry that I missed your first post.

    First of all, the mythtv MySQL user is not the same as your Linux mythtv user, so his password is different. The same goes for the MySQL root user.

    As in my post above, find out your mythtv MySQL password:

    grep DBPassword /etc/mythtv/mysql.txt

    …and try to connect (replace the password with the one you found):

    mysql mythconverg -u mythtv --password=yqkmoeiw

    Now, the password seems to be hardcoded to “mythtv” in the myth.rebuilddatabase.pl script, so edit it and change the following line to your password:

    my $pass = “mythtv”;

    Hope this helps.

  15. Sorry one more thing, I went along with your suggestion and used the EIT guide data, is there a way to get the channel icons?


  16. Hi Paul, glad you got it sorted!

    If you follow my tutorial for getting the XMLTV schedules working then it should fix the icons:


    The script basically updates the channel table with an icon path and the xmltv ID used by the Radio Times feed. Don’t worry – this is won’t be used if you’re on EIT, but it doesn’t hurt to have the ID in the database in case you want to switch in the future.

  17. Hi Garry,

    Hope your Ebay auctions are going well!

    One minor but irritating remaining problem I have with the backend on my system is that it occasionally crashes for no apparent reason. I’ve come to the conclusion that I’ll probably have to live with it, as it only happens perhaps once a week.

    As a workaround I’ve been trying to set up a Cron job that checks every few minutes and restarts the backend if not running. However, my shell script writing abilities are close to nil, and I just can’t seem to get it to work.

    I found an example script on a US website but it didn’t work as advertised (maybe written for the wrong shell?) so I took to creating something based on the content of /etc/init.d/mythtv-backend – without success…

    Have you ever tried to do this, or do you know of a simple way to achieve the same effect?

  18. Hi Martin,

    Good question. I’ve been struck by this problem recently – the backend on my main Myth box has never crashed on Feisty, but I have seen this problem on some of the newer systems I’ve built. I think it’s probably to do with using the EIT instead of the xmltv feed. If you want to fix it permanently, try giving the xmltv stuff a try – it’s a bit of a pain to get working, but the information on the programmes is much better:


    Anyway, here’s a script which I wrote to restart the backend if it crashes (/usr/bin/mythmon):

    date "+%Y-%m-%d %H:%M:%S Checking" >> /tmp/mythmon.log
    if ! ps -ef | grep [m]ythbackend >/dev/null; then
    date "+%Y-%m-%d %H:%M:%S Crash detected - restarting mythbackend" >> $LOG
    /etc/rc.d/init.d/mythbackend restart

    Add the above to a file called /usr/bin/mythmon and make it executable using chmod 755 /usr/bin/mythmon

    Then, edit root’s crontab using:

    sudo -i
    crontab -e

    …and add the following lines:

    # Run every minute and restart mythbackend if it hs crashed
    * * * * * root /usr/bin/mythmon

    Hope this helps,

  19. Thanks Garry!

    Only had to make one minor change – for some reason my installation is laid out differently than yours:

    date “+%Y-%m-%d %H:%M:%S Checking” >> /tmp/mythmon.log
    if ! ps -ef | grep [m]ythbackend >/dev/null; then
    date “+%Y-%m-%d %H:%M:%S Crash detected – restarting mythbackend” >> $LOG
    /etc/init.d/mythtv-backend restart

    Now that the backend’s running reliably I’ve got to get on with ordering the parts for an Epia-based fanless, diskless (booting off a CF card) frontend for the lounge!

  20. Sounds like fun!

    I’d be slightly wary of the Epia “fanless” CPUs, though. I’ve got an SP “fanless” which gets so hot that you need a fan in the case. As the fan’s so small it’s also very noisy. Hopefully their newer motherboards are better.

    If you don’t mind, I’d be very interested to know how you get on with it.

  21. Yeah – I’m also worried about that, especially as the Epia’s don’t seem to have any thermal management on board. I’m planning to play it cautious and fit two fans to the case (so much for “fanless”!), each wired to run at half speed. I’ve tested this with Akasa Ultra Quiet fans and they are below my threshold of hearing at anything more than around a metre away.

    Hopefully the lack of HDD will reduce overall heat output, but if that’s not enough I’ll wire a thermostatic switch to bring them both up to full speed when internal temp goes over (say) 40degrees.

    Still haven’t been able to choose which Epia to use. The CN series is faster but apparently the newer CN700 chipset is not as good as the CN400 on the SP series… Gotta decide soon!

    Have you found anywhere that’s selling Epia boards at a good price? There don’t seem to be many UK stockists.

  22. To be honest, I wasn’t impressed with my mini-itx experience. As you say, the lack of thermal management and monitoring facilities is a real pain when trying to design a quiet system and my SP board runs very hot. Also, little components can be a lot more expensive than their full size counterparts.

    I’d recommend sticking with full sized components and going for one of the new, efficient CPUs. The socket AM2 athlon64s are efficient and blow Epias out of the water speed-wise, so you get a much more responsive frontend with no messing about with XvMC. There’s also not much in it price wise. Sure, overall power consumption will be higher, but with processor frequency scaling the CPUs are sleeping most of the time.

    The resulting system will be larger, but I guarantee you can make it quieter, which is a much more important quality for a frontend as far as I’m concerned. Check out my silent backand/frontend combo for an example: http://parker1.co.uk/mythtv_silent.php

    Again, whichever way you decide to go I’d be interested to hear of your experiences.


  23. You’re right, of course. It would be a neat little toy, and I was hoping I would be able to get it to double up as a PC to use while away in a van, but that doesn’t make sense – a better laptop would be so much more convenient for the van.

    Think I’ll drop the Epia and go for an Asus P1-AH2 with the cheapest single-core Athlon 64 I can find. All-in, including £36′s worth of Compact Flash card (2x4Gb) instead of a conventional HDD, should come to less than £190.

    Appreciate your feedback – will let you know of the pitfalls if I find any!

  24. Hi Martin,

    I’m a fan of the Asus Pundit P1-AH2 and it would make a great frontend with any Athlon64 CPU.

    Slightly concerned about the compact flash stuff, though. First of all, you say that you’re going to use 2 CF cards, but the Pundit only has one slot. Also, I’d be surprised if the Pundit can boot from its CF slot. You can buy CF to IDE converters, but these are relatively expensive. USB sticks would be a better choice. I’d also go for a single USB 8GB stick if you can, as it will save you having to partition the install across 2 drives. It just makes your install more flexible. You can get an 8GB USB drive for £46 from Dabs.com.

    …can’t wait for the Sandisk solid state drives to come down in price!

  25. Good to hear you rate the P1-AH2!

    The CF stuff is really just inherited from the aborted plans to use the Epia board, and the parts are alread bought, so I might as well give it a try…

    I’ve bought a 2-slot CF to IDE adaptor for all of £3 – shipped all the way from HK. So that should connect to the single IDE on the board, with LVM used to make master & slave cards look like one 8Gb volume. But now I don’t have anywhere to connect a CD drive to load the OS from! Maybe it will be possible to load an Ubuntu live CD ISO onto a USB pen drive and boot from that to do the install, though it’s never worked when I’ve tried it before… Another option might be to chain the CF to IDE adaptor onto an IDE to SATA adaptor (which I also already have), but quite honestly I rate the chances of that working at v. close to nil!


  26. Sounds like a neat solution if you can get it working!

    Another option would be to use a SATA optical drive. They’re about £20 for a DVD writer and then you could use it to watch DVDs on your frontend. Works fine on Pundit P1-AH2s I’ve built.

  27. Thanks for the suggestion about SATA optical drives. Just got it all (mostly) up and running and here are a few observations:

    The Pundit P1 is a really nice piece of kit – good value for money compared to something like a Shuttle (of which I have two).

    The CF-card hard disk works quite well but is a bit slow to boot up and load apps. I think this is inevitable, as flash memory is relatively slow, though when they are cheaper a high-speed (e.g. 153x) USB pendrive would probably be a better bet.

    I couldn’t get LVM to work (it wouldn’t let me create any volume groups, for some reason), so I had to put / on one 4G card and /home and swap on the other. Even with myth themes, dvd, music, etc installed it’s only using around 2.5Gb – however I did remove all of the Openoffice apps to save space.

    Overall, a good experience, though I could not get the Pundit’s S-video TV-out to work (even with nvidia-settings). Perhaps that’s the excuse I need to replace my old Sony TV with a widescreen LCD monitor!

  28. Hi Martin,

    Glad it’s going well.

    Strange that you’ve had TV-out problems. I just loaded the restricted driver, plugged in the S-video cable and that was it!

  29. Correction: There was nothing wrong with the Pundit TV-out – the problem was my 20-year-old Sony TV. When connected to a more recent TV it works Ok (though the image through S-video on a 30″ widescreen doesn’t look so great).

    So the plan now is to fork out £200 on an LG 22″ widescreen LCD monitor. It’s got a 1680×1050 resolution which should look crisp, as long as the Pundit’s built-in graphics can drive it – just a bit more research required…

  30. Well all hooked up now and, as you say, looks stunning. One minor complaint about the LG monitors: in a darkened room you get rather a lot of backlight bleed through – but I guess that’s a price you have to pay for such a bright picture in daylight conditions. I’ll try tweaking the brightness down a bit.

    One big surprise for me is how well the Logitech Cordless keyboards are integrated within Ubuntu (and presumably other similar distros). I had expected the extra keys to do nothing much without driver software, but hit the “Sleep” key and the system drops into Standby – and the volume controls work as well. Fantastic! I was dreading trying to get an IR remote control to work remotely over the network, but now I don’t think I’ll bother…


  31. But then – of course – I spoke to soon!

    Mythfrontend doesn’t work after a resume from Suspend (well the process runs, but nothing is displayed on the screen!) and the volume control buttons, while they cause a changing graphic to appear on screen, don’t actually change the volume!

    Oh well, have to hope for rain at the weekend so I’ve got some time free to tweak it some more…

  32. The volume control issue was easy to solve (was defaulting to Front Mic input, just needed changing to PCM), but the CF-card hard disk experiment is over.

    Interesting to try, but a failure – largely due I think to the slow IDE data rate that the (admittedly cheap) CF-to-IDE adapter uses (33 Mhz). It is just too slow to boot and load Myth, and panning shots in LiveTV would become jerky after a couple of seconds. I’ll try another install with a fast USB pendrive instead, but doubt I’ll get it to boot up.

    So I guess it’s time to order a 2.5″ HDD, mounting it from rubber bands or similar to keep it quiet. And in the interests of “keep changing things until it breaks (again)” I’ll probably get another DVB-T tuner and turn it into a slave backend/frontend so that I only have to use the network to watch recordings…

    I quite like the idea of the Hauppauge Nova-TD USB diversity twin tuner, but after much Googling, haven’t found any reports of anyone getting one to work with MythTV!

  33. I guess I should have known better! If nobody else is doing it that way, there’s probably a good reason.

    For completeness I did try a 4gB fast (120x) USB in a USB 2.0 port last night, using the Pendrivelinux website tutorial. I only got it to boot once, and it was still quite slow to load up. Never got a chance to install Myth, as it crashed and burned on the second boot.

    Seems to demonstrate that even the “fast” versions of flash memory are ~way~ slower than a HDD. As you mentioned earlier, will be interesting to try the hybrids when they become affordable…

  34. Hi

    I’ve installed MythTV and set up the backend. Ive just been watching a rerun of football focus on the monitor using the test method you suggested, so i though everything should be fine. However, when I run the frontend, i get a blank screen and a non functioning pc. Do you know what this might be?

    System is:

    Sempron 2800
    Asus K8 Uograde NF3
    1GB RAM
    160GB HD
    ATI Radeon 7000
    Nova T DVB card

    I can’t get the tv-out to work on the graphics card, but is this also teh problem with myth tv too?



  35. Hi Nick,

    I think that your two problems are related. Mythfrontend, by default, requires some GLX extensions for fading menus which usually require a proprietary video driver. TV-out also usually requires the same driver.

    To enable the driver, go to System->Administration->Restricted Drivers Manager and see if there is an option to use the ATI accelerated graphics driver for your card. If not, then what you need is the ATI fglrx driver. There’s plenty of stuff on the web about it. Check back here if you have any problems.

    One other point – I doubt that this causes you to have a “Non-functioning PC”. If mythfrontend gives you a blank screen, then pressing ALT-TAB should still switch between apps. If this fails, hitting CTRL-ALT-BACKSPACE should restart X winows.

    Hope this helps,

  36. Open to any suggestions

    I have installed Fiesty and Mythtv and can view dvd films on the dvd writer but if I try to write a mythtv recording to an empty dvd I go through all the archive steps then get a log viewer screen with a highlighted UPDATE button in the middle of 3 buttons. That just sits there without anything happening.

  37. Hi Peter,

    Try running mythfrontend from the command line to see its debugging output while you attempt the archive. Also check the backend log in /var/log/mythtv/mythbackend.log. I assume that Myth’s getting stuck trying to run something and this might give you a clue as to what it is.

  38. Hello Garry

    Thanks for lightning response
    Did as you suggested and it seems the mythtv cannot use the archive temp folder
    Have enclosed frontend log be grateful if you could look for any problems and suggest any solutions
    When I look at the permissions for the archive folders they are all owned by ROOT although they were setup by mythtv.

    peter@peter-desktop:~$ mythfrontend
    X Error: BadDevice, invalid or uninitialized input device 171
    Major opcode: 149
    Minor opcode: 3
    Resource id: 0×0
    Failed to open device
    X Error: BadDevice, invalid or uninitialized input device 171
    Major opcode: 149
    Minor opcode: 3
    Resource id: 0×0
    Failed to open device
    2007-09-04 13:05:15.732 Using runtime prefix = /usr
    2007-09-04 13:05:15.750 Gnome-Screensaver support enabled
    2007-09-04 13:05:15.751 DPMS is active.
    2007-09-04 13:05:15.773 New DB connection, total: 1
    2007-09-04 13:05:15.780 Connected to database ‘mythconverg’ at host: localhost
    2007-09-04 13:05:15.782 Total desktop dim: 1024×768, with 1 screen[s].
    2007-09-04 13:05:15.787 Using screen 0, 1024×768 at 0,0
    2007-09-04 13:05:15.804 Current Schema Version: 1160
    2007-09-04 13:05:15.805 mythfrontend version: 0.20.20070821-1 http://www.mythtv.org
    2007-09-04 13:05:15.806 Enabled verbose msgs: important general
    2007-09-04 13:05:16.310 Total desktop dim: 1024×768, with 1 screen[s].
    2007-09-04 13:05:16.313 Using screen 0, 1024×768 at 0,0
    2007-09-04 13:05:16.313 Switching to wide mode (MythCenter-wide)
    2007-09-04 13:05:16.349 Using the Qt painter
    mythtv: could not connect to socket
    mythtv: No such file or directory
    lirc_init failed for mythtv, see preceding messages
    2007-09-04 13:05:16.883 Joystick disabled.
    2007-09-04 13:05:17.670 Loading from: /usr/share/mythtv/themes/default/base.xml
    2007-09-04 13:05:17.791 Registering Internal as a media playback plugin.
    2007-09-04 13:05:17.828 Registering MythDVD DVD Media Handler as a media handler ext()
    2007-09-04 13:05:17.829 Registering MythDVD VCD Media Handler as a media handler ext()
    2007-09-04 13:05:17.851 Registering MythGallery Media Handler 1/2 as a media handler ext()
    2007-09-04 13:05:17.851 Registering MythGallery Media Handler 2/2 as a media handler ext(gif,jpg,png)
    Failed to run ‘cdrecord –scanbus’
    Failed to run ‘cdrecord –scanbus’
    Failed to run ‘cdrecord –scanbus’
    2007-09-04 13:05:17.932 Registering MythMusic Media Handler 1/2 as a media handler ext()
    2007-09-04 13:05:17.933 Registering MythMusic Media Handler 2/2 as a media handler ext(ogg,mp3,aac,flac)
    Failed to find network interface eth0
    SIP listening on IP Address :5060 NAT address
    SIP: Cannot register; proxy, username or password not set
    Destroying SipFsm object
    chmod: cannot access `/usr/share/mythtv/mytharchive/temp/work’: No such file or directory
    chmod: cannot access `/usr/share/mythtv/mytharchive/temp/logs’: No such file or directory
    chmod: cannot access `/usr/share/mythtv/mytharchive/temp/config’: No such file or directory
    2007-09-04 13:05:42.628 XMLParse::LoadTheme using /usr/share/mythtv/themes/default-wide/mythburn-ui.xml
    2007-09-04 13:05:45.619 New DB connection, total: 2
    2007-09-04 13:05:45.619 Connected to database ‘mythconverg’ at host: localhost
    2007-09-04 13:05:45.622 New DB connection, total: 3
    2007-09-04 13:05:45.622 Connected to database ‘mythconverg’ at host: localhost
    MythburnWizard::createConfigFile: Failed to open file for writing – /usr/share/mythtv/mytharchive/temp/config/mydata.xml
    sh: cannot create /usr/share/mythtv/mytharchive/temp/logs/mythburn.log: Directory nonexistent

  39. Hi Peter,

    My mytharchive directory is owned by the mythtv user:

    ls -ld /usr/share/mythtv/mytharchive
    drwxr-xr-x 8 mythtv root 4096 2007-09-04 13:24 /usr/share/mythtv/mytharchive/

    So, you can either change the ownership of the directory to the mythtv user:

    sudo chown mythtv /usr/share/mythtv/mytharchive

    Or, make the directory writable by anyone:

    sudo chmod 777 /usr/share/mythtv/mytharchive

    …which should make it work for any user who runs mythfrontend.


  40. Hello Garry

    Spot on

    But why I wonder does mythtv which set up the folder structure not have permissions for it. I find this such a strange thing with linux as it often happens.

    Thanks again

  41. Hey Garry,

    I’m also having a problem with getting the tv-out function to work properly with the closed source drivers. The only way I can get tv out is to use the open source drivers then change a BIOS setting to get it to work. I have tried just about everything I can think of and all nvidia-setting will do is detect the composite video and disable it.

  42. Hi Chris,

    What nVidia card do you have? Can you give me more details regarding what you’ve tried, such as which BIOS setting you changed?

  43. Hey Garry,

    OK I forgot to mention that I also have a ASUS Pundit P1-AH2.
    The BIOS setting was to set it for TV or CRT or Auto, when I switch it to TV, PC monitor turn off TV kick in, but if I enable the closed source drivers from the Restricted driver manager it goes back to the PC monitor when the Xserver starts. I even re-installed to the Gusty development version to try and solve the problem but still not working.
    So I’m stuck using the open source drivers.

  44. Hi Chris,

    That’s really weird. All I had to do to get it to work was to install the nVidia restricted driver (from the Restricted Drivers Manager) and plug it into my TV. I didn’t even have to touch the BIOS settings (so I’m guessing it was set to auto). This was all on Feisty amd64.

    I’ve been racking my brain trying to work out what could be different on your setup. What results have you got with TV-out and the open source drivers? At least this will help you rule out any issues with your TV.

    All I had plugged in was my TV, maybe this would make a difference?

    Other that that, maybe editing the settings in /etc/X11/xorg.conf to force it to use your TV would help. Let me stress that I didn’t have to do this to get it working on my system.

  45. The weird part is that nvidia-settings sees the tv, but leaves it disabled, if I turn on nvidia-settings without the tv plugged in no options for the tv, so that only confirms it recognizes the tv. Now forcing it in the xorg.conf, I have tried some settings which usually results in a xserver that does just fails to launch. I’m hoping there is some settings I’m missing to force it, because I thought nvidia-settings would put the right xorg.conf settings in for me.

  46. OK I have good news, the latest update for Gusty (Development Ubuntu), just fixed the problem. It works yeah. Still not sure why it didn’t work in Feisty. But I’m not worried now. Thanks for your help.

  47. I have asus pundit p1-ah2 and big problem with TVout. I tried setup it on different linux distribution (debian etch 2.6.18,testing/unstable 2.6.22; ubuntu feisty 2.6.20). My CRT and Tvout works fine, but not in the same time. I can enable CRT or TVout but secound is turned off. My session “screen” looks that:

    Option “TwinView” “true”
    Option “TwinViewOrientation” “Clone”
    Option “TVOutFormat” “SVIDEO” #or SVIDEO, COMPOSITE
    Option “TVStandard” “PAL-B”
    Option “SecondMonitorHorizSync” “30-50″
    Option “SecondMonitorVertRefresh” “60″
    Option “MetaModes” “1024×768,640×480; 800×600,NULL;640×480,NULL”
    Option “ConnectedMonitor” “CRT-0, TV-0″
    Option “TVOverScan” “0.6″

    When i change Option “ConnectedMonitor” “CRT-0″ or Option “ConnectedMonitor” “TV-0″ i have a picture. But when i change to Option “ConnectedMonitor” “CRT-0, TV-0″ i have error:

    (II) NVIDIA(0): Setting mode “1024×768,640×480″
    (EE) NVIDIA(0): The requested configuration of display devices is not
    (EE) NVIDIA(0): supported in the hardware.

    I give up. HELP :).

  48. Garry

    Sorry for the delay in responding – work etc…

    I have now taken the ATI card out and installed a new XFX nvidia fx 5200.

    I have got tv-out working (http://ubuntuforums.org/showthread.php?t=556397)

    However, I still get a blank screen when I start Watch TV, but now it only lasts a second and then reverts back to the main menu.

    I did a check on the mythbackend log and there are a couple of errors – i can post details if useful.

    Thanks for your help


    Is this likley to be the problem.

  49. Hi Pascal,

    Sorry for the late reply, I’ve been on holiday for a week…

    Have you tried the nvidia-settings utility? I’d give it a go.

  50. Hi Nick,

    I assume that by following the instructions on the link you posted that you are running with the “restricted drivers” – you can check in “System->Administration->Restricted Drivers Manager” that the nVidia driver is selected.

    Than try running mythfrontend from a terminal and post the output here if it still doesn’t work.

  51. Garry

    As requested (!?) here is the output for running running mythfrontend from a terminal :

    nick@sempron2800:~$ mythfrontend
    X Error: BadDevice, invalid or uninitialized input device 169
    Major opcode: 147
    Minor opcode: 3
    Resource id: 0×0
    Failed to open device
    X Error: BadDevice, invalid or uninitialized input device 169
    Major opcode: 147
    Minor opcode: 3
    Resource id: 0×0
    Failed to open device
    2007-09-25 17:54:56.131 Using runtime prefix = /usr
    2007-09-25 17:54:56.151 Gnome-Screensaver support enabled
    2007-09-25 17:54:56.151 DPMS is active.
    2007-09-25 17:54:56.180 New DB connection, total: 1
    2007-09-25 17:54:56.186 Connected to database ‘mythconverg’ at host: localhost
    2007-09-25 17:54:56.187 Total desktop dim: 1024×768, with 2 screen[s].
    2007-09-25 17:54:56.193 Running in a window
    2007-09-25 17:54:56.193 Using screen 0, 1024×768 at 0,0
    2007-09-25 17:54:56.203 Current Schema Version: 1160
    2007-09-25 17:54:56.203 mythfrontend version: 0.20.20060828-3 http://www.mythtv.org
    2007-09-25 17:54:56.203 Enabled verbose msgs: important general
    2007-09-25 17:54:57.186 Total desktop dim: 1024×768, with 2 screen[s].
    2007-09-25 17:54:57.187 Running in a window
    2007-09-25 17:54:57.188 Using screen 0, 1024×768 at 0,0
    2007-09-25 17:54:57.188 Switching to square mode (MythCenter)
    2007-09-25 17:54:57.235 Using the Qt painter
    mythtv: could not open config file /home/nick/.mythtv/lircrc
    mythtv: No such file or directory
    Failed to read lirc config /home/nick/.mythtv/lircrc for mythtv
    2007-09-25 17:54:57.737 Joystick disabled.
    2007-09-25 17:54:58.543 Loading from: /usr/share/mythtv/themes/G.A.N.T./base.xml
    2007-09-25 17:54:58.605 Loading from: /usr/share/mythtv/themes/default/base.xml
    2007-09-25 17:54:58.790 Registering Internal as a media playback plugin.
    2007-09-25 17:54:58.833 Removing stale cache dir: /home/nick/.mythtv/themecache/MythCenter.1024.718
    2007-09-25 17:54:58.857 Removing stale cache dir: /home/nick/.mythtv/themecache/MythCenter.1024.718/bkg
    2007-09-25 17:54:58.859 Removing stale cache dir: /home/nick/.mythtv/themecache/MythCenter.1024.718/keyboard
    2007-09-25 17:54:58.889 Removing stale cache dir: /home/nick/.mythtv/themecache/MythCenter.1024.718/title
    2007-09-25 17:54:58.903 Removing stale cache dir: /home/nick/.mythtv/themecache/MythCenter.1024.718/type
    2007-09-25 17:54:58.913 Removing stale cache dir: /home/nick/.mythtv/themecache/MythCenter.1024.718/watermark
    2007-09-25 17:55:28.338 New DB connection, total: 2
    2007-09-25 17:55:28.339 Connected to database ‘mythconverg’ at host: localhost
    2007-09-25 17:55:28.440 Connecting to backend server: (try 1 of 5)
    2007-09-25 17:55:28.442 Using protocol version 31
    2007-09-25 17:55:28.534 TV: Attempting to change from None to WatchingLiveTV
    2007-09-25 17:55:28.535 Using protocol version 31
    2007-09-25 17:55:31.168 GetEntryAt(-1) failed.
    2007-09-25 17:55:31.170 EntryToProgram(0@Thu Jan 1 01:00:00 1970) failed to get pginfo
    2007-09-25 17:55:31.170 TV Error: LiveTV not successfully started
    2007-09-25 17:55:31.170 TV Error: LiveTV not successfully started
    2007-09-25 17:55:31.180 TV: Deleting TV Chain in destructor
    2007-09-25 17:55:31.185 DPMS Deactivated
    2007-09-25 17:55:31.186 DPMS Reactivated.
    2007-09-25 17:55:32.712 TV: Attempting to change from None to WatchingLiveTV
    2007-09-25 17:55:32.713 Using protocol version 31
    2007-09-25 17:55:34.868 GetEntryAt(-1) failed.
    2007-09-25 17:55:34.869 EntryToProgram(0@Thu Jan 1 01:00:00 1970) failed to get pginfo
    2007-09-25 17:55:34.870 TV Error: LiveTV not successfully started
    2007-09-25 17:55:34.870 TV Error: LiveTV not successfully started
    2007-09-25 17:55:34.887 TV: Deleting TV Chain in destructor
    2007-09-25 17:55:34.890 DPMS Deactivated
    2007-09-25 17:55:34.890 DPMS Reactivated.

    It doesn’t look like a great deal worked, but I will continue to surf the Ubunt forums for some more help. Any comments from yourself would be much appreciated!



  52. Hi Nick,

    This is a stab in the dark, but it might be database corruption. Try checking all tables in the mythconverg database. From the command line, run:

    mysqlcheck -u root mythconverg


  53. I’m a newcomer in many senses of the word.

    Is there a tutorial for the Pundit P-1 which

    I purchased in mid – 2007?

    There seems to be nothing on the net, in English anyway.

    Would it be possible to receive an email answer?

    I would be grateful!


  54. Me back Garry for some advice

    I have a feisty mythtv system thats working fine, my only gripe is that every so often the hard disk starts muttering to itself when the pc is idle and no recordings are defined. I think it is due to the backserver but cannot find a way to check this. When I installed I let ubuntu install take its defaults and I let mythtv do similar.

    When gutsy is released I intend to rebuild mythtv so do you think that a better linux partion layout could lessen the muttering.

  55. Garry,

    great guide. The front end went really smoothly and I have the front & back end on separate machines and pretty much all is working ok.

    Have you had any experience of using suspend with the EPIA Sp8000E? I have the front end running on it and S3 suspend works fine, and resume comes back ( system is ok via vnc, but I get a blank screen, I will got for openchrome drivers to see if that resolves it).

    My main question is that when in S3 ( S1 as well I reckon), on the SP8000E, the USB mouse & keyboard get powered off, so I cant resume from them. My next stage was to hook up the MCE remote receiver and install LIRC, but I want to make sure that I can get USB resume from S3 working via a keyboard before I try LIRC.


Leave a Reply

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

+ four = 13

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>