Dahili Kamera yerine Harici Webcam Aktifleştirme Ubuntu 12.04

Başlatan Kaanx, 26 Mart 2014 - 22:29:55

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

Kaanx

Merhaba arkadaşalar. ubuntu 12.04 üzerinde kamera ayarlarımı değiştirmek istiyorum. Laptop kullanıcısıyım ve elimde ki laptopun kamerası iyi değil. Bu yüzden harici olarak yüksek çözünürlüklü webcam aldım. Ben bu webcam ile image processing işlemlerini yapıcam. Programlarımı calıstırdıgımda Laptop üzerindeki kamera açılıyor sürekli ben bunu iptal edip yüksek çözünürlüklü webcam i açtırmak istiyorum herseferinde bunu sisteme atayabilirim ? Umarım açık anlatabilmişimdir yardımlarınızı bekliyorum.

empax

Harici kamera bağlı değilken komutların çıktılarını buraya geçiniz.

lsusb

lspci
بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|

Kaanx

Harici kamera bağlı değilken istediğiniz cıktılar

kaan@kaan-Satellite-L655:~$ lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 10f1:1a2a Importek
Bus 002 Device 034: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 002 Device 033: ID 046d:c05f Logitech, Inc.
Bus 002 Device 003: ID 0930:0214 Toshiba Corp.
Bus 002 Device 035: ID 0a05:7211 
Bus 002 Device 036: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory



kaan@kaan-Satellite-L655:~$ lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 05)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV710/M92 [Mobility Radeon HD 4530/4570/545v]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV710/730 HDMI Audio [Radeon HD 4000 series]
02:00.0 Ethernet controller: Qualcomm Atheros AR8152 v1.1 Fast Ethernet (rev c1)
03:00.0 Network controller: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter (rev 01)
3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)




empax

sudo modprobe -r uvcvideo
Yürüttükten sonra her iki kameranızı da deneyip istediğiniz sonuca ulaşıp ulaşamadığımıza bakalım.


1- Eğer işler yolunda gitmezse tekrar etkinleştirmek için;
sudo modprobe uvcvideo

2- Eğer işler yolunda giderse kalıcı olması için;
sudo echo "blacklist uvcvideo" >> /etc/modprobe.d/blacklist.conf

بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|

Kaanx

Blackliste dahili kamerayı ekledim fakat harici kamerayı suan aktif edemiyorum sisteme attach edemdim bir türlü

harici kamera baglıyken cıktılar

kaan@kaan-Satellite-L655:~$ lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 10f1:1a2a Importek
Bus 002 Device 003: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 002 Device 004: ID 046d:c05f Logitech, Inc.
Bus 002 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 002 Device 006: ID 0930:0214 Toshiba Corp.
Bus 002 Device 007: ID 0a05:7211 
Bus 002 Device 008: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory



kaan@kaan-Satellite-L655:~$ lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 05)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV710/M92 [Mobility Radeon HD 4530/4570/545v]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RV710/730 HDMI Audio [Radeon HD 4000 series]
02:00.0 Ethernet controller: Qualcomm Atheros AR8152 v1.1 Fast Ethernet (rev c1)
03:00.0 Network controller: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter (rev 01)
3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)



