Conexant Fusion 878A not working in Zoneminder...Debian 6.0

Forum for questions and support relating to the 1.24.x releases only.
Locked
vinodtcr
Posts: 18
Joined: Fri Feb 25, 2011 2:37 pm
Location: India

Conexant Fusion 878A not working in Zoneminder...Debian 6.0

Post by vinodtcr »

I have downloaded and installed Debian 6.0(Squeeze) and zoneminder using apt-get last week, and configured monitor /dev/video0 but it shows only a black screen when viewed. Please see the config below. The results are with one CCTV CMOS colour cam connected to one video port.

Mother Board: Intel Atom D410pt
DVR Card: Conexant Fusion 878A 25878-13 Taiwan ( 3 video + 1 Audio )
OS : Debian 6.0.0 Squeeze
ZM: ZoneMinder 1.24.2
------------------------------------------------------------------------------------------
# xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-5-686)
looking for available devices
port 73-88
type : Xvideo, image scaler
name : Intel(R) Textured Video

port 89-89
type : Xvideo, image scaler
name : Intel(R) Video Overlay

/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : BT878 video ( *** UNKNOWN/GENER
flags: overlay capture
-----------------------------------------------------------------------------------

# xawtv -device /dev/video0
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-5-686)
xinerama 0: 800x600+0+0
X Error of failed request: XF86DGANoDirectVideoMode
Major opcode of failed request: 130 (XFree86-DGA)
Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
Serial number of failed request: 67
Current serial number in output stream: 67
------------------------------------------------------------------------------------

# zmu -d /dev/video0 -q -v
Video Device: /dev/video0
General Capabilities
Driver: bttv
Card: BT878 video ( *** UNKNOWN/GENER
Bus: PCI:0000:05:00.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: S-Video
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
------------------------------------------------------------------------------

# dmesg | grep bttv
[ 4.167587] bttv: driver version 0.9.18 loaded
[ 4.167596] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 4.168205] bttv: Bt8xx card found (0).
[ 4.168243] bttv 0000:05:00.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
[ 4.168264] bttv0: Bt878 (rev 17) at 0000:05:00.0, irq: 21, latency: 32, mmio: 0xe0101000
[ 4.168321] bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 4.168329] IRQ 21/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 4.168390] bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
[ 10.600023] bttv0: tuner type unset
[ 10.600149] bttv0: registered device video0
[ 10.600227] bttv0: registered device vbi0
--------------------------------------------------------------------------------
I think the drivers are not installed correctly so please help
Now the cam works with rawtv

# xawtv -nodga -device /dev/video0

Even now in ZM monitor i see only a black box instead of video.
-------------------------------------------------------------------------------------------------

Feb 26 00:48:02 wonderland zmdc[13982]: INF ['zmc -d /dev/video0' starting at 11/02/26 00:48:02, pid = 14316]
Feb 26 00:48:02 wonderland zmdc[14316]: INF ['zmc -d /dev/video0' started at 11/02/26 00:48:02]
Feb 26 00:48:02 wonderland zmc_dvideo0[14316]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 00:48:02 wonderland zmc_dvideo0[14316]: INF [Starting Capture]
Feb 26 00:48:02 wonderland zmc_dvideo0[14316]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Feb 26 00:48:03 wonderland zms[14317]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 00:48:04 wonderland zmu[14321]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 26 00:48:08 wonderland zmu[14324]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 26 00:48:08 wonderland zmu[14326]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 26 00:48:08 wonderland zms[14327]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 00:48:08 wonderland zms[14327]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 26 00:48:13 wonderland zmu[14330]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 26 00:48:13 wonderland zmu[14332]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 26 00:48:13 wonderland zms[14333]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 00:48:13 wonderland zms[14333]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 26 00:48:15 wonderland zmu[14337]: WAR [Shared data not initialised by capture daemon, s
ruehlchr
Posts: 12
Joined: Fri Feb 18, 2011 2:14 am
Location: Hong Kong

Post by ruehlchr »

Please read

http://www.zoneminder.com/wiki/index.php/Pico2000

this should be help you configure the linux module and make the Card fly.

Chris
If you wondering why your PC is so slow, try Linux instead!
vinodtcr
Posts: 18
Joined: Fri Feb 25, 2011 2:37 pm
Location: India

Post by vinodtcr »

Thanks ruehlchr, It works now...The bttv.conf solved it...
RobinB
Posts: 2
Joined: Thu Mar 03, 2011 3:05 pm

Post by RobinB »

ruehlchr wrote:Please read

http://www.zoneminder.com/wiki/index.php/Pico2000

this should be help you configure the linux module and make the Card fly.

Chris
vinodtcr wrote:Thanks ruehlchr, It works now...The bttv.conf solved it...
I have sort of the same problem, always black (Blue if I choose a color palete other than GREY). I have a Grandtec Grand X Guard 9 port (thus card=77). I followed the pico 2000 link to no avail...
I've updated to Debian unstable in hope of some success but nothing.
I tried tuner=4 (and 5) with no luck.
I've set shared memory so I don't get those errors.
I get state IDLE in zoneminder when I look on the monitors.
Cameras and Card have been tested in Windows and they work.
I've included some log messages.
I'm at a complete stalemate here and would appreciate some help!

EDIT: I only have 1 camera connected at the moment.

Code: Select all

robjo@hoder:~$ xawtv -device /dev/video0 
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.37-2-686)
xinerama 0: 1024x768+0+0
WARNING: couldn't find framebuffer base address, try manual
         configuration ("v4l-conf -a <addr>")
