Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Someone who has there bttv card working in 2.6 read this!
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Wed Apr 21, 2004 3:49 am    Post subject: Someone who has there bttv card working in 2.6 read this! Reply with quote

I have been battling with linux for about 2 months now trying to get my ATI TV Wonder card to work. It works, except for the tuner part of it. I am using the kernel from www.kernel.org, and it is version 2.6.2.

All i am asking is for someone who has there card working to please post all there files [/etc/modules.autoload.d/kernel-2.6, etc], the steps they took [what they compiled into the kernel], etc. I really dont know what todo right now. Im so lost, and i feel like i have tried everything :(.

Please, anyone, this is a desperate cry to watch TV while developing free software. Hehe.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
dfuse
Guru
Guru


Joined: 07 Apr 2003
Posts: 395
Location: Belgium

PostPosted: Wed Apr 21, 2004 9:18 am    Post subject: Reply with quote

What exactly doesn't work with the tuner? Which program do you use for watching tv? (I recommend tvtime) I have a bttv card (Hauppage) and it doesn't differ from installing it in 2.4. I just compiled all bttv references in the kernelconfig into the kernel (not as a module) and it just worked. When I'm home I'll see if I can post more detailed info about the kernel config.
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Wed Apr 21, 2004 11:12 am    Post subject: Reply with quote

I have the same card running with 2.6.5-rc2-mm5. All the drivers are built as modules, since you have to pass an option to the module for the tuner to work correctly. Otherwise, you get a black and white picture and all the channels are off by one.

For drivers, you need v4l, bttv, i2c_algo_bit and (optionally) snd_bt87x. Then, the last two lines of my /etc/modules.autoload.d/kernel-2.6 are:
Code:

tuner type=2
bttv card=63

I also like tvtime for viewing. It seems to work the best of the several apps I have tried. If you still have problems try a newer kernel.
_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
brimstone
n00b
n00b


Joined: 04 Mar 2004
Posts: 3

PostPosted: Wed Apr 21, 2004 4:21 pm    Post subject: This is how i did it Reply with quote

I merged the newest kernel (gentoo-dev-sources 2.6.5-gentoo-r1) whith this config-options, and all i have to do is a 'modprobe bttv' to get xawtv to find the device (pinacle pctv)

Code:

# I2C support
CONFIG_I2C=y

# I2C Algorithms
CONFIG_I2C_ALGOBIT=m

# Multimedia devices
CONFIG_VIDEO_DEV=y

# Video For Linux
# Video Adapters
CONFIG_VIDEO_BT848=m
CONFIG_VIDEO_TUNER=m
CONFIG_VIDEO_BUF=m
CONFIG_VIDEO_BTCX=m
CONFIG_VIDEO_IR=m


Hope it helps

[/code]
_________________
There are 10 types of people -- those who understand binary values and those who don't
Back to top
View user's profile Send private message
spamspam
Apprentice
Apprentice


Joined: 05 Dec 2003
Posts: 153

PostPosted: Wed Apr 21, 2004 5:56 pm    Post subject: I may have the solution... Reply with quote

my ATI TV Wonder VE didn't work under development-sources<=2.6.2 but did under development-sources >=2.6.3. Also be sure to compile in i2c and the audio capture driver under ALSA.
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Wed Apr 21, 2004 6:21 pm    Post subject: Reply with quote

Maybe because im using 2.6.2 its not working. I have tried lower versions of 2.6 and the same thing happens, which is nothing :P. I will compile 2.6.5, and if it doesn't work i will post all of my config files, and maybe find out what im doing wrong.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Wed Apr 21, 2004 11:11 pm    Post subject: Reply with quote

I tried to get 2.6.5-gentoo-r1 to work, but it was freezing at boot. I tried 2.6.4-kernel-r2, and it worked, except for my tv tuner :(. Here is all my files that have things todo with my bttv card.

KERNEL CONFIGURATION
Code:

<M> I2C support
<M>   I2C device interface
I2C Algorithms  --->
--- I2C bit-banging interfaces
<M>   I2C PCF 8584 interfaces

<M> Video For Linux
--- Video Adapters
<M>   BT848 Video For Linux


dmesg | grep bttv
Code:

bttv: driver version 0.9.12 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:02:0a.0, irq: 22, latency: 32, mmio: 0xf47fe000
bttv0: detected: ATI TV Wonder [card=63], PCI subsystem ID is 1002:0001
bttv0: using: ATI TV-Wonder [card=63,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=2
bttv0: i2c: checking for MSP34xx @ 0x80... found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv0: PLL can sleep, using XTAL (28636363).


dmesg | grep tuner
Code:

bttv0: using tuner=2
tuner: chip found at addr 0xc0 i2c-bus bt878 #0 [sw]
tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by bt878 #0 [sw]


lsmod
Code:

Module                  Size  Used by
nvidia               1704108  6
sg                     31776  0
tuner                  18060  0
msp3400                23188  0
bttv                  144492  0
video_buf              18052  1 bttv
i2c_algo_bit            9992  1 bttv
v4l2_common             6016  1 bttv
btcx_risc               5000  1 bttv
i2c_core               20100  4 tuner,msp3400,bttv,i2c_algo_bit
videodev                8832  1 bttv


/etc/modules.autoload.d/kernel-2.6
Code:

bttv card=63 tuner=2 # just a side note: i have tried variations of this.


This is all i have put in, and i have seen people with less get it working :P. So im stumped.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson


Last edited by Solution_9 on Thu Apr 22, 2004 2:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Thu Apr 22, 2004 12:54 pm    Post subject: Reply with quote

The only thing I see different than my setup is the modules.autoload file. Each module must be on a separate line and mine only works when the tuner is loaded first.
_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Thu Apr 22, 2004 2:04 pm    Post subject: Reply with quote

Ya i have tried that too. It doesn't seem to work either.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Thu Apr 29, 2004 10:37 pm    Post subject: Reply with quote

// bump \\

ok so im using kernel 2.6.6 now, and same no workie from my bttv card.

here is my lsmod again
Code:

 lsmod
Module                  Size  Used by
nvidia               2072904  12
sg                     31136  0
snd_seq_midi            7584  0
snd_emu10k1_synth       7936  0
snd_emux_synth         36608  1 snd_emu10k1_synth
snd_seq_virmidi         7040  1 snd_emux_synth
snd_seq_midi_emul       7808  1 snd_emux_synth
snd_emu10k1            93828  2 snd_emu10k1_synth
snd_rawmidi            21664  3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_ac97_codec         61956  1 snd_emu10k1
snd_util_mem            4480  2 snd_emux_synth,snd_emu10k1
snd_hwdep               8480  2 snd_emux_synth,snd_emu10k1
snd_seq_oss            33664  0
snd_seq_midi_event      7424  3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq                53136  8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
snd_seq_device          7816  7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_emu10k1,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss            49956  0
snd_pcm                87968  2 snd_emu10k1,snd_pcm_oss
snd_page_alloc          9988  2 snd_emu10k1,snd_pcm
snd_timer              23428  2 snd_seq,snd_pcm
snd_mixer_oss          18816  1 snd_pcm_oss
snd                    47972  18 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_util_mem,snd_hwdep,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
tuner                  18316  0
msp3400                23188  0
bttv                  146604  0
video_buf              17796  1 bttv
i2c_algo_bit            9992  1 bttv
v4l2_common             6016  1 bttv
btcx_risc               5000  1 bttv
i2c_core               20100  4 tuner,msp3400,bttv,i2c_algo_bit
videodev                8704  1 bttv


could someone post there so i can compare them
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
JazzSax006
n00b
n00b


Joined: 03 Jun 2003
Posts: 38

PostPosted: Fri Apr 30, 2004 8:00 pm    Post subject: Reply with quote

Code:
/etc/modules.autoload.d/kernel-2.6
 

Code:



 bttv card=63 tuner=2 # just a side note: i have tried variations of this.
 


 
 This is all i have put in, and i have seen people with less get it working . So im stumped.


Try changing this line to just "bttv" and then create a file /etc/modules.d/bttv with the following in it:

Code:

alias char-major-89 i2c-dev
options i2c-algo-bit bit_test=1
alias char-major-81 bttv
options bttv card=63
options tuner type=2
post-install bttv modprobe tuner; modprobe videodev


Then run:
Code:
# modules-update

and reboot.

This is assuming that those are the correct vard and tuner numbers. I dunno if this is the case as my card is a pinnacle card.
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Fri Apr 30, 2004 10:56 pm    Post subject: Reply with quote

That does not work either. Im really in a stump here :(.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
waxor
n00b
n00b


Joined: 02 Mar 2004
Posts: 11

PostPosted: Thu May 13, 2004 1:42 am    Post subject: Reply with quote

Not sure if this will help you, but the later TV Wonder cards (the Pro at least), use the CX88 driver, not the BTTV driver.
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Thu May 13, 2004 2:04 am    Post subject: Reply with quote

Well i had it working before, and everything works BUT the tuner part.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Thu May 13, 2004 2:42 am    Post subject: Reply with quote

I have it working with latest love sources. I have BT878 support built into my kernel, it gets detected perfectly at boot.
here is my config:
http://www.youhavechoice.com/config
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Thu May 13, 2004 2:47 am    Post subject: Reply with quote

I tried the latest love sources [2.6.6], but it still never worked. I never had it built in to my kernel though.

Update:
With using everything that your kernel config shows, except for bttv as a module, it still does not work. I have no clue what to do anymore :(.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
kraddler2003
n00b
n00b


Joined: 04 May 2004
Posts: 31

PostPosted: Thu May 13, 2004 4:16 am    Post subject: ati tv wonder card=64 tuner type=17 Reply with quote

just thought id add my 1 cent. I have the same card.Bought it about 3 months ago.
I pass on these options in the /etc/modules.autoload.d.........
options bttv radio=0 card=64
options tuner type=17
I use these options and my tv card works fine ..if you use TVtime you should have RTC enabled in your kernel......
If you look at bttv documents you will see that the ati tv wohder uses card=64
and by default linux sets the tuner at type=19..wich is pal...type=17 is ntsc
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Thu May 13, 2004 4:17 am    Post subject: Reply with quote

I have always been setting it to type 2. Thats what i have alwayss seen. I will try it and get back to you.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Thu May 13, 2004 5:01 am    Post subject: Reply with quote

Changing the tuner type to 17 does not work. It is NTSC, but its like NTSC_M. Whatever that is.

My config is at http://8dn.com/~bmilleker/_OTHER/.config
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Thu May 13, 2004 7:01 am    Post subject: Reply with quote

why dont you try build in instead of mudule ?
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Thu May 13, 2004 1:55 pm    Post subject: Reply with quote

I cant because it detects the tuner wrong. It sets it too 19, which is pal.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Thu May 13, 2004 4:13 pm    Post subject: Reply with quote

ok, but cant you change tv norm with tv-viewer? i can.
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Thu May 13, 2004 6:14 pm    Post subject: Reply with quote

When my box boots up it also detects my tv-wonder with pal:
Code:

bttv: driver version 0.9.14 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 2) at 0000:01:06.0, irq: 11, latency: 32, mmio: 0xd0001000
bttv0: detected: ATI TV Wonder [card=63], PCI subsystem ID is 1002:0001
bttv0: using: ATI TV-Wonder [card=63,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=19
bttv0: i2c: checking for MSP34xx @ 0x80... found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
msp34xx: init: chip=MSP3445G-B8 +nicam +simple +radio
msp3410: daemon started
tvaudio: TV audio decoder + audio/video mux driver
tvaudio: known chips: tda9840,tda9873h,tda9874h/a,tda9850,tda9855,tea6300,tea6420,tda8425,pic16c54 (PV951),ta8874z
cx2388x v4l2 driver version 0.0.3 loaded
tuner: chip found at addr 0xc0 i2c-bus bt878 #0 [sw]
tuner: type set to 19 (Temic PAL* auto (4006 FN5)) by b
t878 #0 [sw]


but all i got to do is change it with the app i am watching tv with... no problem there for me, so humor me and try it.
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Thu May 13, 2004 9:30 pm    Post subject: Reply with quote

Moved from Multimedia.
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Fri May 14, 2004 12:04 am    Post subject: Reply with quote

It does not work.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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