'''Attention Mythbuntu 9.04 users:''' This card should actually work with this version of Mythbuntu out of the box. However, the installed firmware seems to be buggy so it is necessary to install the Firmware v1.20.79.0 following the steps above.

===Drivers===

===Drivers===

Line 148:

Line 198:

It supports DVB-T, DVB-S/S2, analogue TV, A/V capture and FM radio. If you have

It supports DVB-T, DVB-S/S2, analogue TV, A/V capture and FM radio. If you have

the kernel 2.6.28 (or later) you do not need to install a driver yourself.

the kernel 2.6.28 (or later) you do not need to install a driver yourself.

For developers, or those who need to use a kernel earlier than 2.6.28, a development

For developers, or those who need to use a kernel earlier than 2.6.28, a development

Line 153:

Line 205:

LinuxTV project (the ususal route to merging improvements into the kernel).

LinuxTV project (the ususal route to merging improvements into the kernel).

−

hg clone http://linuxtv.org/hg/v4l-dvb/

+

hg clone http://hg.kewl.org/pub/v4l-dvb-20100517/

−

cd v4l-dvb

+

cd v4l-dvb-20100517

make

make

make install

make install

reboot

reboot

−

−

There is also a development repository at http://hg.kewl.org/v4l-dvb/.

Multiple frontends are supported: DVB-S/S2 and DVB-T appear as /dev/dvb/adapterN/frontend0 and /dev/dvb/adapterN/frontend1 respectively.

Multiple frontends are supported: DVB-S/S2 and DVB-T appear as /dev/dvb/adapterN/frontend0 and /dev/dvb/adapterN/frontend1 respectively.

Line 170:

Line 220:

compatible with current applications. DVB-S2 is accessed through API v5.0, also known as [[S2API]], which was released in kernel 2.6.28.

compatible with current applications. DVB-S2 is accessed through API v5.0, also known as [[S2API]], which was released in kernel 2.6.28.

−

Command-line scanning for channels can be done with '''scan-s2'''. Tuning DVB-S and DVB-S2 channels can be

+

Command-line scanning for channels can be done with [[scan-s2]]. Tuning DVB-S and DVB-S2 channels can be

−

done with '''szap-s2''' :

+

done with [[szap-s2]] :

hg clone http://mercurial.intuxication.org/hg/scan-s2

hg clone http://mercurial.intuxication.org/hg/scan-s2

hg clone http://mercurial.intuxication.org/hg/szap-s2

hg clone http://mercurial.intuxication.org/hg/szap-s2

Line 178:

Line 228:

you change the channel. DiSEqC 1.2 is supported too. Kaffeine will display HDTV delivered over DVB-S2 or DVB-S, e.g. [[BBC HD]], see [[Kaffeine]].

you change the channel. DiSEqC 1.2 is supported too. Kaffeine will display HDTV delivered over DVB-S2 or DVB-S, e.g. [[BBC HD]], see [[Kaffeine]].

−

Some programs such as [[MythTV]] don't know about multiple frontends yet. You can only use one at a time, but the following allows you to swap between them without having to load the modules in differently:

+

See the section below on how to use this card with [[MythTV]].

−

+

−

<pre>

+

−

mkdir /dev/dvb/adapter1

+

−

ln -s /dev/dvb/adapter0/frontend1 /dev/dvb/adapter1/frontend0

+

−

ln -s /dev/dvb/adapter0/net1 /dev/dvb/adapter1/net0

+

−

ln -s /dev/dvb/adapter0/dvr1 /dev/dvb/adapter1/dvr0

+

−

ln -s /dev/dvb/adapter0/demux1 /dev/dvb/adapter1/demux0

+

−

</pre>

+

===Sample kernel output===

===Sample kernel output===

Line 253:

Line 295:

which uses a stock cx88_alsa module and then compile and install the HVR4000 driver. See http://www.howtoforge.com/kernel_compilation_ubuntu.

which uses a stock cx88_alsa module and then compile and install the HVR4000 driver. See http://www.howtoforge.com/kernel_compilation_ubuntu.

−

===Usage with Mythtv===

+

===Usage with MythTV===

−

Most programs such as MythTV don't know about multiple frontends yet. You can only use one at a time, but the following allows you to use both frontends.

+

[[MythTV]] v0.22 onwards supports multiple frontends and works fine.

+

UPDATE: DVB-T has no channel search under Broadcast with h264/HE-AAC. Scan resulting in:

+

+

Signal Strength: 99%, signal/noise: 49%

+

+

All channel scans end up with "Timed out, no signal". Seems to be something broken in MythTV for this function.

+

+

