Hauppauge Nova-T USB2 DVB-T Stick

http://wiki.ubuntuusers.de/Hauppauge_WinTV_Nova-T_Stick

First we want to find out something about the hardware.
Using dmesg we find:

dib0700: loaded with support for 8 different device-types
dvb-usb: found a 'Hauppauge Nova-T Stick' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (Hauppauge Nova-T Stick)
DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)...
DiB0070: successfully identified
input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-3/input/input5
dvb-usb: schedule remote query interval to 50 msecs.
dvb-usb: Hauppauge Nova-T Stick successfully initialized and connected.
usbcore: registered new interface driver dvb_usb_dib0700

And lsusb gives us:

Bus 001 Device 006: ID 2040:7070 Hauppauge

Get the IR Remote Control to work

http://wiki.ubuntuusers.de/Hauppauge_WinTV_Nova-T_Stick#Fernbedienung

sudo aptitude purge lirc inputlirc liblircclient0
sudo aptitude install lirc inputlirc liblircclient0

now run irw and look what key presses (from left to right and top to down) produce:

philipp@lion:~$ irw
9e 0 KEY_BACK event5
67 0 KEY_UP event5
179 0 KEY_TV event5
162 0 KEY_GOTO event5
74 0 KEY_POWER event5
69 0 KEY_LEFT event5
160 0 KEY_OK event5
6a 0 KEY_RIGHT event5
195 0 KEY_LAST event5
197 0 KEY_NEXT event5
a7 0 KEY_RECORD event5
6c 0 KEY_DOWN event5
80 0 KEY_STOP event5
77 0 KEY_PAUSE event5
cf 0 KEY_PLAY event5
2 0 KEY_1 event5
3 0 KEY_2 event5
4 0 KEY_3 event5
a8 0 KEY_REWIND event5
d0 0 KEY_FASTFORWARD event5
5 0 KEY_4 event5
6 0 KEY_5 event5
7 0 KEY_6 event5
192 0 KEY_CHANNELUP event5
73 0 KEY_VOLUMEUP event5
8 0 KEY_7 event5
9 0 KEY_8 event5
a 0 KEY_9 event5
193 0 KEY_CHANNELDOWN event5
72 0 KEY_VOLUMEDOWN event5
184 0 KEY_TEXT event5
b 0 KEY_0 event5
8b 0 KEY_MENU event5
16b 0 KEY_CHANNEL event5
71 0 KEY_MIN_INTERESTING event5

now to get the number block working change /etc/default/inputlirc

sudo gedit /etc/default/inputlirc

to OPTIONS="-m 0" and restart inputlirc:

sudo /etc/init.d/inputlirc restart

now set up .lircrc using the help from http://wiki.ubuntuusers.de/Lirc/Tasten_mit_Funktionen_belegen

gedit ~/.lircrc

change it to:

# Starten von Kaffeine
begin
        prog = irexec
        button = KEY_TV
        config =  kaffeine &
end


## KAFFEINE ##

begin
        prog = irexec
        button = KEY_PLAY
        config = dcop kaffeine KaffeineIface playDvb
end

begin
        prog = irexec
        button = KEY_PAUSE
        config = dcop kaffeine KaffeineIface pause
end

begin
        prog = irexec
        button = KEY_TEXT
        config = dcop kaffeine KaffeineIface dvbOSD
end

begin
        prog = irexec
        button = KEY_STOP        
        config = dcop kaffeine KaffeineIface stop
end

begin
        prog = irexec
        button = KEY_FASTFORWARD        
        config = dcop kaffeine KaffeineIface posPlus
end

begin
        prog = irexec
        button = KEY_REWIND
        config = dcop kaffeine KaffeineIface posMinus
end

begin
        prog = irexec
        button = KEY_CHANNELUP        
        config = dcop kaffeine KaffeineIface next
end

begin
        prog = irexec
        button = KEY_CHANNELDOWN        
        config = dcop kaffeine KaffeineIface previous
end

begin
        prog = irexec
        button = KEY_VOLUMEUP        
        config = dcop kaffeine KaffeineIface volUp
        repeat = 1
        delay = 6
end

begin
        prog = irexec
        button = KEY_MIN_INTERESTING        
        config = dcop kaffeine KaffeineIface mute
end

begin
        prog = irexec
        button = KEY_VOLUMEDOWN        
        config = dcop kaffeine KaffeineIface volDown
        repeat = 1
        delay = 6
end

begin
        prog = irexec
        button = PIC        
        config = dcop kaffeine KaffeineIface fullscreen
end

begin
        prog = irexec
        button = KEY_UP        
        config = dcop kaffeine KaffeineIface zoomIn
end

begin
        prog = irexec
        button = KEY_DOWN        
        config = dcop kaffeine KaffeineIface zoomOut
end

begin
        prog = irexec
        button = KEY_1        
        config = dcop kaffeine KaffeineIface setNumber 1
end

begin
        prog = irexec
        button = KEY_2        
        config = dcop kaffeine KaffeineIface setNumber 2
end

begin
        prog = irexec
        button = KEY_3        
        config = dcop kaffeine KaffeineIface setNumber 3
end

begin
        prog = irexec
        button = KEY_4        
        config = dcop kaffeine KaffeineIface setNumber 4
end

begin
        prog = irexec
        button = KEY_5        
        config = dcop kaffeine KaffeineIface setNumber 5
end

begin
        prog = irexec
        button = KEY_6        
        config = dcop kaffeine KaffeineIface setNumber 6
end

begin
        prog = irexec
        button = KEY_7
        config = dcop kaffeine KaffeineIface setNumber 7
end

begin
        prog = irexec
        button = KEY_8        
        config = dcop kaffeine KaffeineIface setNumber 8
end

begin
        prog = irexec
        button = KEY_9        
        config = dcop kaffeine KaffeineIface setNumber 9
end

begin
        prog = irexec
        button = KEY_0        
        config = dcop kaffeine KaffeineIface setNumber 0
end

# Beenden von Kaffeine
begin
        prog = irexec
        button = KEY_POWER        
        config = dcop kaffeine KaffeineIface quit
        mode = normal
end

and run irexec to be able to use the keys!

Comments