MythTV

MythTV, as implemented with Mythbuntu, is my Media centre of choice.

Getting the Hauppauge WinTV Nova-T 500 working properly with Mythbuntu 9.04 64-bit

This is a list of what I did to get my Hauppauge winTV Nova-T PCI 500 dual tuner card working with Mythbuntu 9.04.
I will add any other tips that I come across as time goes on.

I am hoping that will prove useful to others in the same predicament!
You can cut and paste the commands and text files


Edit the firmware

Version1.20 of the nova-t 500 firmware does not work with 64 bit,not sure if this affects 32-bit as well (I don’t run 32-bit anymore)
this stops the remote working, and tuning is hit and miss.

NOTE: I have been told that there is a newer version of the 500 which does work with this firmware

version1.10 however does work, and is in the same folder /lib/firmware
delete /lib/firmware/dvb-usb-dib0700-1.20.fw and rename /lib/firmware/dvb-usb-dib0700-1.10.fw to /lib/firmware/dvb-usb-dib0700-1.20.fw
and all should work as expected.

Note that this firmware is only loaded at a cold boot, which means switching the PC off and back on again


Enabling the LNAs (Low Noise Amplifiers) without this, reception will be very poor

open a terminal:
(open applications menu, select accessories , then terminal)

Type:
sudo nano /etc/modprobe.d/options
This opens the text editor called nano, and opens the /etc/modprobe.d/options file for editing
Type:

#enable LNA
options dvb-usb-dib0700 force_lna_activation=1
#disable 2nd tuner suspend
options usbcore autosuspend=-1

Press CTRL-O to save it, hit enter, then CTRL-X to exit.
Note: the file is not there (although you can create it and it will work). Apparently will not be used in the future, unless it ends in .conf
So it should be called /etc/modprobe.d/options.conf.


Edit lirc setup to get the remote working.

First change is to /etc/udev/rules.d/10-local.rules, in order to make sure that
the device always has the same name.

create: /etc/udev/rules.d/10-local.rules

sudo nano /etc/udev/rules.d/10-local.rules

Type the following line:

# Create /dev/input/irremote symlink for Nova-T 500
KERNEL=="event*", ATTRS{name}=="IR-receiver inside an USB DVB receiver", SYMLINK+="input/irremote"

Press CTRL-O to save it, hit enter, then CTRL-X to exit.


My /etc/lirc/hardware.conf,


# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Hauppauge Nova-T 500"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="/dev/input/irremote
REMOTE_LIRCD_CONF="hauppauge/lircd.conf.hauppauge_novat500"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

My /etc/lirc/lircd.conf


#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the Hauppauge Nova-T 500 remote:
include /usr/share/lirc/remotes/hauppauge/lircd.conf.hauppauge_novat500

My /home/(your username)/.lirc/mythtv file:


# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox Edited by Wyliecoyoteuk
# Created for use with Mythbuntu
begin
    remote = NOVA-T
    prog = mythtv
    button = 7
    config = 7
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = ArrowRight
    config = Right
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Mute
    config = |
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Skipback
    config = Z
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 1
    config = 1
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = ArrowDown
    config = Down
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 0
    config = 0
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Pause
    config = P
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Menu
    config = M
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 6
    config = 6
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 2
    config = 2
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = ChannelDown
    config = Down
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = BackExit
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = ChannelUp
    config = Up
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Rewind
    config = <
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = FwdWind
    config = >
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Play
    config = P
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = volumeDown
    config = [
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Stop
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = VolumeUp
    config = ]
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 5
    config = 5
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 4
    config = 4
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = OK
    config = Return
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = ArrowUp
    config = Up
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Record
    config = R
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 9
    config = 9
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 3
    config = 3
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = 8
    config = 8
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = Guide
    config = S
    repeat = 0
    delay = 0
end

begin
    remote = NOVA-T
    prog = mythtv
    button = ArrowLeft
    config = Left
    repeat = 0
    delay = 0
end

#   TV
##   Go to Watch TV
begin
prog = mythtv
button = TV
config = ALT+T
end

#   Videos
##   Go to MythVideo
begin
prog = mythtv
button = Videos
config = ALT+V
end

#   Music
##   Go to MythMusic
begin
prog = mythtv
button = Music
config = ALT+M
end

#   Pictures
##   Go to MythGallery
begin
prog = mythtv
button = Pictures
config = ALT+P
end

My /usr/share/lirc/remotes/hauppauge/lircd.conf.hauppauge_novat500


# Please make this file available to others
# by sending it to
#
# this config file was automatically generated
# using lirc-0.8.2(dev/input) on Sun Apr 13 12:07:19 2008
#
# contributed by WylieCoyoteuk (Leo Maxwell)
#
# brand:                       HAUPPAGE WINTV NOVA-T PCI500
# model no. of remote control: Hauppage Nova-T 500 snowboard shape silver over black
# devices being controlled by this remote: Hauppage WinTV Nova-TPCI 500
# note- some different commands to WinTV Nova-T PCI 100
#

begin remote

  name  NOVA-T
  bits           16
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   16
  pre_data       0x8001
  gap          135994
  toggle_bit_mask 0x80010074

      begin codes
          Power                    0x0074
          Go                       0x0162
          TV                       0x0179
	  Radio			   0x0181
          Videos                   0x0189
          Music                    0x0188
          Pictures                 0x00E2
          Guide                    0x016D
          ArrowUp                  0x0067
          ArrowLeft                0x0069
          ArrowRight               0x006A
          OK                       0x0160
          ArrowDown                0x006C
          BackExit                 0x009E
          Menu                     0x008B
          VolumeUp                 0x0073
          volumeDown               0x0072
          ChannelUp                0x0192
          ChannelDown              0x0193
          PrevCh                   0x016B
          Mute                     0x0071
          Record                   0x00A7
          Stop                     0x0080
          Play                     0x00CF
          Rewind                   0x00A8
          FwdWind                  0x00D0
          Skipback                 0x0195
          Pause                    0x0077
          Skipfwd                  0x0197
          1                        0x0002
          2                        0x0003
          3                        0x0004
          4                        0x0005
          5                        0x0006
          6                        0x0007
          7                        0x0008
          8                        0x0009
          9                        0x000A
          0                        0x000B
          *                        0x0037
          #                        0x0029
          Red                      0x018E
          Blue                     0x0191
          Green                    0x018F
          Yellow                   0x0190
      end codes

end remote

To get all of the Jump points (“TV”, “Music”, etc) working, you will need to edit the keys in mythtv frontend setup.
Using the remote to register keypresses is the easiest option

Another gotcha is that Mplayer is set as the default viewer for video files, launching an .avi file loses you control.
I only found this out recently, as I don’t watch imported video files often.

I changed the default player to “Internal”- now it works fine.


Good Luck!, and thankyou to all the forum posters that helped me do it! – Wyliecoyoteuk

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s