kaan@kaan-Satellite-L655:~$ lsmod
Module                  Size  Used by
uvcvideo               78117  0
videobuf2_core         33025  1 uvcvideo
videodev              125126  2 uvcvideo,videobuf2_core
videobuf2_vmalloc      12861  1 uvcvideo
videobuf2_memops       13405  1 videobuf2_vmalloc
vesafb                 13846  1
parport_pc             32867  0
ppdev                  17114  0
bnep                   18240  2
rfcomm                 47562  12
snd_hda_codec_hdmi     32532  1
snd_hda_codec_conexant    62363  1
coretemp               13642  0
snd_hda_intel          34063  4
snd_hda_codec         135141  3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel
snd_usb_audio         136469  1
snd_usbmidi_lib        29478  1 snd_usb_audio
arc4                   12530  2
snd_hwdep              17765  2 snd_hda_codec,snd_usb_audio
snd_pcm                97523  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_usb_audio
snd_seq_midi           13325  0
snd_rawmidi            30750  2 snd_usbmidi_lib,snd_seq_midi
snd_seq_midi_event     14900  1 snd_seq_midi
snd_seq                61931  2 snd_seq_midi,snd_seq_midi_event
kvm_intel             137888  0
snd_timer              29990  2 snd_pcm,snd_seq
brcmsmac              541775  0
joydev                 17694  0
mac80211              555318  1 brcmsmac
kvm                   422160  1 kvm_intel
btusb                  22432  0
hid_generic            12541  0
brcmutil               14756  1 brcmsmac
snd_seq_device         14498  3 snd_seq_midi,snd_rawmidi,snd_seq
usbhid                 47259  0
bluetooth             212001  24 bnep,rfcomm,btusb
hid                   105241  2 hid_generic,usbhid
cfg80211              208382  2 brcmsmac,mac80211
snd                    83674  22 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_usbmidi_lib,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
fglrx                3276073  143
soundcore              15092  1 snd
cordic                 12575  1 brcmsmac
microcode              23030  0
psmouse               102541  0
snd_page_alloc         18573  2 snd_hda_intel,snd_pcm
toshiba_acpi           18735  0
serio_raw              13216  0
sparse_keymap          13891  1 toshiba_acpi
mei                    41410  0
mac_hid                13254  0
toshiba_bluetooth      12808  0
video                  19653  0
amd_iommu_v2           19228  1 fglrx
wmi                    19257  1 toshiba_acpi
bcma                   35762  1 brcmsmac
lpc_ich                17145  0
binfmt_misc            17541  1
lp                     17800  0
parport                46563  3 parport_pc,ppdev,lp
ahci                   25869  2
atl1c                  42092  0
libahci                31434  1 ahci


empax

sudo -H gedit /etc/modprobe.d/blacklist.conf
en alttaki  "blacklist uvcvideo" satırını silip kaydedin. Bilgisayarı yeniden başlatırsanız kameralar tekrar çalışmaya başlayacaktır.
Biraz daha bakınmak gerek, uvcvideo yerine sadece dahili kameranın sürücü adını yazmak gerek Importek için.
بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|

Kaanx

Hocam olay harici default olarak göstermekte artık işte dahili iptal oldu :)

empax

Şuan harici kamera çalışmıyor mu anlayamadım?

Çalışmıyorsa alttaki komutu yürütün,
sudo modprobe uvcvideo
ve alttaki komutun çıktısını buraya aktarın.
cat /etc/modprobe.d/blacklist.conf
بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|

Kaanx

sudo modprobe uvcvideo
bu komut uverirrsem eger dahili kamera tekrar aktif oluyor hocam harici ye geçmiyor. malesef

kaan@kaan-Satellite-L655:~$ cat /etc/modprobe.d/blacklist.conf
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac

blacklist uvcvideo

empax

En alt satırdaki blacklist uvcvideo satırı silmemişsiniz.

sudo -H gedit /etc/modprobe.d/blacklist.conf
Açılan dosyada en alttaki blacklist uvcvideo satırını silin dosyayı kaydedin ve sistemi yeniden başlatın. Harici kamera tekrar çalışacaktır.

Dahili kamerayı iptal etmek için biraz daha araştırmam gerekiyor. :)
بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|

Kaanx

Hocam suan tam aksine dahili iptal harici cheese programı ile çalısıyor :)

empax

Nasıl yani çözüldü mü demek istiyorsunuz?

lsmod çıktısını da aktarın bakalım devre dışı bırakacağımız kameranın sürücü adını bununla yakalayabilecek miyiz?
Ayrıca sürücü adını öğrenmenin daha kısa yolunu bilen bir arkadaş varsa bildirirse sevinirim. :)
بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|

heartsmagic

Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

Kaanx

Hocam gstreamer-properties ile terminalden girdim ve ön tanımlı olarak değiştirdim kamerayı. Yazdıgım programlarda device ID kullanarak tanımlıyorum suan kullanabiliyorum.

empax

@heartsmagic,
'direver' diye bir tanım veriyor ama yine de istenileni karşılamıyor.
Kameram için normalde m5602 şeklinde blacklist dosyasına girdi yapıyorum, ama sizin verdiğiniz kod 'driver=Ali' diye bir değer döndürüyor.

@Kaanx,
O da farklı bir çözüm yolu olmuş. lsmod çıktısını verirseniz belki son bir deneme daha yapabiliriz. :)
بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|

heartsmagic

@empax, bende doğru modülü veriyor uvcvideo olarak, tabi kamera için konuşuyorum. Elle değişik denetleme yöntemleri de var:
http://unix.stackexchange.com/questions/60078/find-out-which-modules-are-asociated-with-a-usb-device

