ZM 1.24.2-8ubuntu1 on ubuntu 11.04 with bt878 card DOESN'T W

Forum for questions and support relating to the 1.24.x releases only.
Locked
speedamaster
Posts: 25
Joined: Wed Dec 30, 2009 11:29 am

ZM 1.24.2-8ubuntu1 on ubuntu 11.04 with bt878 card DOESN'T W

Post by speedamaster »

since I upgraded my system to ubuntu 11.04 (natty) my zoneminder monitors stopped working (went red in overview).
SO ID DID WORK BEFORE!

I really tried hard but need YOUR help to get this back to work!

as you see below main issues might be "tuner absent" "Bt8xx card found (0)"in dmesg when doing a modprobe bttv and and a "0" in lsmod|grep bttv.

ANY IDEA OR HELP?????

tvtime works (even in color) - see file
guvcview works (somehow, some line sync issues, but at least some picture)
xawtv doesnt work (shows some strange screen copy artefacts) - see file - is that a matter of a wrong videobuffer?
I configured in /etc/sysctl.conf (according to that forum script for memory setting):

Code: Select all

	-- Recommended: kernel.shmmax = 1420727500 B = 1354 MB
		-- Recommended: kernel.shmall = 385397 pages
zmu -d /dev/video0 -q -v delivers

Code: Select all

