Author Topic: 0810 and Hauppauge HVR-4000  (Read 13556 times)

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: 0810 and Hauppauge HVR-4000
« Reply #15 on: November 26, 2009, 10:20:40 pm »
Chris, thanks for replying.
Agree with you, BUT -
Rebooting loses the symbolic links.. :o

How come?

Erwin

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: 0810 and Hauppauge HVR-4000
« Reply #16 on: November 26, 2009, 10:24:31 pm »
Sounds like a udev rules issue.  Unfortunately that's all the insight I can offer because I've never had the need to investigate udev rules myself.

My understanding is that udev populates the links automatically based on detected hardware and may simply not be aware of what to do with your card.  I believe you may simply have to tell udev what to do with your card...  But again I've never investigated this further.  Something to investigate.

J.

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: 0810 and Hauppauge HVR-4000
« Reply #17 on: November 26, 2009, 10:32:08 pm »
To Andrew:

Code: [Select]
We've used the HVR-4000 for DVB-T and DVB-S with both tuners working concurrently but not explored the multiple frontend aspects at all to allow for intermixing of DVB-S & DVB-T etc.

Andrew

Andrew, can you confirm that
a) you had the DVB-T part up and running?
b) with concurrently you mean that you had 2 'frontends' simultaneously viewing or recording?
c) you're doing this with 0810 and myth v0.21?
d) did you YES or NO have symbolic links in place to create /dev/dvb/adapter1 (/dev/dvb/adapter0 is present standardà

I'm digging on the mythtv-users list at the moment, and the more I come to realize that dvb-s or dvb-s2 for that matter is reported working, but I'm still waiting to see dvb-t confirmed yet.
Apart from that, I seem to recollect that simultaneous use is not possible. I'm not sure if we may mix up with multiplexing here - maybe you can clear this up.

Thanks for your assistance  ;)

Erwin

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: 0810 and Hauppauge HVR-4000
« Reply #18 on: November 26, 2009, 10:36:36 pm »
J, thanks for hoping in;

I must admit I'm not familiar at all with udev - will have to look into this.

Thanks!

Erwin

fastie81

  • Veteran
  • ***
  • Posts: 136
  • SSDD
    • View Profile
Re: 0810 and Hauppauge HVR-4000
« Reply #19 on: November 27, 2009, 12:23:27 am »
Chris, thanks for replying.
Agree with you, BUT -
Rebooting loses the symbolic links.. :o

How come?

Erwin

Hi Erwin

You losing the symbol links cause your dev directory gets created every time you boot your system..
if you follow this steps from point 4 your will then create a script that will recreate you symbol links every time your system boot.
Quote
1. "ls /dev/dvb" this should show you one adapter0 if not then there is something wrong(Not cover here)
    2. now we need to create another adapter. so do the following in /dev/dvb "sudo mkdir adapter1" then we need to create simbol links.
        " mkdir /dev/dvb/adapter1
          " ln /dev/dvb/adapter0/demux1 /dev/dvb/adapter1/demux0
          " ln /dev/dvb/adapter0/frontend1 /dev/dvb/adapter1/frontend0
          " ln /dev/dvb/adapter0/net1 /dev/dvb/adapter1/net0
          " ln /dev/dvb/adapter0/dvr1 /dev/dvb/adapter1/dvr0
    3.  After this you should be able to select the device in Mythtv
    4. Now to make this perminant we need to create a file in /etc/init.d/ call it what you want.
    5. then copy point 2 in to it and cave it..
    6. Now we need to make it a executable with "chmod +x {FileName}"
    7. Now w need to tell rc to run the script when booting, use this "update-rc.d {filename} defaults"

After you have created the script it will recreate it all after boot and my with keep using the same device when you  set it up..
Hope this helps
C


Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: 0810 and Hauppauge HVR-4000
« Reply #20 on: November 27, 2009, 12:26:29 am »
Chris,

Thanks - will test and report back.
That should at least solve a part and allow me to continue...

Thx,

Erwin

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Update - 0810 and Hauppauge HVR-4000 - IMPROVEMENT - Not quite there yet
« Reply #21 on: November 27, 2009, 05:15:17 pm »
Ok Guys,

Report:
- completely new install 0810 from internet -> this at least seems to have improved certain things, as my LMCE menu is now complete (I think) whereas previously quite a lot was missing (audio, tv etc)
- installed 4vl-dvb drivers, dmesg reports loading of firmware ok
- had a look at udev, but could not work out how udevadm should report etc, so created script to create symlinks to adapter1. Tested and working THANK YOU GUYS!!
- now further to mythtv-setup
a) cardsetup
    I can choose adapter 1, but myth says it cannot open the device - permissions?
    Compared permissions on both adapter0 and adapter1 - they're the same.
