TV card won't work under opensuse 11.2

Hello there,

I installed openSUSE 11.2 several days ago. Everything works fine so far, but my tv-card isn’t willing too show me something. I’ve already searched the web for 2-3 days, but i could not find a solution.

kdetv says that it has “no device found”, xawtv works in rare chases but crashes completely when i try to maximize it. tvtime says “Driver refuses to start streaming”, in the next line “Driver refuses to stop streaming” and sometimes something about wrong number of frames from bttv.

The TV-card is a Terratec Terra TValue, it is still working fine under WinXP and did work under openSUSE 11.0. YaST-config is done, Nvidia drivers are installed, as well as v4l.

Some things that might help:

xawtv


This is xawtv-3.95, running on Linux/i686 (2.6.31.5-0.1-default)
xinerama 0: 1024x768+0+0 
WARNING: No DGA direct video mode for this display.
WARNING: keeping fbuf pitch at: 4096, as no base addr was detected
WARNING: couldn't find framebuffer base address, try manual configuration ("v4l-conf -a <addr>")  
v4l2: WARNING: framebuffer base address mismatch
v4l2: me=(nil) v4l=(nil) 
v4l2: read: Das Gerät oder die Ressource ist belegt  
ioctl: VIDIOC_QBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 ];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=MMAP): Das Gerät oder die Ressource ist belegt  
libv4l2: error turning on stream: Das Gerät oder die Ressource ist belegt
ioctl: VIDIOC_STREAMON(int=1): Das Gerät oder die Ressource ist belegt 
ioctl: VIDIOC_QBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 ];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=MMAP): Das Gerät oder die Ressource ist belegt
libv4l2: error dequeuing buf: Das Argument ist ungültig
ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 ];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=MMAP): Das Argument ist ungültig 
v4l2: read: Das Gerät oder die Ressource ist belegt 


xawtv -hwscan


This is xawtv-3.95, running on Linux/i686 (2.6.31.5-0.1-default)
looking for available devices
port 355-386
    type : Xvideo, image scaler
    name : NV17 Video Texture

port 387-418
    type : Xvideo, image scaler
    name : NV05 Video Blitter

