LinuxMCE Forums

General => Installation issues => Topic started by: Lexje on December 10, 2009, 11:16:27 am

Title: HVR-4000 - SOLVED
Post by: Lexje on December 10, 2009, 11:16:27 am
Hi all,

Done some extensive installation testing with this Hauppauge TV card.
My best results are as follows:
- 0810 stock DVD install, all updates installed
- 4vl-dvb with hg clone http://linuxtv.org/hg/v4l-dvb (http://hg clone http://linuxtv.org/hg/v4l-dvb)
- installed Kaffeine

=> Kaffeine will succesfully do channel search and play dvb-t
=> MythTV 0.22 will recognize HVR-4000, will also properly recognize the adapters
Code: [Select]
  [   13.048647] DVB: registering adapter 0 frontend 0 (Conexant CX24116/CX24118)...
   [   13.048939] DVB: registering adapter 0 frontend 1 (Conexant CX22702 DVB-T)...

MythTV is unable to perform a channel scan.


1. Should this be reported into TRAC?
2. Any MythTV guru's that can point me to further Myth command line wizardry to see what's happening?

Erwin
Title: Re: HVR-4000
Post by: maverick0815 on December 11, 2009, 07:54:17 am
just to make sure: when you try to configure mythtv, are you using the orbiter or are you trying from KDE-desktop? I'm asking, because obviously there are some people, who try to configure mythtv from kde-desktop, while actually you should go to Computing in your orbiter and start mythtv setup from there. if your tv-card is loaded properly, then you should have no problems tuning with mythtv, unless another application hijacked the card already
Title: Re: HVR-4000
Post by: Lexje on December 11, 2009, 09:30:11 am
Maverick, thanks for hopping in;
I'm configuring from the computing screen - I've learned that from Phenigma a couple of posts ago :-)

No, I believe the problem lies within MythTV 0.22
As before installing LMCE / Myth 0.22 I have tested the HVR-4000 functionality with Kaffeine. To me this proves that the kernel and the 4vl-dvb drivers work well together. -> channel scanning works, viewing with sound works too.

In previous setups I had problems with myth to be able to see / identify /  open the adapters. This was solved by using the computing way and not directly in KDE.

Erwin
Title: Re: HVR-4000
Post by: phenigma on December 11, 2009, 07:09:59 pm
Looking at the Mythtv wiki it looks like a little work is needed (firmware must be extracted from the windows driver for use in linux):

http://www.mythtv.org/wiki/Hauppauge_HVR-4000

and it also references:

http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-4000

which provides instructions on extracting and using the windows firmware...

It would be great to package this up properly so the card is plug-n-play in LMCE.

J.
Title: Re: HVR-4000
Post by: Lexje on December 11, 2009, 07:56:30 pm
J, thanks for linking there.

Been there done that over 15 times the last 2 weeks :-) First with the liplianin repo then with stock v4l-dvb drivers using mercurial.
Also, and I think important to notice, the HVR-4000 WORKS 100% (dvb-t) SOUND & VISION with Kaffeine (tested before installing LMCE).
So unless someone tells me my reasoning is incorrect, I figure the problem finally lies with Myth, and not in kernel or drivers.

I have never used VDR yet, but will give it a shot one off the next days, perhaps it will work with VDR?

DOES ANYBODY ELSE HERE ON THE FORUM USE THIS HVR-4000 CARD?

P.S. Next week satellite should be delivered, so I hope to test this with HVR-4000 too.

Erwin
Title: Re: HVR-4000 - SOLVED
Post by: Lexje on December 22, 2009, 03:37:31 pm
Today finally solved this issue-
Got the HVR-4000 up and running under LMCE 0810.

What led to the solution?
Searching to get Karmic going with this card, I found this post:http://ubuntuforums.org/showpost.php?p=8217434&postcount=6 (http://ubuntuforums.org/showpost.php?p=8217434&postcount=6)
After checking my firmware with md5sum and comparing to this post, I found this was the problem.
Next I put in place firmware v20.79.0 following the wiki here:http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-4000 (http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-4000)

If there's any questions, don't hesitate, and thanks to everybody for helping out!

Erwin
Title: Re: HVR-4000 - SOLVED
Post by: dlewis on December 22, 2009, 03:40:03 pm
please create a device template to make this PnP.
Title: Re: HVR-4000 - SOLVED
Post by: Lexje on December 22, 2009, 04:01:53 pm
dlewis,

Be glad to;
Can you point me to a howto do this?

Erwin
Title: Re: HVR-4000 - SOLVED
Post by: dlewis on December 22, 2009, 04:10:46 pm
look at the other templates in the main database amongst the DeviceTemplate_* tables. Look here:

