KMC-4400R not recognized. Try on 3 different linux distro

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
robyperpy
Posts: 5
Joined: Fri Feb 04, 2011 7:17 am

KMC-4400R not recognized. Try on 3 different linux distro

Post by robyperpy »

Hi, after 4 days and after search and read many many topics in this forum i NOT FIND my solutions. Please Help me.

I install new Ubuntu 10.0.4 and zoneminder 1.24.2 correctly (php, apache ,...).
I buy an 4chip card from Camsecure (model is KMC-4400R) but my system can NOT recognized.

Try ZM Live distribution, ZMLarch Live distribution but both not recognized, too.

video1@PCVIDEO1:~$ dmesg | grep bttv
[ 12.418067] bttv: driver version 0.9.18 loaded
[ 12.418077] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 12.419549] bttv: Bt8xx card found (0).
[ 12.419621] bttv 0000:03:0c.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 12.419643] bttv0: Bt878 (rev 17) at 0000:03:0c.0, irq: 18, latency: 66, mmio: 0x40300000
[ 12.419683] bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 12.419691] IRQ 18/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 12.419765] bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 12.424780] bttv0: tuner type unset
[ 12.425957] bttv0: registered device video0
[ 12.426298] bttv0: registered device vbi0
[ 12.435478] bttv: Bt8xx card found (1).
[ 12.435525] bttv 0000:03:0d.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 12.435548] bttv1: Bt878 (rev 17) at 0000:03:0d.0, irq: 19, latency: 66, mmio: 0x40500000
[ 12.435587] bttv1: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 12.435595] IRQ 19/bttv1: IRQF_DISABLED is not guaranteed on shared IRQs
[ 12.435649] bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 18.930050] bttv1: tuner type unset
[ 18.930638] bttv1: registered device video1
[ 18.931011] bttv1: registered device vbi1
[ 51.280084] bttv: Bt8xx card found (2).
[ 51.280130] bttv 0000:03:0e.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 51.280153] bttv2: Bt878 (rev 17) at 0000:03:0e.0, irq: 16, latency: 66, mmio: 0x40700000
[ 51.280208] bttv2: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 51.280217] IRQ 16/bttv2: IRQF_DISABLED is not guaranteed on shared IRQs
[ 51.280272] bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 57.748099] bttv2: tuner type unset
[ 57.748796] bttv2: registered device video2
[ 57.749182] bttv2: registered device vbi2
[ 89.948579] bttv: Bt8xx card found (3).
[ 89.948625] bttv 0000:03:0f.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[ 89.948649] bttv3: Bt878 (rev 17) at 0000:03:0f.0, irq: 17, latency: 66, mmio: 0x40900000
[ 89.948708] bttv3: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 89.948716] IRQ 17/bttv3: IRQF_DISABLED is not guaranteed on shared IRQs
[ 89.948772] bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 96.380041] bttv3: tuner type unset
[ 96.380612] bttv3: registered device video3
[ 96.380963] bttv3: registered device vbi3
video1@PCVIDEO1:~$ lsmod
Module Size Used by
binfmt_misc 6587 1
snd_intel8x0 25588 2
snd_ac97_codec 100646 1 snd_intel8x0
ac97_bus 1002 1 snd_ac97_codec
snd_pcm_oss 35308 0
snd_mixer_oss 13746 1 snd_pcm_oss
snd_pcm 70662 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
fbcon 35102 71
tileblit 2031 1 fbcon
font 7557 1 fbcon
snd_seq_dummy 1338 0
bitblit 4707 1 fbcon
softcursor 1189 1 bitblit
snd_seq_oss 26726 0
vga16fb 11385 0
snd_seq_midi 4557 0
vgastate 8961 1 vga16fb
snd_rawmidi 19056 1 snd_seq_midi
snd_seq_midi_event 6003 2 snd_seq_oss,snd_seq_midi
snd_seq 47263 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 19098 2 snd_pcm,snd_seq
snd_seq_device 5700 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
nouveau 467048 2
snd 54148 14 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
bttv 111669 1
v4l2_common 15431 1 bttv
videodev 34361 3 bttv,v4l2_common
v4l1_compat 13251 1 videodev
ir_common 38875 1 bttv
ttm 49943 1 nouveau
videobuf_dma_sg 10782 1 bttv
videobuf_core 16356 2 bttv,videobuf_dma_sg
soundcore 6620 1 snd
btcx_risc 3624 1 bttv
tveeprom 11102 1 bttv
psmouse 63245 0
drm_kms_helper 29297 1 nouveau
ppdev 5259 0
intel_agp 24177 1
lp 7028 0
drm 162471 4 nouveau,ttm,drm_kms_helper
parport_pc 25962 1
i2c_algo_bit 5028 2 nouveau,bttv
snd_page_alloc 7076 2 snd_intel8x0,snd_pcm
agpgart 31724 3 ttm,intel_agp,drm
shpchp 28820 0
serio_raw 3978 0
parport 32635 3 ppdev,lp,parport_pc
joydev 8708 0
hid_logitech 7388 0
ff_memless 4093 1 hid_logitech
usbhid 36110 1 hid_logitech
hid 67032 2 hid_logitech,usbhid
8139too 18545 0
mii 4381 1 8139too
floppy 53016 0
video1@PCVIDEO1:~$ lspci -v
00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02)
Flags: bus master, fast devsel, latency 0
Memory at 48000000 (32-bit, prefetchable)
Capabilities: <access>
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp

00:01.0 PCI bridge: Intel Corporation 82815 815 Chipset AGP Bridge (rev 02)
Flags: bus master, 66MHz, fast devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
Memory behind bridge: 41000000-421fffff
Prefetchable memory behind bridge: 44000000-45ffffff
Kernel modules: shpchp

00:1e.0 PCI bridge: Intel Corporation 82801AA PCI Bridge (rev 02)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=03, sec-latency=64
I/O behind bridge: 00001000-00001fff
Memory behind bridge: 40000000-402fffff
Prefetchable memory behind bridge: 40300000-40afffff
Kernel modules: shpchp

00:1f.0 ISA bridge: Intel Corporation 82801AA ISA Bridge (LPC) (rev 02)
Flags: bus master, medium devsel, latency 0
Kernel modules: iTCO_wdt, intel-rng

00:1f.1 IDE interface: Intel Corporation 82801AA IDE Controller (rev 02) (prog-if 80 [Master])
Subsystem: Intel Corporation 82801AA IDE Controller
Flags: bus master, medium devsel, latency 0
[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled]
[virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled]
[virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled]
[virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled]
I/O ports at 2460
Kernel driver in use: ata_piix

00:1f.2 USB Controller: Intel Corporation 82801AA USB Controller (rev 02)
Subsystem: Intel Corporation 82801AA USB Controller
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 2440
Kernel driver in use: uhci_hcd

00:1f.5 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 02)
Subsystem: Compaq Computer Corporation Device b1bf
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at 2000
I/O ports at 2400
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0

01:00.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15)
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
Memory at 41000000 (32-bit, non-prefetchable)
Memory at 44000000 (32-bit, prefetchable) [size=32M]
[virtual] Expansion ROM at 42000000 [disabled] [size=64K]
Capabilities: <access>
Kernel driver in use: nouveau
Kernel modules: nvidiafb, rivafb, nouveau

02:08.0 Ethernet controller: Accton Technology Corporation SMC2-1211TX (rev 10)
Subsystem: Accton Technology Corporation SMC2-1211TX
Flags: bus master, medium devsel, latency 66, IRQ 16
I/O ports at 1000 [size=256]
Memory at 40000000 (32-bit, non-prefetchable) [size=256]
[virtual] Expansion ROM at 40020000 [disabled] [size=128K]
Capabilities: <access>
Kernel driver in use: 8139too
Kernel modules: 8139too

02:0a.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) (rev 11)
Flags: bus master, medium devsel, latency 64
Bus: primary=02, secondary=03, subordinate=03, sec-latency=64
Prefetchable memory behind bridge: 40300000-40afffff
Capabilities: <access>
Kernel modules: shpchp

03:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 66, IRQ 18
Memory at 40300000 (32-bit, prefetchable) [size=4K]
Capabilities: <access>
Kernel driver in use: bttv
Kernel modules: bttv

03:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 66, IRQ 5
Memory at 40400000 (32-bit, prefetchable) [size=4K]
Capabilities: <access>

03:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 66, IRQ 19
Memory at 40500000 (32-bit, prefetchable) [size=4K]
Capabilities: <access>
Kernel driver in use: bttv
Kernel modules: bttv

03:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 66, IRQ 9
Memory at 40600000 (32-bit, prefetchable) [size=4K]
Capabilities: <access>

03:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 66, IRQ 16
Memory at 40700000 (32-bit, prefetchable) [size=4K]
Capabilities: <access>
Kernel driver in use: bttv
Kernel modules: bttv

03:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 66, IRQ 10
Memory at 40800000 (32-bit, prefetchable) [size=4K]
Capabilities: <access>

03:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 66, IRQ 17
Memory at 40900000 (32-bit, prefetchable) [size=4K]
Capabilities: <access>
Kernel driver in use: bttv
Kernel modules: bttv

03:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 66, IRQ 11
Memory at 40a00000 (32-bit, prefetchable) [size=4K]
Capabilities: <access>


video1@PCVIDEO1:~$ modinfo bttv
filename: /lib/modules/2.6.32-21-generic/kernel/drivers/media/video/bt8xx/bttv.ko
license: GPL
author: Ralph Metzler & Marcus Metzler & Gerd Knorr
description: bttv - v4l/v4l2 driver module for bt848/878 based cards
srcversion: 18644731C56BA62F65428E4
alias: pci:v0000109Ed0000036Fsv*sd*bc*sc*i*
alias: pci:v0000109Ed0000036Esv*sd*bc*sc*i*
alias: pci:v0000109Ed00000351sv*sd*bc*sc*i*
alias: pci:v0000109Ed00000350sv*sd*bc*sc*i*
depends: videobuf-core,videobuf-dma-sg,ir-common,videodev,tveeprom,v4l2-common,btcx-risc,i2c-algo-bit
vermagic: 2.6.32-21-generic SMP mod_unload modversions 586
parm: ir_debug:int
parm: repeat_delay:int
parm: repeat_period:int
parm: ir_rc5_remote_gap:int
parm: ir_rc5_key_timeout:int
parm: i2c_debug:int
parm: i2c_hw:configure i2c debug level (int)
parm: i2c_scan:scan i2c bus at insmod time (int)
parm: i2c_udelay:soft i2c delay at insmod time, in usecs (should be 5 or higher). Lower value means higher bus speed. (int)
parm: vbibufs:number of vbi buffers, range 2-32, default 4 (int)
parm: vbi_debug:vbi code debug messages, default is 0 (no) (int)
parm: gpiomask:int
parm: audioall:int
parm: svhs:array of int
parm: remote:array of int
parm: audiomux:array of int
parm: triton1:set ETBF pci config bit [enable bug compatibility for triton1 + others] (int)
parm: vsfx:set VSFX pci config bit [yet another chipset flaw workaround] (int)
parm: latency:pci latency timer (int)
parm: card:specify TV/grabber card model, see CARDLIST file for a list (array of int)
parm: pll:specify installed crystal (0=none, 28=28 MHz, 35=35 MHz) (array of int)
parm: tuner:specify installed tuner type (array of int)
parm: autoload:obsolete option, please do not use anymore (int)
parm: audiodev:specify audio device:
-1 = no audio
0 = autodetect (default)
1 = msp3400
2 = tda7432
3 = tvaudio (array of int)
parm: saa6588:if 1, then load the saa6588 RDS module, default (0) is to use the card definition.
parm: no_overlay:allow override overlay default (0 disables, 1 enables) [some VIA/SIS chipsets are known to have problem with overlay] (int)
parm: debug_latency:int
parm: fdsr:int
parm: v4l2:int
parm: combfilter:int
parm: lumafilter:int
parm: radio:The TV card supports radio, default is 0 (no) (array of int)
parm: bigendian:byte order of the framebuffer, default is native endian (int)
parm: bttv_verbose:verbose startup messages, default is 1 (yes) (int)
parm: bttv_gpio:log gpio changes, default is 0 (no) (int)
parm: bttv_debug:debug messages, default is 0 (no) (int)
parm: irq_debug:irq handler debug messages, default is 0 (no) (int)
parm: gbuffers:number of capture buffers. range 2-32, default 8 (int)
parm: gbufsize:size of the capture buffers, default is 0x208000 (int)
parm: reset_crop:reset cropping parameters at open(), default is 1 (yes) for compatibility with older applications (int)
parm: automute:mute audio on bad/missing video signal, default is 1 (yes) (int)
parm: chroma_agc:enables the AGC of chroma signal, default is 0 (no) (int)
parm: adc_crush:enables the luminance ADC crush, default is 1 (yes) (int)
parm: whitecrush_upper:sets the white crush upper value, default is 207 (int)
parm: whitecrush_lower:sets the white crush lower value, default is 127 (int)
parm: vcr_hack:enables the VCR hack (improves synch on poor VCR tapes), default is 0 (no) (int)
parm: irq_iswitch:switch inputs in irq handler (int)
parm: uv_ratio:ratio between u and v gains, default is 50 (int)
parm: full_luma_range:use the full luma range, default is 0 (no) (int)
parm: coring:set the luma coring level, default is 0 (no) (int)
parm: video_nr:video device numbers (array of int)
parm: vbi_nr:vbi device numbers (array of int)
parm: radio_nr:radio device numbers (array of int)