/dev/video0: OK                          -device /dev/video0 ]
    type : v4l2
    name : BT878 video (Terratec TerraTVal
    flags: overlay capture tuner


lsmod | grep bttv


bttv                  133204  1
ir_common              49284  1 bttv
i2c_algo_bit            6884  1 bttv
v4l2_common            19200  5 tuner,tvaudio,tda7432,msp3400,bttv
videodev               39168  7 tuner,tvaudio,tda7432,msp3400,bttv,v4l2_common
videobuf_dma_sg        14500  1 bttv
videobuf_core          20164  2 bttv,videobuf_dma_sg
btcx_risc               5256  1 bttv
tveeprom               12100  1 bttv
i2c_core               32308  13 tuner_simple,tea5767,tuner,tvaudio,tda7432,msp3400,bttv,i2c_algo_bit,v4l2_common,videodev,tveeprom,i2c_i801,nvidia


lsmod | grep v4l


v4l2_common            19200  5 tuner,tvaudio,tda7432,msp3400,bttv
videodev               39168  7 tuner,tvaudio,tda7432,msp3400,bttv,v4l2_common
v4l1_compat            15844  1 videodev
i2c_core               32308  13 tuner_simple,tea5767,tuner,tvaudio,tda7432,msp3400,bttv,i2c_algo_bit,v4l2_common,videodev,tveeprom,i2c_i801,nvidia


Thanks for your help…

I wonder if you got this issue resolved. I have a similar issue after an upgrade to 11.2

lsmod |grep bttv

bttv 133845 1
ir_common 49284 1 bttv
i2c_algo_bit 6884 1 bttv
v4l2_common 19200 2 tda7432,bttv
videodev 39168 3 tda7432,bttv,v4l2_common
videobuf_dma_sg 14500 1 bttv
videobuf_core 20164 2 bttv,videobuf_dma_sg
btcx_risc 5256 1 bttv
tveeprom 12100 1 bttv
i2c_core 32628 7 tda7432,bttv,i2c_algo_bit,v4l2_common,i2c_piix4,videodev,tveeprom

lsmod |grep v4l

v4l2_common 19200 2 tda7432,bttv
videodev 39168 3 tda7432,bttv,v4l2_common
v4l1_compat 15684 1 videodev
i2c_core 32628 7 tda7432,bttv,i2c_algo_bit,v4l2_common,i2c_piix4,videodev,tveeprom

xawtv -hwscan

This is xawtv-3.95, running on Linux/i686 (2.6.31.12-0.2-default)
looking for available devices
port 57-57
type : Xvideo, image scaler
name : ATI Mach64 Back-end Overlay Scaler

Slightly different problem … I did make the mistake of trying to get YAST Hardware manager to sort it out, and it just hangs and wont complete the setup … is a bit strange as it worked well under v11.0

JD

So you also have a TerraTec TValue card? If so, when you attempted to configure it in Yast, did you manage to select the card number and tuner type? Which values did you use?

You could try removing the bttv module and re-inserting it with parameter values know to work for that type of card. From what I have seen, you could try, in a root shell:

rmmod bttv
modprobe bttv card=33 tuner=5

and see if that makes a difference.

No my card is a Brooktree which I believe is some sort of Asian clone. It worked fine with v11.0. and was in modprobe as Card=0 Tuner=4, I.e. no tuner. It is a 4 channel video card, I.e. can take the signal from 4 cameras. I had it going under zoneminder just fine, was being used lately to upload a webcam image to a towns website, It worked OK for while after an upgrade to 11.2. I do not seem to be able to find my changelog, (Thats another question … how come? Has it been moved somewhere?)

If I rmod bttv I get an ERROR Device in use message. If I try to modprobe bttv card=0 tuner =4 (Or any combination of numbers) it just hangs and I have to ctrl C out of it.

What I am proposing to do is take the server off line on Sunday, tomorrow, remove the card, reboot, remove all v4l and bttv apps and libs, even xine, kaffiene, and mplayer, reboot again. Reinstall the card, and run the YAST TV module. It is pretty mature nowadays, and will actually install software to use with your hardware. Worth a try do you think.?

If it locks up when you try and modprobe, I would think there is a mismatch between the bttv module and your card. I cannot see why mplayer, kaffeine and xine etc would have a bearing on that. However, just to make sure, you could look at the entries in Yast Software Management and see if there are any upgrades (shown as blue) available, implement those, but I rather think it’s a long shot.

If you know that the card used to work under Suse 11.2, I would suggest trying to roll back through the kernel versions via Yast to see if that cures the problem. You don’t have to have the latest and greatest kernel - most of the vulnerabilities are only such under contrived circumstances. I have had problems with kernel upgrades borking support for various hardware items before, so your experience doesn’t surprise me. Yast will advise you of any dependency problems if you do that and, if it is too horrendous, it may be best to wait for Plan B.

Plan B: Suse 11.3 is to be released in 28 days and that may support your card better than the current 11.2. But it may not.

I have rarely had to use the update logs. From what I remember, I may have looked at something in /var/log/zypper, the one time I had to work out what a particular upgrade installed.

Sorry I can’t be of more help.

OK just an update for anyone that might read through this thread …
I have v4l working, and can view tv via xawtv, and upload webcam shots as per the past.

I removed the card from the pci bus and rebooted. I removed anything under “search/TV” and "search/v4l"in yast software management.

I reinstalled the card and rebooted. I then ran Yast hardware manager TV module and it set-up my newly found hardware, and installed the necessary apps to use with it.

Note maintainers it installed motv not xawtv. I remedied this immediately and all good. Video was very grainy, so I edited 50-TV.conf in modprobe.d to reflect my video capture card, card=77 tuner=4 etc

All running good.

Note I managed to destroy my amarok install by phaffing about trying to sort the TV out, so more to come.