http://wiki.linuxmce.org/index.php/Device_Templates
Title: Re: HVR-4000 - SOLVED
Post by: MANDINGO on December 26, 2009, 11:29:47 pm
Please read this post and add to it for the information of your card
http://forum.linuxmce.org/index.php?topic=9354.0

I have almost finished a template for the HVR-4000 but still need info follow the post and add yours

Thanks
Mandingo
Title: Re: HVR-4000 - SOLVED
Post by: Lexje on December 27, 2009, 11:47:27 am
Mandingo,

I will repeat my complete LMCE 0810 install steps for the HVR-4000 once more. Then, if all works as it should, I will post my info. Probably within a couple of days.
One thing to note:
I have been stuck in a dead end for something like a week. I had been experimenting with v4l-dvb repo and s2-liplianin repo.
At a certain point, s2-kiplianin made my system choke upon reboot, (impossible to get it to boot again, even recovery mode) and v4l-dvb did not work either.
So I have crossed this hurdle by using a 'specific' repo of a specific date (hg -rxxxx)
I'm not sure how this nieeds to be packed into a template, but I will forward you the information soon.

Can also post info for the HVR-1110 if you want?

Merry X-mas,

Erwin
Title: Re: HVR-4000 - SOLVED
Post by: Nuwis on December 27, 2009, 08:57:45 pm
Lexje,

i had arrived until i think you were.
Mythtv recognize the HVR-4000 with no problems but when i try to find channels in the adapter 0 frontend 1 (DVB-T) mythtv didn't find any channels.
I followed your explanations about the firmware, and i tryed with the 1.20 and 1.23 also. Kaffeine have no problems to run with both firmwares, but mythtv stucks in the channels search. I got every time that i do a scan the same message, "frequency XX offset 1 --> time out signal"

Any suggestions?

bstrgrds
Title: Re: HVR-4000 - SOLVED
Post by: Lexje on December 28, 2009, 01:11:07 am
Nuwis,

You can check like this:
- To make sure reboot your machine,
- open up a terminal, and do tail -f /var/log/messages
- fire up myth and do a channel scan
-> If you're in the same position, you will see a message saying that it can't load the firmware

This is what put my attention back to the Karmic link. - If so, something's wrong with your firmware.

Be sure to have a proper look at the link to the Karmic and HVR-4000 thread.
Do the md5sum check with your firmware sitting at /lib/firmware and make sure the md5sum is the same as on the Ubuntu forum. Mine was different - so I redownloaded and double checked.

I'm not an expert on this, but I'm fairly sure that Kaffeine does not need the firmware - don't ask me why. (I'd sure like to understand the difference though!!)
For MythTV there are 2 criteria that need to be fullfilled:
- v4l-dvb drivers need to be loaded (dmesg will list your card as HVR-4000)
- the firmware must load

Also for scanning I found that depending on what country you choose, Myth skips or limits channels, e.g. I'm in Belgium and scanning using France as a country works, but using Austria fails.
I have also gone back to somewhere 25/11/09 in the v4l-dvb repo. If the above does not help, let me know, I'll dig up my emacs install log and post the exact repo to clone.
Hope this helps!

Erwin
Title: Re: HVR-4000 - SOLVED
Post by: MANDINGO on December 28, 2009, 08:09:37 am
If you post the info in the other thread this card will be plug and play guys

So please post

Thanks
Mandingo
Title: Re: HVR-4000 - SOLVED
Post by: Nuwis on December 30, 2009, 11:18:14 am
Lexje,
The firmware is upload OK at least it says tail, during the channel scan i was doing when tail was running.
Dec 30 11:08:57 dcerouter kernel: [ 1249.644160] cx24116_firmware_ondemand: Waiting for firmware upload (dvb-fe-cx24116.fw)...
Dec 30 11:08:57 dcerouter kernel: [ 1249.644167] firmware: requesting dvb-fe-cx24116.fw
Dec 30 11:08:57 dcerouter kernel: [ 1249.647414] cx24116_firmware_ondemand: Waiting for firmware upload(2)...
Dec 30 11:09:02 dcerouter kernel: [ 1254.672701] cx24116_load_firmware: FW version 1.23.86.1
Dec 30 11:09:02 dcerouter kernel: [ 1254.672749] cx24116_firmware_ondemand: Firmware upload complete
Dec 30 11:09:23 dcerouter kernel: [ 1275.831595] kjournald starting.  Commit interval 5 seconds
Dec 30 11:09:23 dcerouter kernel: [ 1275.832509] EXT3 FS on sdb1, internal journal
Dec 30 11:09:23 dcerouter kernel: [ 1275.832518] EXT3-fs: mounted filesystem with ordered data mode.