ioctl: VIDIOC_OVERLAY(int=1): Invalid argument
ioctl: VIDIOC_OVERLAY(int=1): Invalid argument
ioctl: VIDIOC_OVERLAY(int=1): Invalid argument

Code: Select all

robjo@hoder:~$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.37-2-686)
looking for available devices
port 63-78
    type : Xvideo, image scaler
    name : NV Video Blitter

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

Code: Select all

robjo@hoder:~$ dmesg | grep bttv
[    8.210624] bttv: driver version 0.9.18 loaded
[    8.210632] bttv: using 8 buffers with 2080k (520 pages) each for capture
[    8.211805] bttv: Bt8xx card found (0).
[    8.211886] bttv 0000:02:0b.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[    8.212139] bttv0: Bt878 (rev 17) at 0000:02:0b.0, irq: 23, latency: 32, mmio: 0xf47fe000
[    8.212377] bttv0: detected: GrandTec Multi Capture [card=57], PCI subsystem ID is 4344:4142
[    8.212385] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[    8.212430] bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
[    8.212701] bttv0: tuner absent
[    8.212972] bttv0: registered device video0
[    8.213211] bttv0: registered device vbi0
[    8.213238] bttv0: PLL: 28636363 => 35468950 .
[64601.957862] bttv0: PLL can sleep, using XTAL (28636363).

Code: Select all

