Page 1 of 1

Kubuntu 10.04, bt878 black screen, zoneminder 1.24.2

Posted: Tue Nov 27, 2012 9:37 pm
by Pure L
Hello all.
I'm doing this in Kubuntu 10.04 with Zoneminder 1.24.2.

I have a bt878 card that's doing everything but showing me video. (It's only showing a black screen.) In short, the text on the zoneminder main page is green and looks like everything should be working. However, after clicking on the monitor, it does give me a frame-rate (12.90 per second) and no errors.....that I can see anyway. So, yes, it's behaving as if it's working just fine it's just that the output is black.

I have a similar card that works just fine in on another box using Ubuntu (not Kubuntu as in the non-working version) 11.04 using the same version of Zoneminder.

I've followed the instructions here:
http://bytebasket.com/index.php?option= ... &Itemid=76
......and created a bttv.conf under modprobe.d with the following text:

Code: Select all

alias char-major-81 bttv
options bttv card=77 tuner=4 radio=0 triton1=0 vsfx=0 autoload=0
For what it's worth, the working card (in the other computer running 11.04 Ubuntu) I created a modprobe.conf under /etc/ with the following text:

Code: Select all

options bttv card=77 tuner=4 radio=0 triton1=0 vsfx=0 autoload=0
I tried^^ that in the non-working one but it didn't work either. Same issue.

Oddly enough, in the working version lshw gives me this (notice the differences in the 'latency' bit):

Code: Select all

sudo lshw | grep bttv
                configuration: driver=bttv latency=132 maxlatency=40 mingnt=16card
In the non-working/black-screen-only version, the same command gets me this:

Code: Select all

aaron@George:~$ sudo lshw |grep bttv
                configuration: driver=bttv latency=66 maxlatency=40 mingnt=16
So perhaps the cards are different? Perhaps there's some glaring error here that I'm not picking-up on?

Here's the dmesg from the non-working one:

Code: Select all

aaron@George:~$ dmesg |grep bttv
[   25.277267] bttv: driver version 0.9.18 loaded
[   25.277272] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   25.278168] bttv: Bt8xx card found (0).
[   25.278190] bttv 0000:05:09.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[   25.278203] bttv0: Bt878 (rev 17) at 0000:05:09.0, irq: 18, latency: 66, mmio: 0xf8500000
[   25.278234] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[   25.278239] IRQ 18/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[   25.278272] bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
[   25.278467] bttv0: tuner absent
[   25.278471] bttv0: the autoload option is obsolete.
[   25.278473] bttv0: use option msp3400, tda7432 or tvaudio to
[   25.278476] bttv0: override which audio module should be used.
[   25.278655] bttv0: registered device video0
[   25.278790] bttv0: registered device vbi0
[   25.278811] bttv0: PLL: 28636363 => 35468950 .. ok
[   67.252255] bttv0: PLL can sleep, using XTAL (28636363).
EDIT: Adding lscpi info:

Code: Select all