In this case i am trying with the firmware 1.23 that runs on kaffeine, but also i had tryed with the 1.20 firmware instead with the same result.
I  didn'yt tryed to do a scan with the fronted 0 (DVB-S) just with the frontend 1 (DVB-T), cuase i haven't satellit antenna for the moment, but i get another error when the scan window appears in this frontend "Error parsing parameters"

Mandingo,
When i finish to install the card and runs i will help you with the template, but for the momment in my case it doesn't run.

regards
Title: Re: HVR-4000 - SOLVED
Post by: Lexje on December 30, 2009, 03:48:39 pm
Ola Frank,

Are you aware within Myht 0.22 - when in mythtv-setup - while doing capture card setup:
- You should have several Card types from which to choose
-> You should pick Card type: DVB DTV capture card (v3.x)
-> You should be able to change the DVB Device number according to your adapter0/frontend0 or adapter0/frontend1
- The Frontend IDentification should change accordingly - one for SAT the other for DVB-T, the ID should read something like Conexant CX22702 DVB-T Subtype: DVB-T

Can you confirm this?

Have a look at the attached screenshot - ATTENTION - this is a capture of Myth 0.21 (which is not multi frontend capable!)

Hope this helps!

Erwin
Title: Re: HVR-4000 - SOLVED
Post by: Nuwis on December 30, 2009, 05:23:57 pm
Erwin thanks for your patient,

Yes it is OK, i have it with both fornteds 0:0 for the DVB-S and 0:1 for the DVB-T, I had configure both fronteds in the setup-->capture cards, but only i use 0:1 for the DVB-T.
Mythtv is the last version 0.22 updated from lmce repos this week, also what i had configured in the setup of mythtv is the references regarding the country from the US to Spain, all the rest are by default. There are something to set more in the setup?

rgrds
Title: Re: HVR-4000 - SOLVED
Post by: Lexje on December 30, 2009, 08:04:51 pm
Frank,

Off course I'm not sure about this, but I can tell you I have been fighting with this for something like a month or so.
I did countless installs, all kinds of Ubuntu / Kubuntu various versions, various kernels etc.
I have plenty of hd's, and also since 0810 beta you can now have more than one installation next to another. This makes it easier to compare stuff.
If you install v4l-dvb using hg clone http://linuxtv.org/hg/v4l-dvb try using hg clone -r 13486 http://linuxtv.org/hg/v4l-dvb instead.
This will install the exact same repo / driverset I am using.
I have found that using a more recent repo version DID NOT WORK. Don't ask me why, because I don't know.
Also, I would advise to use the same version of firmware I'm using, as this is known working.

I have been using the 'newest' one available in the beginning, and it didn't work out. Again, I don't know why...

Another point of information:
I haven't found any information on this, but I THINK that Kaffeine does not use firmware, or, it may use it differently.
Why I say this? I have read that in some cases it may be sufficient that 'the firmware' has been loaded once (e.g. using M$ Windows) so this may be the case for Kaffeine, I'm not sure.

As for the country settings:
Are you aware that you can use various tools to scan for channels? Google around if you don't know yet.
For Kaffeine you can find what I call 'presets' with frequency information in ~/.kde/share/apps/kaffeine/dvb-t/
There you will find from es-Albacete to es-Zaragoza. Don't know what region you're in, but pick the one of your location.
When you install v4l-dvb, it installs similar 'presets' but to a different location - use slocate to find if needed.
Indeed it may make a difference, in my case e.g. there is no setting for Belgium, so scanning default for Australia the range of channels scanned is different according to location.

For comparison's sake I installed Ubuntu 0904. Then sudo apt-get install mythtv and everything works out of the box!
(different kernel - and myth 0.21) so all I had to do was make the symbolic links to make myth 0.21 see the second frontend.

I guess this is about all I can really tell...
Hope this helps....

Erwin

PS You can also compare your lspci -v to mine attached in Mandingo's post. (txt attachment)
Title: Re: HVR-4000 - SOLVED
Post by: Schmich on April 16, 2011, 08:39:48 pm
My 4000 doesn't lock on to DVBT either. I am in the same position as Nuwis. My log after doing a "tail" is pretty much the same as his - same firmware is uploaded.

I'm running LMCE 8.10 (snapshot 23887). My HVR-1200 locks on to channels and I'm using the same config and even same cable for the 4000. Any suggestions?