{{Note|There seems to be a bug since kernel 3.3.8:

+

+

A bug since kernel 3.3.8 (according to http://www.sat4all.com/forums/topic/324586-iemand-sasc-ng-al-werkend-met-32-kernels/page__st__20#entry2123480) triggers a race condition that makes MythTV unable to get a lock (http://code.mythtv.org/trac/ticket/10830).

+

Most easily worked around by running 'femon -H -aX' (where X is the adapter number used) for scanning to help MythTV get a lock. Confirmed to work on Kubuntu 12.10 running MythTV 0.26-patches with kernel 3.5. Installation of firmware still required. }}

−

<pre>

−

mkdir /dev/dvb/adapter1

−

ln -s /dev/dvb/adapter0/frontend1 /dev/dvb/adapter1/frontend0

−

ln -s /dev/dvb/adapter0/net1 /dev/dvb/adapter1/net0

−

ln -s /dev/dvb/adapter0/dvr1 /dev/dvb/adapter1/dvr0

−

ln -s /dev/dvb/adapter0/demux1 /dev/dvb/adapter1/demux0

−

</pre>

===Audio/Video capture===

===Audio/Video capture===

Line 293:

Line 338:

Another way is to use tvtime (http://tvtime.sourceforge.net/) which is available in many distros.

Another way is to use tvtime (http://tvtime.sourceforge.net/) which is available in many distros.

Mythbuntu 9.04 users

Attention Mythbuntu 9.04 users: This card should actually work with this version of Mythbuntu out of the box. However, the installed firmware seems to be buggy so it is necessary to install the Firmware v1.20.79.0 following the steps above.

Drivers

Note: If someone wants to provide a brief synopsis of the driver tale of woe, outlining why it took so
long then do so here ... or just read here

Ubuntu Hardy users should read the note about the sound driver (cx88_alsa) below.

Kernel / v4l-dvb driver

There is a complete driver for this card in the Linux kernel since version 2.6.28.
It supports DVB-T, DVB-S/S2, analogue TV, A/V capture and FM radio. If you have
the kernel 2.6.28 (or later) you do not need to install a driver yourself.

For developers, or those who need to use a kernel earlier than 2.6.28, a development
version of the driver is available in the v4l-dvb repository of the
LinuxTV project (the ususal route to merging improvements into the kernel).

Multiple frontends are supported: DVB-S/S2 and DVB-T appear as /dev/dvb/adapterN/frontend0 and /dev/dvb/adapterN/frontend1 respectively.

Due to a hardware limitation, the two frontends cannot be used simultaneously. However they
can be used sequentially within the same application. The driver handles the mutual exclusion
appropriately.

DVB-T and DVB-S are supported within API v3.2 (or the new API v5.0) and so it is
compatible with current applications. DVB-S2 is accessed through API v5.0, also known as S2API, which was released in kernel 2.6.28.

Command-line scanning for channels can be done with scan-s2. Tuning DVB-S and DVB-S2 channels can be
done with szap-s2 :

Kaffeine handles multiple frontends well without modification -- they appear in the DVB settings as "DVB Device 0:0" (=/dev/dvb/adapter0/frontend0, i.e. DVB-S/S2) and "DVB Device 0:1" (=/dev/dvb/adapter0/frontend1, i.e. DVB-T). Both devices can be configured and tuned in the application, and Kaffeine will switch to the correct one each time
you change the channel. DiSEqC 1.2 is supported too. Kaffeine will display HDTV delivered over DVB-S2 or DVB-S, e.g. BBC HD, see Kaffeine.

Sound driver

Alsa driver: cx88_alsa.

To make sure the sound card in the HVR-4000 does not grab card index 0 (instead of your
motherboard or discrete sound card) add the following to /etc/modprobe.d/alsa-base (or wherever
your distro sets alsa kernel module options):

Note: the Ubuntu Hardy kernel (2.6.24) has a separate Ubuntu version of the cx88_alsa module
which causes problems if you compile your own drivers (modprobe cx88_alsa gives
'cx88_alsa: disagrees about version of symbol' errors). Upgrade the kernel to one
which uses a stock cx88_alsa module and then compile and install the HVR4000 driver. See http://www.howtoforge.com/kernel_compilation_ubuntu.

Most easily worked around by running 'femon -H -aX' (where X is the adapter number used) for scanning to help MythTV get a lock. Confirmed to work on Kubuntu 12.10 running MythTV 0.26-patches with kernel 3.5. Installation of firmware still required.

Analogue TV and Teletext Receiver

Does anyone have any info about Linux support?

Note: I have latest http://linuxtv.org/hg/v4l-dvb with mythtv working with analogue TV. You add it as a normal V4L capture card in mythtv. You need this patch to make inital tuning (When you press "Watch TV") in mythtv work: http://svn.mythtv.org/trac/ticket/5744, without it you need to change channel before you see picture instead of snow. Scanning for channels also works. Set audiorate to 48000 to get good sound (in capturecard setup and also in playback groups).
Anders 11:40, 26 September 2008 (CEST)