Buradaki üçüncü yöntem oldukça düz bir yöntem :) O şekilde de baktım, doğru sonuç veriyor bende.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

empax

@heartsmagic, sanırım süper(!) ötesi ve Ubuntu 9.10 sürümünden sonra hiç kullanamadığım kameramla alakalı bir durum. Bağlantıdaki yönetmle yine gspca_m5602 değerini alamadım, zaten bu değeri internette bulmuştum. :) Kendim çıkaramazdım, ancak bu konuyu araştırırken sadece lsmod komutunun dolambaçlı da olsa bu değeri verdiğini gördüm.
Şöyle ki;

videodev               86588  2 gspca_main,uvcvideo
gspca_main             27654  1 gspca_m5602


Emin değilim, belki blacklist.conf dosyasında blacklist gspca_m5602 yerine blacklist gspca_main yazsam aynı kapıya çıkacak ama çokta önemli değil. :)
Neyse daha fazla kafanızı ağrıtmayayım. :)
بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|

Kaanx

Hocam lsmod veriyorum :)

kaan@kaan-Satellite-L655:~/Masaüstü/OpenCV/OpenCvC++/Eclipse/OpenCVProject/Denem
eAlanı$ lsmod
Module                  Size  Used by
vesafb                 13846  1
parport_pc             32867  0
ppdev                  17114  0
rfcomm                 47562  0
bnep                   18240  2
binfmt_misc            17541  1
coretemp               13642  0
kvm_intel             137888  0
arc4                   12530  2
kvm                   422160  1 kvm_intel
joydev                 17694  0
hid_generic            12541  0
brcmsmac              541775  0
mac80211              555318  1 brcmsmac
brcmutil               14756  1 brcmsmac
cfg80211              208382  2 brcmsmac,mac80211
cordic                 12575  1 brcmsmac
snd_hda_codec_hdmi     32532  1
snd_hda_codec_conexant    62363  1
snd_usb_audio         136469  1
snd_usbmidi_lib        29478  1 snd_usb_audio
microcode              23030  0
snd_hda_intel          34063  4
snd_hda_codec         135141  3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel
snd_hwdep              17765  2 snd_usb_audio,snd_hda_codec
snd_pcm                97523  4 snd_hda_codec_hdmi,snd_usb_audio,snd_hda_intel,snd_hda_codec
usbhid                 47259  0
hid                   105241  2 hid_generic,usbhid
psmouse               102541  0
snd_seq_midi           13325  0
btusb                  22432  0
bluetooth             212001  14 rfcomm,bnep,btusb
snd_rawmidi            30750  2 snd_usbmidi_lib,snd_seq_midi
snd_seq_midi_event     14900  1 snd_seq_midi
serio_raw              13216  0
video                  19653  0
uvcvideo               78117  0
videobuf2_core         33025  1 uvcvideo
snd_seq                61931  2 snd_seq_midi,snd_seq_midi_event
toshiba_bluetooth      12808  0
videodev              125126  2 uvcvideo,videobuf2_core
videobuf2_vmalloc      12861  1 uvcvideo
videobuf2_memops       13405  1 videobuf2_vmalloc
snd_timer              29990  2 snd_pcm,snd_seq
toshiba_acpi           18735  0
lpc_ich                17145  0
sparse_keymap          13891  1 toshiba_acpi
snd_seq_device         14498  3 snd_seq_midi,snd_rawmidi,snd_seq
fglrx                3276073  149
wmi                    19257  1 toshiba_acpi
mac_hid                13254  0
snd                    83674  22 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_usb_audio,snd_usbmidi_lib,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
bcma                   35762  1 brcmsmac
soundcore              15092  1 snd
snd_page_alloc         18573  2 snd_hda_intel,snd_pcm
amd_iommu_v2           19228  1 fglrx
mei                    41410  0
lp                     17800  0
parport                46563  3 parport_pc,ppdev,lp
ahci                   25869  2
libahci                31434  1 ahci
atl1c                  42092  0

empax

sudo echo "blacklist videobuf2_core" >> /etc/modprobe.d/blacklist.conf
Yaptıktan sonra bilgisayarı yeniden başlatın. Eğer işler bu sefer yolunda giderse dahili kamerayı sistem hiç görmeyecek.

Son bir kontrol için alttaki çıktıları da buraya aktarırsınız.
cat /etc/modprobe.d/blacklist.conf
lsusb
بسم الله الرحمن الرحيم
|ACEMİLER İÇİN İLK DURAK|Çözüldü|Kod etiketi|