Video Device: /dev/video0
		General Capabilities
		  Driver: bttv
		  Card: BT878 video (GrandTec Multi Cap
		  Bus: PCI:0000:05:04.0
		  Version: 0.9.18
		  Type: 0x5000015
			Supports video capture (X)
			Does not support video output
			Supports frame buffer overlay
			Supports VBI capture
			Does not support VBI output
			Does not support sliced VBI capture
			Does not support sliced VBI output
			Does not support video output overlay
			Does not have tuner
			Does not have audio in and/or out
			Does not have radio
			Supports read/write i/o (X)
			Does not support async i/o
			Supports streaming i/o (X)
			Standards:
			  NTSC
			  NTSC-M
			  NTSC-M-JP
			  NTSC-M-KR
			  PAL
			  PAL-BG
			  PAL-H
			  PAL-I
			  PAL-DK
			  PAL-M
			  PAL-N
			  PAL-Nc
			  PAL-60
			  SECAM
			  SECAM-B
			  SECAM-G
			  SECAM-H
			  SECAM-DK
			  SECAM-L
			  SECAM-Lc
		  Formats:
			8 bpp, gray (GREY)
			8 bpp, dithered color (HI24)
			15 bpp RGB, le (RGBO)
			15 bpp RGB, be (RGBQ)
			16 bpp RGB, le (RGBP)
			16 bpp RGB, be (RGBR)
			24 bpp RGB, le (BGR3)
			32 bpp RGB, le (BGR4)
			32 bpp RGB, be (RGB4)
			4:2:2, packed, YUYV (YUYV)
			4:2:2, packed, YUYV (YUYV)
			4:2:2, packed, UYVY (UYVY)
			4:2:2, planar, Y-Cb-Cr (422P)
			4:2:0, planar, Y-Cb-Cr (YU12)
			4:2:0, planar, Y-Cr-Cb (YV12)
			4:1:1, planar, Y-Cb-Cr (411P)
			4:1:0, planar, Y-Cb-Cr (YUV9)
			4:1:0, planar, Y-Cr-Cb (YVU9)
		Crop Capabilities
		  Bounds: 1063 x 608
		  Default: 924 x 576
		  Current: 924 x 576
		Inputs: 4
		  Input 0
			Name: Composite0
			Type: Camera
			Audioset: 00000001
			Standards: 0xffbfff
			Power on  (X)
			Signal detected  (X)
			Colour Signal detected
			Horizontal Lock detected
		  Input 1
			Name: Composite1
			Type: Camera
			Audioset: 00000001
			Standards: 0xffbfff
			Power on  (X)
			Signal detected  (X)
			Colour Signal detected
			Horizontal Lock detected
		  Input 2
			Name: Composite2
			Type: Camera
			Audioset: 00000001
			Standards: 0xffbfff
			Power on  (X)
			Signal detected  (X)
			Colour Signal detected
			Horizontal Lock detected
		  Input 3
			Name: Composite3
			Type: Camera
			Audioset: 00000001
			Standards: 0xffbfff
			Power on  (X)
			Signal detected  (X)
			Colour Signal detected
			Horizontal Lock detected
xawtv -hwscan delivers

Code: Select all

This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.38-8-generic)
		looking for available devices
		port 143-146
			type : Xvideo, image scaler
			name : ATI Radeon AVIVO Video

		/dev/video0: OK                         [ -device /dev/video0 ]
			type : v4l2
			name : BT878 video (GrandTec Multi Cap
			flags: overlay capture

		/dev/video1: OK                         [ -device /dev/video1 ]
			type : v4l2
			name : Hauppauge WinTV-HVR4000 DVB-S/S
			flags:  capture tuner

		/dev/video2: OK                         [ -device /dev/video2 ]
			type : v4l2
			name : Hauppauge WinTV-HVR4000 DVB-S/S
			flags:  capture tuner
if I do a rmmod and modprobe bttv I get in dmesg

Code: Select all

[13831.323149] bttv0: unloading
[13870.158559] bttv: driver version 0.9.18 loaded
[13870.158568] bttv: using 8 buffers with 2080k (520 pages) each for capture
[13870.158687] bttv: Bt8xx card found (0).
[13870.158717] bttv0: Bt878 (rev 17) at 0000:05:04.0, irq: 20, latency: 32, mmio: 0xe0100000
[13870.158758] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[13870.158809] bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
[13870.159130] bttv0: tuner absent
[13870.159293] bttv0: registered device video0
[13870.159395] bttv0: registered device vbi0
[13870.159422] bttv0: PLL: 28636363 => 35468950 ..
[13870.180666] bttv0: PLL: 28636363 => 35468950
[13870.180676] bttv0: PLL: 28636363 => 35468950 .. ok
for lsmod | grep bttv I get

Code: Select all

bttv                  112771  0
	i2c_algo_bit           13184  3 cx88_vp3054_i2c,bttv,cx88xx
	v4l2_common            16757  5 wm8775,tuner,cx8800,cx88xx,bttv
	videodev               75143  6 wm8775,tuner,cx8800,bttv,cx88xx,v4l2_common
	videobuf_dma_sg        18747  6 cx88_dvb,cx88_alsa,cx8802,cx8800,bttv,cx88xx
	btcx_risc              13400  5 cx88_alsa,cx8802,cx8800,bttv,cx88xx
	rc_core                25760  11 rc_hauppauge_new,ir_lirc_codec,bttv,ir_sony_decoder,cx88xx,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder
	videobuf_core          25193  6 videobuf_dvb,cx8802,cx8800,bttv,cx88xx,videobuf_dma_sg
	tveeprom               17009  2 bttv,cx88xx
Attachments
xawtv doesnt work
xawtv doesnt work
SL6GK2~X.PNG (35.25 KiB) Viewed 4159 times
tvtime works
tvtime works
TQ50NGsmall.jpg (4.74 KiB) Viewed 4159 times
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: ZM 1.24.2-8ubuntu1 on ubuntu 11.04 with bt878 card DOESN

Post by mastertheknife »

Please paste errors from your system log.

mastertheknife
Kfir Itzhak.
speedamaster
Posts: 25
Joined: Wed Dec 30, 2009 11:29 am

Re: ZM 1.24.2-8ubuntu1 on ubuntu 11.04 with bt878 card DOESN

Post by speedamaster »

this is the log in syslog (grep bttv /var/log/syslog):

Code: Select all

May 18 11:47:48 basement kernel: [   11.863773] bttv: driver version 0.9.18 loaded
May 18 11:47:48 basement kernel: [   11.863780] bttv: using 8 buffers with 2080k (520 pages) each for capture
May 18 11:47:49 basement kernel: [   13.853816] bttv: Bt8xx card found (0).
May 18 11:47:49 basement kernel: [   13.853861] bttv 0000:05:04.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
May 18 11:47:49 basement kernel: [   13.853882] bttv0: Bt878 (rev 17) at 0000:05:04.0, irq: 20, latency: 32, mmio: 0xe0100000
May 18 11:47:49 basement kernel: [   13.853924] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
May 18 11:47:49 basement kernel: [   13.853989] bttv0: gpio: en=00000000, out=00000000 in=00f360ff [init]
May 18 11:47:49 basement kernel: [   13.854188] bttv0: tuner absent
May 18 11:47:49 basement kernel: [   13.854195] bttv0: the autoload option is obsolete.
May 18 11:47:49 basement kernel: [   13.854199] bttv0: use option msp3400, tda7432 or tvaudio to
May 18 11:47:49 basement kernel: [   13.854204] bttv0: override which audio module should be used.
May 18 11:47:49 basement kernel: [   13.854596] bttv0: registered device video1
May 18 11:47:49 basement kernel: [   13.854778] bttv0: registered device vbi1
May 18 11:47:49 basement kernel: [   13.854805] bttv0: PLL: 28636363 => 35468950 .. ok
May 18 11:48:57 basement tvheadend[1600]: v4l: /dev/video1: bttv BT878 video (GrandTec Multi Cap PCI:0000:05:04.0 capabilities: 0x05000015
I did remove the tvheadend and I ended in the same (except the last line) syslog messages.
speedamaster
Posts: 25
Joined: Wed Dec 30, 2009 11:29 am

Re: ZM 1.24.2-8ubuntu1 on ubuntu 11.04 with bt878 card DOESN

Post by speedamaster »

/dev/video0 is in orange color state. My monitor screen looks like:
Attachments
Clipboard01.jpg
Clipboard01.jpg (20.94 KiB) Viewed 4048 times
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Re: ZM 1.24.2-8ubuntu1 on ubuntu 11.04 with bt878 card DOESN

Post by Blazer »

I'm having pretty much the exact same problem. System was working fine. Did a dist upgrade to 11.04 and now only my monitor that points to a network camera works. All of my bttv devices do not work and no obvious errors.
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Re: ZM 1.24.2-8ubuntu1 on ubuntu 11.04 with bt878 card DOESN

Post by Blazer »

Update: I removed the zoneminder package (1.24.2) and did a manual compile+install of 1.24.4 and my bttv devices work again. Now my only problem is trying to also get a uvcvideo device working simultaenously with the v4l2 driver instead of as a remote network cam (with mjpeg-streamer)
Locked