video1@PCVIDEO1:~$ ipcs

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 163840 video1 600 393216 2 dest
0x00000000 196609 video1 600 393216 2 dest
0x00000000 229378 video1 600 393216 2 dest
0x00000000 262147 video1 600 393216 2 dest
0x00000000 294917 video1 600 393216 2 dest
0x00000000 327686 video1 600 393216 2 dest
0x00000000 360455 video1 600 393216 2 dest
0x00000000 393224 video1 600 393216 2 dest
0x00000000 425993 video1 600 393216 2 dest
0x00000000 458762 video1 600 393216 2 dest
0x00000000 491531 video1 600 393216 2 dest
0x00000000 753676 video1 600 393216 2 dest
0x00000000 557069 video1 600 393216 2 dest
0x00000000 589838 video1 600 393216 2 dest
0x00000000 688143 video1 600 393216 2 dest

------ Semaphore Arrays --------
key semid owner perms nsems

------ Message Queues --------
key msqid owner perms used-bytes messages


Please, help me.
joelk
Posts: 5
Joined: Wed Jan 26, 2011 11:54 pm

Post by joelk »

I have this card running on Linux Mint 9 LXDE version (based on ubuntu 10.04). My output in this thread is similar to yours

http://www.zoneminder.com/forums/viewtopic.php?t=17116

I followed the directions here

http://www.zoneminder.com/wiki/index.ph ... 29_Desktop

with the exception of the kernel.shmall and kernel.shmmax.

I calculated them based on the amount of memory I have as discussed in this thread

http://www.zoneminder.com/forums/viewto ... emory+tips

I added a bttv.conf file to the /etc/modprobe.d/ directory with the options listed here

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

I had some permission problems for /dev/video0-3 after I would reboot. I added

@zmfix -a

to the end of the file /etc/xdg/lxsession/Mint/autostart. Now I am up and running.
robyperpy
Posts: 5
Joined: Fri Feb 04, 2011 7:17 am

Post by robyperpy »

i add
kernel.shmall = 134217728 kernel.shmmax = 134217728
an bottom of file /etc/sysctl.conf and save

are correct that value (i have 384MB of ram)?


i already have the file bttv.conf in folder /etc/modprobe.d/ and in this file i wrote:
options bttv gbuffers=16 card=133,132,133,133

save and restart my PC but not work, same errors *** UNKNOWN/GENERIC ***

so, i edit the bttv.conf and i wrote:
alias char-major-81 bttv
options bttv gbuffers=16 card=133,132,133,133 chroma_agc=1

save and restart my PC but if in terminal i write xawtv -hw show me
/dev/video0 permission denied
/dev/video1 permission denied
/dev/video2 permission denied
/dev/video3 permission denied

after 2 minutes if i write xawtv -hw show
same errors *** UNKNOWN/GENERIC ***

i not find file /etc/xdg/lxsession/Mint/autostart so i can add @zmfix -a
i find only /etc/xdg/ and there are some folder called autostart, desktop-couch, menus, ubuntuone

where is the mystake?
joelk
Posts: 5
Joined: Wed Jan 26, 2011 11:54 pm

Post by joelk »

If you don't have /etc/xdg/lxsession/Mint/autostart then I would guess you are using a distro other than Mint 9 LXDE.

It looks like you have permission problems. You can try

sudo chmod 666 /dev/video*

Then try xawtv.

If you are still having problems you may want to download Linux Mint 9 LXDE and follow the steps in the links in my earlier post.
Post Reply