aaron@George:/etc/modprobe.d$ lspci -s 05:09 -v
05:09.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
	Flags: bus master, medium devsel, latency 66, IRQ 18
	Memory at f8500000 (32-bit, prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: bttv
	Kernel modules: bttv

aaron@George:/etc/modprobe.d$ zmu -d /dev/video0 -q -v

Code: Select all

Video Device: /dev/video0
General Capabilities
  Driver: bttv
  Card: BT878 video (GrandTec Multi Cap
  Bus: PCI:0000:05:09.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 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 



Thanks for any help!

Re: Kubuntu 10.04, bt878 black screen, zoneminder 1.24.2

Posted: Wed Nov 28, 2012 7:11 pm
by Pure L
Huh.

Interesting.

Here's the output of 'proc/interrupts' on the box with my working card (different hardware and software. This box runs 11.04 Gnome on some sort of HP.)
0: 1869297 XT-PIC-XT-PIC timer
1: 10 XT-PIC-XT-PIC i8042
2: 0 XT-PIC-XT-PIC cascade
5: 61761 XT-PIC-XT-PIC ndiswrapper, eth0
6: 2 XT-PIC-XT-PIC floppy
7: 0 XT-PIC-XT-PIC parport0
8: 0 XT-PIC-XT-PIC rtc0
9: 150 XT-PIC-XT-PIC acpi, Intel 82801AA-ICH
11: 700650 XT-PIC-XT-PIC uhci_hcd:usb1, bttv0
14: 29309 XT-PIC-XT-PIC ata_piix
15: 35092 XT-PIC-XT-PIC ata_piix
NMI: 0 Non-maskable interrupts
LOC: 0 Local timer interrupts
SPU: 0 Spurious interrupts
PMI: 0 Performance monitoring interrupts
IWI: 0 IRQ work interrupts
RES: 0 Rescheduling interrupts
CAL: 0 Function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
THR: 0 Threshold APIC interrupts
MCE: 0 Machine check exceptions


Here's the dmesg output of the same, working version:
[ 28.627742] bttv: driver version 0.9.18 loaded
[ 28.627755] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 28.630940] bttv: Bt8xx card found (0).
[ 28.630989] bttv 0000:01:00.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
[ 28.631014] bttv0: Bt878 (rev 17) at 0000:01:00.0, irq: 11, latency: 132, mmio: 0xf4000000

[ 28.631054] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 28.631115] bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
[ 28.635335] bttv0: tuner absent
[ 28.635348] bttv0: the autoload option is obsolete.
[ 28.635355] bttv0: use option msp3400, tda7432 or tvaudio to
[ 28.635362] bttv0: override which audio module should be used.
[ 28.640235] bttv0: registered device video0
[ 28.648409] bttv0: registered device vbi0
[ 28.648445] bttv0: PLL: 28636363 => 35468950 .. ok
[ 51.237634] bttv0: PLL can sleep, using XTAL (28636363).


Here's the output of proc/interrupts from the non-working version (running 10.04 KDE on ?? hardware):
CPU0
0: 77 IO-APIC-edge timer
1: 16 IO-APIC-edge i8042
3: 1 IO-APIC-edge
4: 2 IO-APIC-edge
6: 5 IO-APIC-edge floppy
7: 0 IO-APIC-edge parport0
8: 1 IO-APIC-edge rtc0
9: 0 IO-APIC-fasteoi acpi
12: 4 IO-APIC-edge i8042
14: 20977 IO-APIC-edge ata_piix
15: 85725 IO-APIC-edge ata_piix
16: 408 IO-APIC-fasteoi uhci_hcd:usb2
17: 710084 IO-APIC-fasteoi Intel ICH5, eth0
18: 766847 IO-APIC-fasteoi ata_piix, uhci_hcd:usb4, bttv0
19: 0 IO-APIC-fasteoi uhci_hcd:usb3
20: 501786 IO-APIC-fasteoi nvidia
23: 2 IO-APIC-fasteoi ehci_hcd:usb1
NMI: 0 Non-maskable interrupts
LOC: 1497325 Local timer interrupts
SPU: 0 Spurious interrupts
PMI: 0 Performance monitoring interrupts
PND: 0 Performance pending work


From looking at each one's respective dmesg output it appears that there's something funky with the IRQ. Check out the non-working IRQ stuff within the dmesg:

aaron@George:~$ dmesg |grep bttv
[ 24.547958] bttv: driver version 0.9.18 loaded
[ 24.547963] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 24.548951] bttv: Bt8xx card found (0).
[ 24.548969] bttv 0000:05:09.0: enabling device (0104 -> 0106)
[ 24.548979] bttv 0000:05:09.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 24.548992] bttv0: Bt878 (rev 17) at 0000:05:09.0, irq: 18, latency: 66, mmio: 0xf8500000
[ 24.549020] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 24.549025] IRQ 18/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 24.549058] bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
[ 24.549251] bttv0: tuner absent
[ 24.549432] bttv0: registered device video0
[ 24.552111] bttv0: registered device vbi0
[ 24.552132] bttv0: PLL: 28636363 => 35468950 .. ok
[ 107.708248] bttv0: PLL can sleep, using XTAL (28636363).


