I was suffering from random X11 lockups on the MythTV HTPC for some time - at least, at first they seemed random. Then I noticed it would only happen if I was recording two programs at the same time as watching something - the display would lock up completely under those circumstances, but the machine was still running. After some investigation, I found I was suffering from the "Xid" lockups.
Tag - HTPC project
Sunday 30 April 2006
New projector
By Osma on Sunday 30 April 2006, 14:35
The lamp in my old projector blew up last weekend just after we finished watching Sin City. Good thing it didn't blow up during.. Anyways, this lead to buying a completely new projector, a Hitachi PJ-TX200.
Wednesday 14 September 2005
TiVo won't keep your recordinds
By Osma on Wednesday 14 September 2005, 15:55
Across the pond, copyright is being twisted to an ever-more unbalanced state, with networks being able to pull recordinds out of your living room: TiVo will delete shows on broadcaster's command.
Thursday 25 August 2005
HTPC project: projector and remote configurations
By Osma on Thursday 25 August 2005, 10:03
Due to popular demand, I'm posting some pointers for configuring X11 for use with the Sanyo PLV-Z1 projector, and how to use the TechniSat Airstar 2 TV's remote IR dongle with lirc. Read on for details.
Sunday 13 February 2005
MythTV 0.17
By Osma on Sunday 13 February 2005, 18:01
Upgraded to MythTV 0.17 today. What an excellent upgrade - although the new DVB support did require a reconfiguration of all channels, this time it was really easy. Live TV works much better, automatically detecting correct program aspect ratio has worked for all the programs it did not work for before, and generally speaking everything has improved greatly.
Using the DVB EPG instead of XMLTV works well too. I was getting a bit tired of the errors in the Katso.fi data XMLTV uses, and now the program categories flag movies etc nicely. My complaints about the Music plugin still hold, though.
Comment by Antti Kaihola on Thu, 28 Apr 2005 17:50:42:
Would be wonderful to find a setup guide for using MythTV 0.17 in Finland. I
couldn't for instance yet find out how to use DVB EPG or scan for DVB
channels.
Comment by Osma on Fri, 29 Apr 2005 14:50:32:
Only thing you need to do is to tell MythTV the transmit frequency of one
channel bundle, and it will scan the rest out and configure all channels. And
yes, this is in Finland.
Sunday 23 January 2005
Living-room worthy HTPC
By Osma on Sunday 23 January 2005, 19:05
Had the final case for the system delivered this Friday.
Only4Pro was the first place I noted to
have got a shipment of the Silverstone LC11 case, and I managed to order one
before they ran out.
Transferring the innards to the new case was surprisingly straightforward. Although it is compact, it's fairly nicely laid out. I had one bigger problem, though - the button in the aluminum fascia for the DVD player eject was too "tight", and I could not align the drive so that it would have worked - ended up being a matter of half a millimeter. However, on Saturday I bought a new set of stuff for the workroom PC (which I'm using to type this), and got a different model DVD drive. Still a tight fit, but now it worked out.
I also replaced the stock heatsink and fan with a Glacialtech Silent Breeze in hopes of quieting down the machine. It's still fairly loud with 3x 80mm fans rotating at 2100 rpm, but I'm hopeful that I will be able to slow the fans down without creating a heat problem. Even now, it's an even hum, and not very disturbing. Surprisingly in this case the Samsung hard drive is quieter than in the Antec Sonata, even though it's now directly connected to the metal case structure, so in fact regardless of the hum, it's less noticeable than the Sonata was.
The new workroom PC worked out pretty well, too. I was pondering using the old CPU and getting something less powerful for the HTPC, but as the Athlon XPs, Semprons etc all seem to generate about the same level of heat, and apparently XPs are starting to be difficult to find, I got a new Athlon 64 and Nforce3 mainboard instead. Reused the Radeon 9600 Pro I had taken out of the HTPC to reduce its heat output, and found that the new ATI driver works very well even on a x86_64 system. Quite enough of performance for what this machine is intended for - even capable of gaming, or what gaming there is under Linux, anyway.
Sunday 9 January 2005
HTPC project: wakeup problem solved
By Osma on Sunday 9 January 2005, 20:25
Earlier, I wrote about my HTPC not waking up before programmed recordings. Finally, an article in Linux Magazin (German, which I don't read) led me to the right direction (thank you, Google Translate).
Turns out at least ASUS A7N8X resets its BIOS wakeup setting if the RTC is written to, and of course this is what the Fedora Core halt script does as one of the very last things. The workaround is to add CLOCKFLAGS="--directisa" to /etc/sysconfig/clock, to modify how hwclock accesses the BIOS NVRAM. In addition, the machine needs to execute BIOS code in order to register the wakeup time, shutdown -r followed by Grub executing "halt" is needed.
Hmm. I wonder how many years of computer hobbyist experience that paragraph requires from the reader. :) Anyhow, I hope this script is helpful to someone:
#!/bin/sh
# /usr/local/sbin/set-wakeup-time [date-and-time]
[ $# -ne 1 ] && exit 1
time_t=$(date +%s -d "$1")
[ "$time_t" != "" -a "$time_t" -gt 0 ] || exit 1
utc=$(perl -e 'use POSIX; print strftime "%F %T", gmtime('$time_t');')
echo "waking up at $utc UTC"
#echo "$1" > /proc/acpi/alarm
/usr/sbin/nvram-wakeup -A -s $time_t || (
echo "savedefault --default=0 --once
quit" | /sbin/grub 2>/dev/null
)
echo "shut down with 'shutdown -r now'
Put something like this in /boot/grub/grub.conf:
default saved
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Power Off
halt
title Fedora Core (2.6.11-1.27_FC3)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.27_FC3 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.11-1.27_FC3.img
savedefault
Why MythTV really is better than ready-made DVR
By Osma on Sunday 9 January 2005, 16:16
I've mentioned before that my MythTV box most likely will end up to be more expensive than a ready-made device, and certainly it has been more difficult to build than plugging in a box that has everything already configured. Sure, but that's not the point, not really. MythTV may be expensive and difficult, but it protects my freedoms.
Sunday 2 January 2005
HTPC project update
By Osma on Sunday 2 January 2005, 19:23
Not much happening, really. I've been looking for a box that I could actually see before purchase (the DIGN I've drooled after before is not just expensive, but would be a blind purchase). Can't really decide whether I want to emphasise (small) size, silence, expandability, or what..
Silverstone has introduced a few rather cool new options. I was aware of the LC03 before, but I can't get too enthusastic about hiding the DVD player behind a door, as that makes it more difficult to use. That's why the LC10 and LC11 are interesting.
However, I'm still looking for something the size of the latter with a place for an LCD/VFD display, as that would be quite useful when just playing music (having to turn on the video projector to be able to pick a playlist is annoying). Then again, a bigger box should be more silent, and would have room for a second hard disk (it didn't take long to fill up 160GB with 2gigs per hour DVB content..)
My earlier minor complaints about MythTV have started to bother me more. In particular, I really don't like the way the music player is implemented - I think that feature should be more of an integrated solution, with a single-button music on/off setting in the remote, and the GUI should only be for changing music choices. It is rather stupid that I can't for example program a TV recording without interrupting music. In fact, I'm not using MythMusic at all right now - instead, I have Rhythmbox in the background. Not ideal either, because RB is not accessible with the remote control.
There's also a weird problem I've mentioned before, where sometimes Myth loses the ability to receive DVB signal (I guess if it tries to tune to a channel which is not broadcasting, it can't recover, or something). I made a script that tries to detect from the log file when that happens and restart the backend (combined with the reload of the DVB driver), but I've had a couple of cases where it failed to record something anyway.
Sunday 12 December 2004
HTPC project: Overview of MythTV
By Osma on Sunday 12 December 2004, 11:32
Last time, I promised to write something about how all of his works together instead of continuing with the installation notes. While I haven't yet figured out every detail of the whole system, this is what I'm going to do today. Read on...
Components
My system consists of a fairly standard Athlon PC equipped with a TechniSat AirStar 2 TV PCI card giving it DVB-T television reception. This card is capable of receiving free-to-air (unencrypted) channels, but not those which require a Conax card to decode. I'm planning to later add a second card with support for this purpose. Another note about the card is that it's of the budget variety with no MPEG-2 decoding functionalities - this actually makes it a better choice for a system like this, given that any modern CPU will be more than capable enough to perform the decoding in software, especially when assisted by a decent video card.
For the display, I'm using the Sanyo PLV-Z1 video projector I bought last spring.
To go with the hardware, I've installed Fedora Core 3 Linux and the MythTV suite, most easily available via ATrpms, a repository of software maintained by Axel Thimm. The other alternative would be to use KnoppMyth, which in fact contains a complete system installation. I did not use this as I repurposed the computer from our workroom PC, and did not want to reinstall it completely.
The DVB card came with a simple remote control, the configuration of which was included in LIRC, which is what all Linux programs use for remote control support.
Viewing and recording TV
The main function of the system is of course viewing and recording TV
broadcast. After spending some time going through various deadends trying to
make MythTV understand the DVB driver, I stumbled upon the real solution:
Zap2Myth. This program takes
a list of channels from the tzap program (which is able to find them
automatically), and converts that to MythTV's format as an SQL script which you
can insert into the MythTV backend database. The process could have been a lot
more clear, and in fact I think MythTV should use tzap directly to handle DVB
reception, but eventually I did succeed in the installation.
The results are mostly very satisfying, with excellent image quality, comparable to the best digital TV set-top boxes. Not completely so, however. Trying to switch to a channel which is not currently broadcasting can freeze MythTV, requiring me to either wait for a timeout to occur, or to restart the software. A couple of times this has actually crashed the backend, requiring a restart. I have not been able to get subtitles to work either - this is a problem that affects many DVB-T set-top boxes and is due to the Finnish broadcasts being slightly different than in other (larger) markets. I get the feeling MythTV has not been completely tuned for DVB reception, and these glitches would not appear with analog channels.
As an aside: MythTV consists of two linked parts. The backend is in charge of receiving broadcasts, scheduling recordings and storage, while the frontend provides the on-screen menus and viewing capabilities. This split makes it possible to build a solution where the storage is done by a separate computer hidden in another room, and the living-room frontend is a smaller device. In fact, it is a commonplace solution to connect multiple frontends to the same backend, for viewing the same video archive from multiple rooms for instance. In my case, the backend and frontend are on the same box, although I have additionally configured another frontend on my laptop for casual viewing.
Selecting programs to watch or record is done via an easy-to-use
program guide, immediately familiar to anyone who's used a Tivo device or most
other set-top boxes. This program guide pulls in program information from
public web sites via a program called XMLTV. Its
coverage of Finnish TV channels is via the Katso! web site. Using channel information from
Telkku.com or Ohjelmat.info would however sometimes give
better coverage. For the most part, this is a satisfactory solution anyway.
With one DVB-T card, I can watch or record one live broadcast at a time. In fact, due to the way DVB broadcasts are made, it would be possible to do more, as is shown by another software package the name of VDR. MythTV does have patches for similar functionality, but these have not been integrated to the package yet. However, MythTV will be able to utilise as many reception cards you install, and I plan to later install a second DVB card with pay-channel support via a Conax decode card and an analog TV card for receiving a couple of satellite channels from our building's common satellite dish.
DVD
Another goal of this project was to reduce the height of our hifi stack. We've already eliminated the VCR, and eliminating the DVD player as well should be quite easy.
Again, annoying glitches did make this somewhat more work than I expected. MythTV by default utilises a program called MPlayer to provide it with playback capabilities. MPlayer is a wonderfully versatile package, able to display nearly any formats imaginable, with excellent video quality through its postprocessing capabilities. However, DVD playback is lacking one crucially important feature: support for DVD menus. This resulted in most DVD discs showing nothing but a blank screen.
However, the solution to this was to reconfigure MythTV to use another media player for DVD playback. I used Xine, although I could have chosen Ogle as well. Both of these have very robust DVD support. The lack of "boxed" integration does mean that I still have to additionally reconfigure Xine's keyboard commands to match to MythTV's so that the remote control will work as expected.
Music
VCR and DVD player eliminated, lets turn our sights to the CD changer. Since the computer I'm building this on is our old workroom computer, it already had most of our CD collection on it in Ogg Vorbis format. Vorbis is a format competing against MP3, AAC and others, distinctive by providing high quality in low bitrate and at the same time being completely open source. It's gradually getting more widespread market acceptance, with support in some portable players such as the very cool iAudio M3 (christmas present, anyone?).
MythTV supported this with no effort whatsoever via the MythMusic
system. Two wishlist items: it could have automatically found the music
collection (like for example Rhythmbox
and Zinf, but more importantly, it does not
have a very good music browsing/playlist management system. Combined with the
limitations of the remote control, this makes choosing music a bit of a job.
It's much better than the MP3-CD support of our DVD player, but falls very
short of the best desktop media players like iTunes or Rhythmbox.
Other functionalities
Now, we are talking about a PC, so the story certainly does not end here. We have the following:
Commercial autoskip: On the second day after the installation of MythTV, it already started to notify us while viewing recorded programs that a commercial break is starting in a couple of seconds, offering to skip it completely. This is a wonderful feature, and I can not really criticise it of not always being 100% correct, as for the most part it does work very well, and perfectly enhances the fast-forward and rewind functions you would expect to have in a digital media center.
Editing recordings: Sometimes you want to archive shows for later viewing, such as recently the last couple of episodes of Sopranos before its Finnish broadcast break, so that we can watch them again before the show returns. This is made perfect by the editing capabilities, allowing us to remove commercials completely from the archived version (which of course can also be re-encoded to DIVX format and burnt to CD-R for offline archiving).
Weather forecast: After telling MythTV that we live in Helsinki, it started to pull weather forecasts complete wth satellite pictures from Weather.com, providing a nicely presented, always up to date weather forecast a couple of remote button presses away.
News: Naturally I can program the latest news broadcast to always be recorded, but in addition MythTV will pull in the web-based news articles from any sites I want. BBC, CNN, Dilbert...
Other video: Whether its home videos or stuff pulled from the net, the system will show it all just like TV programming. I've enjoyed a couple of episodes of MTV's Pimp My Ride this way recently.
Picture gallery: All of our digital pictures are stored on this box, and MythTV includes a nice picture gallery component for watching slideshows on our projector.
Further
The possibilities are endless. There's an extension to MythTV providing classic arcade and console games via the MAME project that I have not yet tried. The built-in web browser is perfect for casually checking a web site from time to time, or regularly accessing MovieLens for the latest movie recommendations. Although Linux doesn't have that many games available for it, some of the best ones are perfect for living room enjoyment..
Bottom line: MythTV provides us with an extremely versatile, and for the most part nicely polished HTPC system, but it still is a bit too difficult to set up, especially when using it for DVB reception in a small country like Finland. Most people will get a more satisfactory experience by buying a ready-made solution, but if you're willing to tinker, and have experience with computers, this approach will give you much more than anything available in a store.
Comment by Sylvain on Tue, 23 Aug 2005 06:16:55:
I also have a Sanyo PLV-Z1 and run MythTV. I was wondering if you were able to
drive it in its native resolution (964x544) from X? Thanks,
Sylvain
Comment by oa on Thu, 25 Aug 2005 10:30:03:
Check my latest entry, hopefully it'll help you along.
http://www.fishpool.org/archives/tech/200508/htpc_project_projector_and_remote_configurations.html
« previous entries - page 1 of 2