[Ubuntu-BR] Configurar a placa de captura tv
Jussara&Afonso
jussaravargas em ig.com.br
Domingo Dezembro 21 21:53:37 UTC 2008
Oi Xisberto
No seu comentario vc menciomou em criar os link e adicionar o usuário no grupo video,
mas mesmo realizando o comando:
sudo gpasswd -a afonso video
e criando os links /dev/radio, /dev/video
não consigo ver o vídeo, (refere que eu tenho que mudar a configuração do V4L2
O tuner do radio mostra a procura das estações, mas não me permite mudar a fonte de mixagem (fica travado no dig1).
Atualmente meu sistema se encontra assim:
$ uname -a
Linux Cerberus 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 GNU/Linux
$ groups afonso
afonso adm dialout cdrom video plugdev lpadmin admin sambashare
$lspci -v
05:02.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 18
Memory at f8ffe000 (32-bit, prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: bttv
Kernel modules: bttv
05:02.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Flags: bus master, medium devsel, latency 64, IRQ 5
Memory at f8fff000 (32-bit, prefetchable) [size=4K]
Capabilities: <access denied>
$cat /etc/modprobe.d/bttv
options bttv card=37 tuner=2 radio=1 remote=1
cat /etc/modprobe.d/options
# Enable double-buffering so gstreamer et. al. work
options quickcam compatible=2
# Default hostap to managed mode
options hostap_pci iw_mode=2
options hostap_cs iw_mode=2
# Stop auto-association.
# LP: #264104
options ipw2200 associate=0
# XXX: Ignore HPA by default. Needs to be revisted in jaunty
options libata ignore_hpa=1
#PixelView
options bttv card=37 tuner=2 radio=1 remote=1
$cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
rmmod bttv
rmmod tuner
modprobe -v card=37 tuner=2 radio=1 remote=1
exit 0
$lsmod
Module Size Used by
nls_iso8859_1 13568 1
nls_cp437 15232 1
vfat 21120 1
fat 64824 1 vfat
isofs 44072 0
udf 93480 0
crc_itu_t 10496 1 udf
xt_limit 11268 8
xt_tcpudp 11776 8
ipt_LOG 14468 8
ipt_MASQUERADE 11520 0
xt_DSCP 12032 0
ipt_REJECT 11776 1
nf_conntrack_irc 14776 0
nf_conntrack_ftp 17720 0
xt_state 10752 6
af_packet 29568 4
binfmt_misc 18700 1
rfcomm 51104 0
bridge 64544 0
stp 11268 1 bridge
bnep 23168 2
sco 20612 2
l2cap 33280 6 rfcomm,bnep
bluetooth 70820 6 rfcomm,bnep,sco,l2cap
ppdev 16904 0
ipv6 314312 18
acpi_cpufreq 16400 1
cpufreq_powersave 10368 0
cpufreq_stats 14468 0
cpufreq_conservative 16392 0
cpufreq_userspace 12420 0
cpufreq_ondemand 16400 1
freq_table 13568 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
wmi 15808 0
container 12288 0
pci_slot 13704 0
sbs 22288 0
sbshc 14592 1 sbs
video 28948 0
output 11776 1 video
battery 21128 0
microcode 21432 0
ac 13448 0
sbp2 32652 0
parport_pc 44200 0
lp 19588 0
parport 50096 3 ppdev,parport_pc,lp
arc4 10368 2
ecb 11520 2
crypto_blkcipher 27780 1 ecb
snd_hda_intel 489264 4
snd_pcm_oss 52608 0
snd_mixer_oss 25088 1 snd_pcm_oss
snd_pcm 99208 2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy 11524 0
snd_seq_oss 42368 0
tuner_simple 23700 0
tuner_types 25728 1 tuner_simple
rtl8187 53888 0
snd_seq_midi 15872 0
snd_rawmidi 34176 1 snd_seq_midi
snd_seq_midi_event 16768 2 snd_seq_oss,snd_seq_midi
mac80211 253440 1 rtl8187
snd_seq 67168 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
bttv 212180 3
eeprom_93cx6 10752 1 rtl8187
ir_common 51716 1 bttv
compat_ioctl32 18176 1 bttv
videodev 46720 5 bttv,compat_ioctl32
v4l1_compat 24580 1 videodev
snd_timer 34320 2 snd_pcm,snd_seq
i2c_algo_bit 15364 1 bttv
snd_seq_device 16404 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
cfg80211 37136 2 rtl8187,mac80211
v4l2_common 21888 1 bttv
snd 79432 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
usblp 22784 0
videobuf_dma_sg 22788 1 bttv
videobuf_core 29956 2 bttv,videobuf_dma_sg
btcx_risc 13448 1 bttv
tveeprom 23428 1 bttv
iTCO_wdt 21072 0
soundcore 16800 1 snd
evdev 20512 6
pcspkr 11136 0
snd_page_alloc 17680 2 snd_hda_intel,snd_pcm
iTCO_vendor_support 12420 1 iTCO_wdt
nvidia 7804864 36
i2c_core 36128 6 tuner_simple,bttv,i2c_algo_bit,v4l2_common,tveeprom,nvidia
button 15904 0
intel_agp 39280 0
shpchp 42140 0
pci_hotplug 39472 1 shpchp
iptable_nat 14480 0
nf_nat 29080 2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4 24856 9 iptable_nat,nf_nat
nf_conntrack 84512 7 ipt_MASQUERADE,nf_conntrack_irc,nf_conntrack_ftp,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
iptable_mangle 11520 0
iptable_filter 11520 1
ip_tables 28176 3 iptable_nat,iptable_mangle,iptable_filter
x_tables 31752 9 xt_limit,xt_tcpudp,ipt_LOG,ipt_MASQUERADE,xt_DSCP,ipt_REJECT,xt_state,iptable_nat,ip_tables
ext3 150544 2
jbd 66472 1 ext3
mbcache 17924 1 ext3
sr_mod 24644 0
cdrom 47784 1 sr_mod
sd_mod 45864 7
crc_t10dif 10240 1 sd_mod
pata_acpi 13568 0
ata_generic 14212 0
sg 45408 2
usbhid 39776 0
hid 59072 1 usbhid
usb_storage 92864 1
libusual 31784 1 usb_storage
ohci1394 41524 0
ata_piix 29444 6
ieee1394 110592 2 sbp2,ohci1394
r8169 40196 0
pata_jmicron 12288 0
sky2 61444 0
ahci 43148 0
ehci_hcd 48908 0
libata 200160 5 pata_acpi,ata_generic,ata_piix,pata_jmicron,ahci
scsi_mod 183160 6 sbp2,sr_mod,sd_mod,sg,usb_storage,libata
dock 18464 1 libata
uhci_hcd 34336 0
usbcore 175376 8 rtl8187,usblp,usbhid,usb_storage,libusual,ehci_hcd,uhci_hcd
thermal 27424 0
processor 47800 2 acpi_cpufreq,thermal
fan 13576 0
fbcon 51200 0
tileblit 11264 1 fbcon
font 17152 1 fbcon
bitblit 14592 1 fbcon
softcursor 10496 1 bitblit
fuse 68288 5
$ ls -l /dev/rad*
lrwxrwxrwx 1 root root 11 2008-12-21 19:35 /dev/radio -> /dev/radio0
crw-rw----+ 1 root video 81, 64 2008-12-21 18:25 /dev/radio0
$ls -l /dev/vid*
lrwxrwxrwx 1 root root 11 2008-12-21 19:35 /dev/video -> /dev/video0
crw-rw----+ 1 root video 81, 0 2008-12-21 18:26 /dev/video0
$ls -l /dev/vbi*
lrwxrwxrwx 1 root root 9 2008-12-21 19:36 /dev/vbi -> /dev/vbi0
crw-rw----+ 1 root video 81, 224 2008-12-21 18:25 /dev/vbi0
#getfacl /dev/video0
getfacl: Removing leading '/' from absolute path names
# file: dev/video0
# owner: root
# group: video
user::rw-
user:afonso:rw-
group::rw-
mask::rw-
other::---
#getfacl /dev/radio0
getfacl: Removing leading '/' from absolute path names
# file: dev/radio0
# owner: root
# group: video
user::rw-
user:afonso:rw-
group::rw-
mask::rw-
other::---
#getfacl /dev/vbi0
getfacl: Removing leading '/' from absolute path names
# file: dev/vbi0
# owner: root
# group: video
user::rw-
user:afonso:rw-
group::rw-
mask::rw-
other::---
Conforme já tinha dito, o sistema reconhece a placa através do /etc/modprobe.d/bttv, optios e rc.local, não cria os link /dev/radio e/dev/video e não insere o usuario no grupo video, não permite acesso ao video e radio da placa.
Onde será que esta o erro de configuração?
desde já agradeço as respostas e espero estar sendo util para melhorar o sistema.
More information about the ubuntu-br
mailing list