robjo@hoder:~$  zmu -d /dev/video0 -q -v 
Video Device: /dev/video0
General Capabilities
  Driver: bttv
  Card: BT878 video (GrandTec Multi Cap
  Bus: PCI:0000:02:0b.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: 838 x 504
  Default: 768 x 480
  Current: 768 x 480
Inputs: 4
  Input 0
    Name: Composite0
    Type: Camera
    Audioset: 00000001
    Standards: 0xffbfff
    Power on  (X)
    Signal not detected  (X)
    Colour Signal detected 
    Horizontal Lock not 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 

Code: Select all

Mar  4 09:07:03 hoder kernel: [65070.966438] nouveau 0000:01:00.0: VGA-1: EDID block 0 invalid.
Mar  4 09:07:03 hoder kernel: [65070.966448] [drm] nouveau 0000:01:00.0: DDC responded, but no EDID for VGA-1
Mar  4 09:07:03 hoder kernel: [65070.987327] [drm] nouveau 0000:01:00.0: Load detected on head A
Mar  4 09:09:01 hoder /USR/SBIN/CRON[3851]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Mar  4 09:15:07 hoder zmpkg[3869]: INF [Command: start]
Mar  4 09:15:08 hoder zmfix[3879]: ERR [Can't chmod /dev/video0 to 20666: Operation not permitted]
Mar  4 09:15:09 hoder zmdc[3882]: INF [Server starting at 11/03/04 09:15:09]
Mar  4 09:15:13 hoder zmdc[3882]: INF ['zmc -d /dev/video0' starting at 11/03/04 09:15:13, pid = 3905]
Mar  4 09:15:13 hoder zmdc[3905]: INF ['zmc -d /dev/video0' started at 11/03/04 09:15:13]
Mar  4 09:15:13 hoder zmc_dvideo0[3905]: INF [Debug Level = 0, Debug Log = <none>]
Mar  4 09:15:13 hoder zmc_dvideo0[3905]: INF [Starting Capture]
Mar  4 09:15:13 hoder kernel: [65561.264362] bttv0: PLL: 28636363 => 35468950 .. ok
Mar  4 09:15:14 hoder zmdc[3882]: INF ['zmfilter.pl' starting at 11/03/04 09:15:14, pid = 3908]
Mar  4 09:15:14 hoder zmdc[3908]: INF ['zmfilter.pl' started at 11/03/04 09:15:14]
Mar  4 09:15:16 hoder zmdc[3882]: INF ['zmaudit.pl -c' starting at 11/03/04 09:15:16, pid = 3914]
Mar  4 09:15:16 hoder zmdc[3914]: INF ['zmaudit.pl -c' started at 11/03/04 09:15:16]
Mar  4 09:15:18 hoder zmdc[3882]: INF ['zmwatch.pl' starting at 11/03/04 09:15:18, pid = 3917]
Mar  4 09:15:18 hoder zmdc[3917]: INF ['zmwatch.pl' started at 11/03/04 09:15:18]
Mar  4 09:15:19 hoder zmfilter[3908]: INF [Scanning for events]
Mar  4 09:15:19 hoder zmwatch[3917]: INF [Watchdog starting]
Mar  4 09:15:19 hoder zmwatch[3917]: INF [Watchdog pausing for 30 seconds]
Mar  4 09:15:41 hoder zms[3941]: INF [Debug Level = 0, Debug Log = <none>]
Mar  4 09:15:53 hoder zms[3941]: INF [Got signal 15 (Terminated), exiting]
Mar  4 09:16:05 hoder zmfix[3950]: ERR [Can't chmod /dev/video0 to 20666: Operation not permitted]
Mar  4 09:16:07 hoder zmdc[3882]: INF ['zmc -d /dev/video0' stopping at 11/03/04 09:16:07]
Mar  4 09:16:07 hoder zmc_dvideo0[3905]: INF [Got signal 15 (Terminated), exiting]
Mar  4 09:16:07 hoder zmdc[3882]: INF ['zmc -d /dev/video0' exited normally]
Mar  4 09:16:07 hoder zmdc[3882]: INF ['zmc -d /dev/video0' starting at 11/03/04 09:16:07, pid = 3957]
Mar  4 09:16:07 hoder zmdc[3957]: INF ['zmc -d /dev/video0' started at 11/03/04 09:16:07]
Mar  4 09:16:08 hoder zmc_dvideo0[3957]: INF [Debug Level = 0, Debug Log = <none>]
Mar  4 09:16:08 hoder zmc_dvideo0[3957]: INF [Starting Capture]
Mar  4 09:16:08 hoder zmdc[3882]: WAR [Can't find process with command of 'zma -m 13']
Mar  4 09:16:19 hoder zms[3974]: INF [Debug Level = 0, Debug Log = <none>]
Mar  4 09:17:02 hoder /USR/SBIN/CRON[3976]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Mar  4 09:19:28 hoder zmc_dvideo0[3957]: INF [Monitor-13: 1000 - Capturing at 5.00 fps]
vinodtcr
Posts: 18
Joined: Fri Feb 25, 2011 2:37 pm
Location: India

Post by vinodtcr »

@ RobinB

Below is my /etc/modprod.d/bttv.conf

options bttv card=77 tuner=4 radio=0 triton1=0 vsfx=0 autoload=0

Its for bt878 one chip 4 port card. Since you use 8 port card i think you need to change card=77 to card=77,77
ruehlchr
Posts: 12
Joined: Fri Feb 18, 2011 2:14 am
Location: Hong Kong

Post by ruehlchr »

May thats helps you ;-)

detected: GrandTec Multi Capture [card=57], PCI subsystem ID is 4344:4142

You should use
card=57 in your settings not 77.


try it and let us know.

regs.
Chris
If you wondering why your PC is so slow, try Linux instead!
RobinB
Posts: 2
Joined: Thu Mar 03, 2011 3:05 pm

Post by RobinB »

vinodtcr wrote:@ RobinB

Below is my /etc/modprod.d/bttv.conf

options bttv card=77 tuner=4 radio=0 triton1=0 vsfx=0 autoload=0

Its for bt878 one chip 4 port card. Since you use 8 port card i think you need to change card=77 to card=77,77
I had that exact same setup and it didn't work. The card only has one chip so I shouldn't need to add more instances, nevertheless i tried adding up to four instances with no luck.
ruehlchr wrote:May thats helps you ;-)

detected: GrandTec Multi Capture [card=57], PCI subsystem ID is 4344:4142

You should use
card=57 in your settings not 77.


try it and let us know.

regs.
Chris
It defaults to 57 and that's not working that's why I'm trying card=77.
And also if the wiki is right I have 77, the chip and name are a match for 77.

EDIT: I've got picture! Not really sure which of the following that fixed it but now Im running CentOS with pci=noacpi as bootparameter and my bttv.conf looks like this:

Code: Select all

options bttv card=103 tuner=5
EDIT2: Got it up and running under Debian aswell with the options above!
Locked