b) mythtv-setup complains about backend still running EVEN THOUGH I manually stopped it
c)
- I try to do a scan but keep getting:
Code: [Select]
linuxmce@dcerouter:/home$ sudo scan -f 1 -d 1 /usr/share/doc/dvb-utils/examples/scan/dvb-t/be-Schoten
scanning /usr/share/doc/dvb-utils/examples/scan/dvb-t/be-Schoten
using '/dev/dvb/adapter0/frontend1' and '/dev/dvb/adapter0/demux1'
main:2247: FATAL: failed to open '/dev/dvb/adapter0/frontend1': 16 Device or resource busy
linuxmce@dcerouter:/home$
- When I do this:
Code: [Select]
linuxmce@dcerouter:/home$ sudo /etc/init.d/mythtv-backend stop
 * Stopping MythTV server: mythbackend                                                                         [ OK ]
linuxmce@dcerouter:/home$ sudo lsof /dev/dvb/adapter1/frontend0
COMMAND    PID   USER   FD   TYPE DEVICE SIZE  NODE NAME
mythbacke 8637 mythtv    0u   CHR  212,4      14066 /dev/dvb/adapter1/frontend0
linuxmce@dcerouter:/home$
It reports a mythbacke proces is running...

How can I find where this process is coming from??

Thanks a lot for sticking with me!!

Erwin

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: 0810 and Hauppauge HVR-4000
« Reply #22 on: November 27, 2009, 08:11:49 pm »
LMCE has a script which automaticlly restarts mythbackend when it dies, except when mythtv-setup is running.  The script is:

/usr/pluto/bin/Restart_MythBackend.sh

You will have to kill this script before you stop mythbackend and do your scan or mythbackend will automatically restart and lock your dvb adaptors again.

J.

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: 0810 and Hauppauge HVR-4000
« Reply #23 on: November 27, 2009, 11:57:18 pm »
J, thanks for your input.
At least that helps getting forward.
Problem:
The HVR-4000 is reported like this:
Code: [Select]
*** dmesg
[   13.455853] DVB: registering adapter 0 frontend 0 (Conexant CX24116/CX24118)...                                   
[   13.456195] DVB: registering adapter 0 frontend 1 (Conexant CX22702 DVB-T)... 

In mythtv-setup -> Capture Card Setup -> I can select DVB Device Number 1 allright
BUT it reports it cannot find or read the card whereas it should list CX22702

mysql shows us this:
Code: [Select]
     mysql> SELECt cardid, videodevice, cardtype, defaultinput, hostname FROM capturecard;
+--------+-------------+----------+--------------+-----------+
| cardid | videodevice | cardtype | defaultinput | hostname  |
+--------+-------------+----------+--------------+-----------+
|      2 | 1           | DVB      | DVBInput     | dcerouter |
+--------+-------------+----------+--------------+-----------+
1 row in set (0.00 sec)

I believe the value under videodevice should be /dev/dvb/adapter1/frontend0
But how do I get this in place?

Ideas?

Thank you!

Erwin

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Update Hauppauge HVR-4000 working - 0904
« Reply #24 on: November 30, 2009, 03:39:53 pm »
Okay - update time :-)
Finally after repetitive installs and trials found '1' post on MythTVtalk forum confirming 0904 and HVR-4000 running out of the box.
As kind of a last resort I did:
- fresh install of 0904 (Kubuntu)
- installed nvidia 185.19 drivers (no vdpau, yet)
- checked dmesg -> HVR-4000 properly registered
- put in place my (our) dvb-adapter1  init script to create /dev/dvb/adapter1
- tested with Kaffeine -> all visible and running (dvb-t & sound)
- installed stock mythtv
- and YES - MYTHTV was able to scan for channels!!

Some details:
Code: [Select]
*** uname -a
    linuxmce@dcerouter:/dev/dvb$ uname -a
    Linux dcerouter 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux

*** myth --version
    linuxmce@dcerouter:~$ apt-cache policy mythtv-backend
    mythtv-backend:
    Installed: 0.21.0+fixes19961-0ubuntu8
    Candidate: 0.21.0+fixes19961-0ubuntu8
    Version table:
    *** 0.21.0+fixes19961-0ubuntu8 0
    500 http://be.archive.ubuntu.com jaunty/multiverse Packages
    100 /var/lib/dpkg/status

*** eeprom version (source dmesg)
    [    9.895101] tveeprom 0-0050: Hauppauge model 69009, rev B2D3, serial# 6246045                                                                   
    [    9.895170] tveeprom 0-0050: MAC address is 00-0D-FE-5F-4E-9D                                                                                   
    [    9.895233] tveeprom 0-0050: tuner model is Philips FMD1216MEX (idx 133, type 78)                                                               
    [    9.895312] tveeprom 0-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xf4)                                 
    [    9.895396] tveeprom 0-0050: audio processor is CX882 (idx 33)                                                                                   
    [    9.897550] tveeprom 0-0050: decoder processor is CX882 (idx 25)                                                                                 
    [    9.897613] tveeprom 0-0050: has radio, has IR receiver, has no IR transmitter   

Thanks for all your input!!

Erwin