forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Howto: Get your DVB card to work.

 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Tips & Tricks
View previous topic :: View next topic  
Author Message
electronics45
Xandrosianding
Xandrosianding


Joined: 15 Apr 2004
Posts: 774
Location: Sydney, Australia

PostPosted: Sun Oct 09, 2005 6:35 pm    Post subject: Howto: Get your DVB card to work. Reply with quote

I'm writing this tutorial for dvb-t cards (specifically the AverTV DVB-T), but it should also work fine for dvb-s and -c cards.

Getting your DVB card detected

The first thing we want to do, is make sure our DVB card is detected. Open a Konsole window, and type;
Code:
dmesg

and depending on your card look for lines that start with "bttv:" Here is what it should look like;
Code:
Real Time Clock Driver v1.12
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
ACPI: PCI Interrupt 0000:02:0b.0[A] -> GSI 23 (level, low) -> IRQ 23
bttv0: Bt878 (rev 17) at 0000:02:0b.0, irq: 23, latency: 64, mmio: 0xefefe000
bttv0: detected: AverMedia AverTV DVB-T 761 [card=124], PCI subsystem ID is 1461:0761
bttv0: using: AverMedia AverTV DVB-T 761 [card=124,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=009d008d [init]
bttv0: using tuner=-1
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv0: add subdevice "remote0"
bttv0: add subdevice "dvb0"
bt878: AUDIO driver version 0.0.0 loaded
bt878: Bt878 AUDIO function found (0).


If you can't find anything at all, first check the what chipset you have. You can usually find this out on the tuner box, or in hardware detection, in controll pannel, the tv tuner is usually listed as a cammera device. If it says something like ivtv, you need to load the ivtv module;
Code:

su
modrobe ivtv

Then look for lines starting with ivtv: in dmesg

If you still can't find any lines like that, there might still be an additional card-specific module you need to load. do a quite google search to find what the module might be, and load it with modprobe.

If you see some lines, but instead of seeing your model tuner card, you see something like "***UNKOWN or Generic tuner card***" then your card is being detected, but not configured. Things get a bit complicated now, so post below and we can try to work it out.

Setting up DVB

Although our card is detected, we still can't use it to tune a dvb stream, because the modules that route the digital signal are not loaded. we can do do this on this (for bttv chipsets) by;
Code:
su
modprobe dvb_ttpci
modprobe dvb_bt8xx

As I said before, if you have a different chipset, you'll need to load different modules, and you might need to load a card-specific module aswell.

you'll know it worked, when you see similar lines added to the end of dmesg;
Code:
DVB: registering new adapter (bttv0).
DVB: registering frontend 0 (Spase SP887x DVB-T)...


The modules will disapear when we reboot, so to get them to stay, we need to open an admin filemanager, and navigate to /etc and open the file "modules" with text editor.

You'll see a long list of singe words, which are a list of modules loaded at start up. I added these lines to the end of the list, but you need to add what ever modules you needed to get your dvb card registered.

Code:
dvb_ttpci
dvb_bt8xx


I'm not sure if other cards need to do this, but mine needed the firmware for my card. To see if you need the firmware, try using one of the below, and if you can't get anything, or get errors, have a look at dmesg for for something like
Code:
waiting for firmware upload... warning!
fimware not uploaded (timout of file not found?)"


The firmware can be picked up from your wininstallation, and in my case it was called sc_main.mc and was found in /disks/C/Program Files/AVerTV DVB-T. (I think there is an app that you can use to extract the firmware from a windows driver file, without the need to use windows, but I couldn't find it.)

copy it to your home dir, and rename it the file, that the lines in dmesg were looking for (in my case it was dvb-fe-sp887x.fw). Next open an admin file manager, and navigate to /usr/lib/hotplug/firmware, and move the file to here.

Congratulations your dvb card is now ready to use!

Using your DVB card
You can use a number of Applications to view DVB. My favorite, is Kaffene (available from the XORID, or ArchLug repository) because you can scan for channels with a GUI.

You can also use Xine, or a number of other apps, but you have to use scan. You can install in by installing the dvb-utils packag from XN.

You then need to go to /usr/share/doc/dvb-utils/examples/scan/dvb-t/ (there is a directory for dvb-s and -c aswell) and find the file that corresponds to your position. Then goto tools and open console window. In konsole type "scan ./your_region > /home/your_home/channels.conf"

where your_region is the file that corresponds to where you live, and your_home is the name of the current user.

Now that you have a channels.conf, goto your home dir, select View -> show hidden files, and then open .xine, and copy your channels.conf here. You can now open Xine, and press the "dvb" button on the contoles (press g to show the contols), and if you can't see it, it might be hidden. (sometimes when I press the dvb button, I get an error message, but pressing the done button and pressing the dvb button again 1-3 times, will make it work for me).

I believe you can also use Mplayer to watch dvb, but I havent tried this yet.

Getting your remote to work

coming soon. I'm still working on it, but should have a solution by tuesday. Wink
_________________
- Missing in action, as of 16-07-06
Farewell Xandros, and everyone in the fourms. It was a fun ride.


Last edited by electronics45 on Sun Oct 09, 2005 6:56 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
neu2linux
Xandrosian
Xandrosian


Joined: 02 Oct 2005
Posts: 180
Location: USA, Tennessee

PostPosted: Sun Oct 09, 2005 6:36 pm    Post subject: Reply with quote

Awesome *thumbs up* will keep that in mind when I go trying to get mine going. Thanks for the info Smile
_________________
:: What? Are you wanting my autograph now? ::
Back to top
View user's profile Send private message
electronics45
Xandrosianding
Xandrosianding


Joined: 15 Apr 2004
Posts: 774
Location: Sydney, Australia

PostPosted: Sun Oct 09, 2005 6:40 pm    Post subject: Reply with quote

neu2linux wrote:
Awesome *thumbs up* will keep that in mind when I go trying to get mine going. Thanks for the info Smile


What the!? Howd you post so dam quickly? Shocked
_________________
- Missing in action, as of 16-07-06
Farewell Xandros, and everyone in the fourms. It was a fun ride.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
neu2linux
Xandrosian
Xandrosian


Joined: 02 Oct 2005
Posts: 180
Location: USA, Tennessee

PostPosted: Sun Oct 09, 2005 7:41 pm    Post subject: Reply with quote

magic Wink
_________________
:: What? Are you wanting my autograph now? ::
Back to top
View user's profile Send private message
HealingMindOS
Xandrosianling
Xandrosianling


Joined: 24 Jul 2006
Posts: 279
Location: California

PostPosted: Thu Dec 07, 2006 1:13 pm    Post subject: Reply with quote

I checked /usr/share/doc/dvb-utils/examples/scan/dvb-t, but I can't find any document that corresponds to California or any where in the US.

What can be done about this?

Thanks in advance,

Randolph
_________________
X4 Kernal 2.6.18-dcc-smp: AMD Athlon 64 X2 AM2 4600+ in ASUSTek M2N4-SLI MB

When you get to the point where you really understand your computer, it's probably obsolete.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Tips & Tricks All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group