Note: Why bother following this guide when most of it is now taken care of following the release of R5A22? - I suggest you go and download it.
Guide for R5A22
http://mysettopbox.tv/phpBB2/viewtopic. ... 7860#37860
This is a walkthrough guide for setting up a Hauppage WinTv Nova-T. The guide is specific to UK users running Knoppmyth R5A16 so there will be slight differences for others. Please add any comments, suggestions or easier methods because as it stands it's still a bit of a ballache to set up all the XMLTV ID's.
Stage 1 - Sort The Kernel Out
Stage 2 - Setup The Tuner
Stage 3 - Setup Remote Control
Stage 4 - Optional: Grab tv guide from the air rather than internet
Stage 1 - Sort The Kernel Out
Obtain and Configure The Kernel
You need to either:
A) patch the existing 2.6.11.7-chw-2 kernel, or
B) compile a later kernel, either 2.6.12 or 2.6.13
I went for a new 2.6.13 stock kernel.
Code:
1. # cd /usr/src
2. # wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.tar.bz2
3. # tar xvjf linux-2.6.13.tar.bz2
4. # rm linux
5. # ln -s linux-2.6.13 linux (creates a symbolic link to the new source)
6. # cd linux
7. # make menuconfig
8. Go down to ‘device drivers --> multimedia devices --> video for linux’
9. Select (M) for everything under 'Video for linux’, ‘Digital Video roadcasting Devices’ (and any sub sections)
10. Make sure ‘Connexant 2388x’ & ‘DVB support for cx2388x’ are selected (M)
11. Remove anything you don’t want (N)
12. Save and Exit
Compile and install the new kernel Code:
13. # make
14. # make modules_install
15. # make install
16. # nano /etc/lilo.conf
scroll down and change the reference to the kernel image from:
/boot/vmlinuz-2.6.11.9-chw-2, to
/boot/vmlinuz-2.6.13
Code:
17. # lilo
18. # reboot
19. # nano /proc/version (to check it is running the new kernel)
Stage 2 - Setting Up The TunerFirst of all make sure you have a decent aerial plugged into the Tv card. A strong signal is required for digital terrestial so hopefully your aerial is on the roof and set up correctly. Use this website to check what channels you can expect to receive in your area.
http://www.dtg.org.uk/retailer/coverage.htmlI also heard a theory that if you scan for some channels at a time that they're not being broadcast (i.e. BBC3 and BBC4) then they will not be picked up. In any case I haven't got BBC3 and BBC4 yet.
Scanning For Transport FrequenciesFirst we need to make sure that mythbackend isn’t denying access to the TV card.
Code:
1. # ps –A
2. # kill -XXXX (where XXXX is the process id of ‘mythbackend’)
Now you need to know the name of your local transmitter. For example mine is ‘Winter Hill’ in Lancashire. Check on these websites if unsure:
http://www.bbc.co.uk/reception/transmit ... ndex.shtml, or
http://www.dtg.org.uk/retailer/transmitters.htmlCode:
3. # cd /usr/local/share/dvb/dvb-t/
4. # dvbscan uk-WinterHill | tee freeviewchannels.conf
5. # nano freeviewchannels.conf
Make sure that this file has a block of data saved in it. You will notice that each frequency carries approximately 5-10 channels. My region found 6 different transports in total. You will need to refer to these settings later.
Check this link to see what channels you should expect in your areas:
http://www.freeview.co.uk/whatson/index.htmlConfigure Tv Card In MythTv SetupCode:
1. # mythtv-setup (from an X-Term window)
2. Select ‘General’ settings and make the following changes:Set ‘TV Mode’ to ‘PAL’
Set ‘VBI Format’ to ‘PAL Teletext’
Set ‘Channel Frequency Table’ to ‘europe-west’
3. Select ‘Capture Cards’. Select ‘New Capture Card’”
Go up to ‘Card Type’ and change it to ‘Digital Video Broadcasting (DVB).
You should now see that the Nova-T is detected. If you see the ‘device busy’ error on this screen you must kill the backend in order to scan for channels. To solve, simply repeat steps 1 & 2 at the beginning of the guide. Note that you will lose access to the Nova-T card every time you reboot.
4. Select ‘Video Sources’Select ‘New Video Source’
For ‘Video Source Name’ type ‘RadioTimesUK’
For ‘XMLTV Listings Grabber’ select ‘UK-Alternative’.
When you click ‘Finish’ it will now appear to get stuck at 50%. This is because the UK XMLTV Grabber doesn’t run in the frontend yet. Consequently you need to press ‘Alt+Tab’ to see the terminal window. Don’t waste your time adding the channels manually here, however you do need to add at least one channel so just type ‘FIVE’, press ENTER and then press ‘.’ to finish. This will create the following file:
/home/mythtv/.mythtv/RadioTimesUK.xmltv
5. Select ‘Input Connections’Select ‘DVB’
For the ‘Video Source’ select RadioTimesUK
6. Select ‘Channel Editor’Select ‘Advanced'
Select ‘Add Transport’
Transport SettingsYou now need to add and configure 6 different transports. You will need to refer back to the freeviewchannels.conf file. You may find it easiest to keep switching to and from a console (CTRL ALT F1).
Code:
# nano /usr/local/dvb/dvb-t/tv_grab_uk_rt/freeviewchannels.conf
I
think that these values are always the same (for UK).
Bandwidth: 8MHz
Inversion: AUTO
Trans: 2K
Hierachy: none
Guard Interval: 1_32
These values vary for each transport. Make sure you get these right or you might get 'choppy' viewing on certain channels. The first FEC value in the .conf file is the LP and the second FEC value is the HP.
Frequency: e.g. 7512666015
Constellation: e.g. QAM_16
LP: e.g. FEC_2_3
HP: e.g. FEC 1_2
7. Select ‘Scan for Channels’
8. Change the ‘Scan Type’ to ‘Scan Existing Transports’ and then select ‘Next’
You should hopefully see it scanning for channels and adding them to the list.
Setup the XMLTV fileThe XMLTV file below is used by ‘mythfilldatabase’ in order to obtain program information from the internet.
/home/mythtv/.mythtv/RadioTimesUK.xmltv
One way or another this file needs to look something like this:
channel idealworld.tv
channel itn.co.uk
channel itv2.itv.co.uk
channel itv3.itv.co.uk
… etc
The easiest way would be to ‘copy and paste’ the full channel list from the sample XMLTV file at the end of this guide. You will of course need to edit it for your channel preferences. Personally I would do this from a Windows PC using ‘Putty’. Alternatively if you want to edit it manually:
Code:
1. # cd /
2. # find | grep tv_grab
The output should show you where to find your XMLTV files, mine was in /usr/share.
Code:
3. # cd /usr/share/xmltv/tv_grab_uk_RadioTimesUK
4. # tv_grab_uk_rt --list-channels > channels.list
5. # uk_grab_tv_rt --list-channels | grep -i 'channel id' >RadioTimesUK.xmltv
6. # cp RadioTimesUK.xmltv /home/mythtv/.mythtv/
7. # nano /home/mythtv/.mythtv/RadioTimesUK.xmltv
8. Have fun editing the file to reflect which channels you want.
Synchronise With Channel EditorYou will have gathered that, for example, the XMLTV ID name for ITV2 is ‘itv2.itv.co.uk’. The ID’s you have set in the XMLTV file need to correspond with those in the ‘Channel Editor’ in Mythtv Setup:
Code:
1. # mythtv-setup
2. Select ‘Channel Editor’
3. Select each channel individually and make sure that the appropriate XMLTV ID name is set. If not, have fun entering them all manually.
Finally…
Code:
# mythfilldatabase
This should take a few minutes to download a weeks worth of tv guide listings.
Code:
# reboot
Select ‘Watch Tv’ and hope for the best.
Stage 3 - Setup Remote ControlYou may have noticed that Hauppage remote works but with limited functionality (i.e. the BACK button amongst others doesn't work!). To solve:
Option 1 - Fresh Install of LircCode:
# cd /usr/src
# wget http://kent.dl.sourceforge.net/sourceforge/lirc/lirc-0.7.2.tar.bz2
# tar xpvjf lirc-0.7.2.tar.bz2
# cd lirc-0.7.2
# ./configure
Select Driver configuration, Other, Linux input layer (/dev/input/eventX)
Save & Exit
Code:
# ./configure.sh
# make
# make install
Now to identify which event number your IR port on the Tv card is assigned to:
Code:
# cat /dev/input/event0
Press the back key on the remote and see if it displays any gibberish. If not, try again changing it to event1, event 2 or event3
If none of these work then you might have too many input devices plugged in. If so, you need to create an event 4,5, or 6.
Code:
# nano /etc/init.d/bootmisc.sh
To get it to work automatically on bootup add this to the bottom of the file, then save & exit. You need to change X to the event number that worked for you in the previous step.
Code:
/usr/local/sbin/lircd --device="/dev/input/eventX" /etc/lirc/lircd.conf
Finally you need to replace the following files:
Code:
/home/mythtv/.mythtv/lircrc
/etc/lirc/lircd.conf
You will find samples to replace them with on this guide:
http://mysettopbox.tv/phpBB2/viewtopic.php?t=6089 Your Remote Control should now be setup. One final tip: I recommend putting a mirror behind your mythbox to reflect the signal off. This means you can hide the clumsy IR sensor behind the mythbox where it will be out of sight.
Option 2 - Reconfigure LircHaven't tried this method myself but it came from:
http://mysettopbox.tv/phpBB2/viewtopic.php?t=6089 # lirc-reconfig.sh
This lists the Linux event device to change. You also need to change the device in hardware.conf (if I translated Nermander correctly).
Stage 4 - Optional: Grab tv guide from the air rather than internetI haven't set this up myself yet but someone has added to my guide at this site:
http://www.flexion.org/site/index.php?g ... Page&id=42Sample XMLTV FileI have jumbled this around to put the channels into some kind of order in light of my personal viewing preferences and available channels.
channel north-west.bbc1.bbc.co.uk
channel north-west.bbc2.bbc.co.uk
channel granadatv.co.uk
channel channel4.com
channel channel5.co.uk
channel choice.bbc.co.uk
channel knowledge.bbc.co.uk
channel itv2.itv.co.uk
channel itv3.itv.co.uk
channel e4.channel4.com
channel plus-1.e4.channel4.com
channel sky-news.sky.com
channel itn.co.uk
channel news-24.bbc.co.uk
channel news.sports.sky.com
channel ukhistory.tv
channel the-hits.emap.com
channel tmf.nl
channel ftn.tv
channel men.granadatv.co.uk
channel cbbc.bbc.co.uk
channel cbeebies.bbc.co.uk
channel abc1.disney.com
channel ukbrightideas.tv
channel utvlive.com
channel bid-up.tv
channel price-drop.tv
channel qvcuk.com
channel communitychannel.org
channel idealworld.tv
channel travel.sky.co.uk
channel tvtravelshop.co.uk
channel C1942.radiotimes.com
channel C1951.radiotimes.com
channel C1956.radiotimes.com
DiagnosticsI get a Black Screen when I select ‘Watch TV’ ???Check the ‘starting channel’ set in Channel Sources. If this is set to a bad channel then this can cause it to crash.
Check the settings you entered for the ‘transports’. If one has an incorrect frequency this may cause it to crash.
Check that you have permission to access the tv tuner. If necessary change the permissions by doing:
# cd /dev/dvb/adapter0
# chmod 777 XXXX (where XXXX is drv0, net0, frontend0 etc)
I get 'choppy' viewing performanceCheck the settings for each transport. If you left settings on AUTO rather than the values in the .conf file this can cause choppy viewing.
Make sure you are using a decent aerial, digital tv requires a strong signal.... mutilated coat hangers will not suffice.
Error messages Code:
nano /var/log/mythtv/mythbackend.log
Useful Links
http://www.comp.lancs.ac.uk/computing/u ... /ukdvb.php
http://www.linuxtv.org/
http://mysettopbox.tv/phpBB2/viewtopic.php?t=5827&
http://www.ethics-gradient.net/myth/mythdvb.html