Does it seem like I may be on to something here?

Is ata_pixx, and/or uhci_hcd:usb4 causing some sort of a race condition so that bttv0 isn't getting "picked-up"?

Looks like I'm getting some sort of "success" message with this in the working one, no?
[ 28.630989] bttv 0000:01:00.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11

Not so in the non-working one:
[ 24.548979] bttv 0000:05:09.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18

Notice the "Link[LNKD]" bit in the working one? Where is it in the non-working one?

I wonder if simply upgrading to 11.04 on the non-working box would fix the whole thing?

Or is there a way to manually set IRQ's?

My brain officially hurts now.

Thanks for any advice!

Re: Kubuntu 10.04, bt878 black screen, zoneminder 1.24.2 [SO

Posted: Thu Dec 06, 2012 5:19 am
by Pure L
I ended up installing 11.04 (standard gnome ubuntu.....not kubuntu) then upgrading to 11.10 immediately after and decided to try things out.

....and things work! Same video card and everything. I did reset my BIOS to its default settings but I don't feel like that was the culprit since I did that when trying to install zm on 10.04 kubuntu as well.

Here's my output of /proc/interrupts

Code: Select all

           CPU0
  0:         55   IO-APIC-edge      timer
  1:       7072   IO-APIC-edge      i8042
  6:          3   IO-APIC-edge      floppy
  7:          1   IO-APIC-edge      parport0
  8:          1   IO-APIC-edge      rtc0
  9:          0   IO-APIC-fasteoi   acpi
 12:          5   IO-APIC-edge      i8042
 14:       1038   IO-APIC-edge      ata_piix
 15:       8215   IO-APIC-edge      ata_piix
 16:          0   IO-APIC-fasteoi   uhci_hcd:usb2
 17:      68049   IO-APIC-fasteoi   Intel ICH5, eth0
 18:     125766   IO-APIC-fasteoi   ata_piix, uhci_hcd:usb4, bttv0
 19:      34160   IO-APIC-fasteoi   uhci_hcd:usb3
 20:     178123   IO-APIC-fasteoi   nvidia
 23:          2   IO-APIC-fasteoi   ehci_hcd:usb1
NMI:          0   Non-maskable interrupts
LOC:     653213   Local timer interrupts
SPU:          0   Spurious interrupts
PMI:          0   Performance monitoring interrupts
IWI:          0   IRQ work interrupts
RES:          0   Rescheduling interrupts
CAL:          0   Function call interrupts

.....and dmesg:

Code: Select all

aaron@newbox1110:~$ dmesg |grep bttv
[   12.577029] bttv: driver version 0.9.18 loaded
[   12.577035] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   12.593015] bttv: Bt8xx card found (0).
[   12.593036] bttv 0000:05:09.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[   12.593049] bttv0: Bt878 (rev 17) at 0000:05:09.0, irq: 18, latency: 66, mmio: 0xf8500000
[   12.595256] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[   12.595296] bttv0: gpio: en=00000000, out=00000000 in=00f36fff [init]
[   12.600071] bttv0: tuner absent
[   12.600077] bttv0: the autoload option is obsolete.
[   12.600080] bttv0: use option msp3400, tda7432 or tvaudio to
[   12.600082] bttv0: override which audio module should be used.
[   12.601641] bttv0: registered device video0
[   12.604551] bttv0: registered device vbi0
[   12.604575] bttv0: PLL: 28636363 => 35468950 .
[ 1739.997276] bttv0: PLL can sleep, using XTAL (28636363).

I should note that I'm also using zoneminder 1.24.4 now. Just did an apt-get on it.

Zoneminder is awesome when it works.