LinuxForum.Fans
Тема

Web-камера Trust WB-3250p: как заставить ее рабтать в linux?

Автор: maxm 11 сообщений 5705 просмотров
#170925

Добрый день, уважаемые форумчане!
Потеряв всякую надежду на самостоятельное решение проблемы функционирования камеры на дистрибутиве Debian 6.0, надеюсь на помощь сообщества!
Я изучил на различных форумах решения аналогичных вопросов (отличалась модель камеры), пробовал применять эти решения, но мои попытки оказались тщетны...
Описание проблемы:
Камера распознается системой как Microdia PC Camera (SN9C120) с Vendorid=0c45 и Productid=613e
Сразу после подключения камеры система подгружает два модуля: gspca_main и gspca_sonixj
В /dev формируется файл video0, пользователь системы в группе video
При запуске cheese загорается световой индикатор на камере, в окне программы - чернота. При нажатии кнопки "Сделать снимок", программа делает отсчет и якобы фоткает... но ничего, кроме черноты нет...
В скайпе, в устройстве для видео выбрано (по-умолчанию): "USB Camera /dev/video0", однако при нажатии на кнопку "Проверить" опять то же самый черный квадрат...

Выводы различных команд прилагаю

text

$ dmesg
[11631.552053] usb 5-2: new full speed USB device using uhci_hcd and address 6
[11631.711061] usb 5-2: New USB device found, idVendor=0c45, idProduct=613e
[11631.711065] usb 5-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[11631.711068] usb 5-2: Product: USB camera
[11631.711180] usb 5-2: configuration #1 chosen from 1 choice
[11631.713126] gspca: probing 0c45:613e
[11631.719061] sonixj: Sonix chip id: 12
[11631.721145] gspca: probe ok
-------------------------------------------------------------
$ lsusb
Bus 005 Device 006: ID 0c45:613e Microdia PC Camera (SN9C120)
-------------------------------------------------------------
$ ls -l /dev | grep video
crw-rw----  1 root video    10, 175 Июн 15 18:20 agpgart
crw-rw----  1 root video    29,   0 Июн 15 18:20 fb0
crw-rw----+ 1 root video    81,   0 Июн 15 21:34 video0
-------------------------------------------------------------
$ camorama
(camorama:5368): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
libv4l2: error dequeuing buf: Ошибка ввода/вывода
-------------------------------------------------------------
# cd /home/maxm/Webcam/gspcav1-20071224
# ./gspca_build
REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules

CLEAN gspca source tree rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \ .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \ *.symvers *.err

COMPILE gspca Please Wait ....!!

INSTALL gspca in the kernel binary tree mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/ rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/ install: невозможно выполнить stat для «gspca.ko»: Нет такого файла или каталога make: *** [install] Ошибка 1

LOAD gspca in memory FATAL: Module gspca not found.

PRINT COMPILATION MESSAGES if ERRORS look kgspca.err make -C /lib/modules/`uname -r`/build SUBDIRS=/home/maxm/Webcam/gspcav1-20071224 CC=cc modules make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-686' CC [M] /home/maxm/Webcam/gspcav1-20071224/gspca_core.o /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: Нет такого файла или каталога In file included from /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:845: /home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’: /home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’ /home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’: /home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’ In file included from /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:853: /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’: /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’: /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function /home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function /home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’: /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’ /home/maxm/Webcam/gspcav1-20071224/gspca_core.c: At top level: /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type /home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’: /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’ /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’ /home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’: /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:4301: error: incompatible types when assigning to type ‘struct device’ from type ‘struct device *’ make[4]: *** [/home/maxm/Webcam/gspcav1-20071224/gspca_core.o] Ошибка 1 make[3]: *** [_module_/home/maxm/Webcam/gspcav1-20071224] Ошибка 2 make[2]: *** [sub-make] Ошибка 2 make[1]: *** [all] Ошибка 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686' make: *** [default] Ошибка 2 ------------------------------------------------------------- # lsmod Module Size Used by snd_seq_dummy 987 0 nls_cp437 4489 0 vfat 6570 0 fat 34912 1 vfat mmc_block 6472 0 nls_utf8 908 0 isofs 24608 0 udf 62930 0 gspca_sonixj 14886 0 gspca_main 15775 1 gspca_sonixj videodev 25545 1 gspca_main v4l1_compat 10250 1 videodev cpufreq_stats 1940 0 cpufreq_userspace 1480 0 cpufreq_conservative 4018 0 cpufreq_powersave 602 0 parport_pc 15799 0 ppdev 4058 0 lp 5570 0 parport 22554 3 parport_pc,ppdev,lp sco 5857 2 bridge 33019 0 stp 996 1 bridge bnep 7444 2 l2cap 21705 3 bnep bluetooth 36319 5 sco,bnep,l2cap binfmt_misc 4907 1 uinput 4796 1 fuse 44033 3 loop 9765 0 firewire_sbp2 9647 0 snd_hda_codec_idt 35293 1 snd_hda_codec_intelhdmi 9027 1 snd_hda_intel 16811 4 snd_hda_codec 46002 3 snd_hda_codec_idt,snd_hda_codec_intelhdmi,snd_hda_intel snd_hwdep 4054 1 snd_hda_codec snd_pcm 47226 3 snd_hda_intel,snd_hda_codec snd_seq 35463 1 snd_seq_dummy i915 222254 3 snd_timer 12258 3 snd_pcm,snd_seq snd_seq_device 3673 2 snd_seq_dummy,snd_seq arc4 974 2 drm_kms_helper 18309 1 i915 ecb 1405 2 drm 112088 4 i915,drm_kms_helper snd 34375 15 snd_hda_codec_idt,snd_hda_codec_intelhdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device b43 132615 0 rng_core 2178 1 b43 i2c_i801 6462 0 i2c_algo_bit 3497 1 i915 joydev 6739 0 dell_laptop 1557 0 soundcore 3450 1 snd video 14605 1 i915 mac80211 123574 1 b43 battery 3782 0 wmi 3575 0 ac 1640 0 button 3598 1 i915 dcdbas 3892 1 dell_laptop snd_page_alloc 5045 2 snd_hda_intel,snd_pcm pcspkr 1207 0 output 1204 1 video i2c_core 12696 6 videodev,i915,drm_kms_helper,drm,i2c_i801,i2c_algo_bit processor 26327 1 cfg80211 87661 2 b43,mac80211 psmouse 44657 0 rfkill 10264 5 bluetooth,dell_laptop,cfg80211 evdev 5609 17 serio_raw 2916 0 ext4 257803 2 mbcache 3762 1 ext4 jbd2 56155 1 ext4 crc16 1027 2 l2cap,ext4 usbhid 28008 0 hid 50893 1 usbhid sg 15968 0 sr_mod 10770 0 cdrom 26487 1 sr_mod sd_mod 25977 5 crc_t10dif 1012 1 sd_mod ata_generic 2067 0 uhci_hcd 16057 0 ssb 33714 1 b43 sdhci_pci 4525 0 sdhci 12147 1 sdhci_pci ata_piix 17736 0 pcmcia 16194 2 b43,ssb thermal 9206 0 mmc_core 38665 4 mmc_block,b43,ssb,sdhci ahci 27270 4 ricoh_mmc 2561 0 firewire_ohci 16725 0 firewire_core 31243 2 firewire_sbp2,firewire_ohci crc_itu_t 1035 2 udf,firewire_core led_class 1757 2 b43,sdhci thermal_sys 9378 3 video,processor,thermal ehci_hcd 27851 0 pcmcia_core 20450 3 b43,ssb,pcmcia sky2 34040 0 libata 115753 3 ata_generic,ata_piix,ahci scsi_mod 101429 5 firewire_sbp2,sg,sr_mod,sd_mod,libata usbcore 98453 6 gspca_sonixj,gspca_main,usbhid,uhci_hcd,ehci_hcd nls_base 4541 7 nls_cp437,vfat,fat,nls_utf8,isofs,udf,usbcore ------------------------------------------------------------- $lsusb -v Bus 005 Device 002: ID 0c45:613e Microdia PC Camera (SN9C120) Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0c45 Microdia idProduct 0x613e PC Camera (SN9C120) bcdDevice 1.01 iManufacturer 0 iProduct 1 USB camera iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 279 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0000 1x 0 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 1 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0080 1x 128 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 2 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0100 1x 256 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 3 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0180 1x 384 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 4 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 5 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x02a8 1x 680 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 6 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0320 1x 800 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 7 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0384 1x 900 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 8 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x03ff 1x 1023 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 100 Device Status: 0x0000 (Bus Powered) ------------------------------------------------------------- $ LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so cheese ERROR: ld.so: object '/usr/lib32/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored. ERROR: ld.so: object '/usr/lib32/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored. ** Message: Error: Поток не содержит данных. gsttypefindelement.c(945): gst_type_find_element_activate (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind: Can't typefind empty stream

totem-video-thumbnailer couldn't open file 'file:///home/maxm/%D0%92%D0%B8%D0%B4%D0%B5%D0%BE/Webcam/2011-06-17-152443.ogv' Reason: Поток не содержит данных..

** (cheese:2898): WARNING **: could not generate thumbnail for /home/maxm/Видео/Webcam/2011-06-17-152443.ogv (video/ogg)

#171075

SKYPE проблема чёрный экран
Зелёный либо чёрный квадрат вместо видео с веб-камеры. Решение: установка libv2l и запуск
skype специфичной командой "LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype".
Можно отредактировать ярлык запуска, либо создать скрипт.

#171126

Пакета libv2l в репозиториях нет...
В поисковике тоже не нашел ничего толкового, где его взять...

В системе имеется установленный пакет libv4l-0
Вот его описание из Synaptic:

libv4l is a collection of libraries which adds a thin abstraction layer on
top of video4linux2 devices. The purpose of this (thin) layer is to make it
easy for application writers to support a wide variety of devices without
having to write separate code for different devices in the same class. libv4l
consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.

libv4lconvert offers functions to convert from any (known) pixelformat
to BGR24, RGB24, YUV420 and YVU420.

libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
of the drivers for those devices supporting v4l1 compatibility (which many
v4l2 drivers do not).

libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
application transparent libv4lconvert conversion where necessary.

This package contains the shared libraries.

Запуск skype командой "LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype" камеру не "включил". Все тот же черный экран...
Вот что на эту команду выдалось в терминале:

text
X Error, request 55, minor 0, error code 9 BadDrawable (invalid Pixmap or Window parameter) 

Как быть!?...

#171524

Нашел информацию о том, что можно в сам исходинк модуля gspca, а именно в файл gspca_core.c добавить информацию о своей камере (по аналогии с другими камерами от того же вендора)
Однако такие советы датировались 2008 годом. После поисков информации на тему как компилировать этот модуль, понял, что этот модуль не ориентирован на ядро моей системы, а оно у меня 2.6.32.
Соответственно при компиляции появляются предупреждения следующего содрежания:

text
In file included from /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:845:
/home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
/home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
/home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
In file included from /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:853:
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c: At top level:
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:4301: error: incompatible types when assigning to type ‘struct device’ from type ‘struct device *’
make[4]: *** [/home/maxm/Webcam/gspcav1-20071224/gspca_core.o] Ошибка 1
make[3]: *** [_module_/home/maxm/Webcam/gspcav1-20071224] Ошибка 2
make[2]: *** [sub-make] Ошибка 2
make[1]: *** [all] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686'
make: *** [default] Ошибка 2

Я конечно не мелочный, чтобы упираться из-за веб-камеры за 450 рублей. Можно пойти и купить совместимую камеру, благо теперь есть исодинк модуля, а там все поддерживаемые камеры прописаны. Да и на официальном сайте автора этого модуля можно так же найти этот список. Но преследовалась цель лучше разобраться в линуксе. Да и просто приятно было бы, чтобы этот гаджет после стольких усилий заработал.
Ну не переходить же на старое ядро из-за камеры! smile

Если кто-то имел опыт компиляции данного модуля под ядро 2.6.32 и выше, просьба откликнуться. Так сказать, поставить жирную точку в этом вопросе. И большими буквами написать, что данную камеру СОВСЕМ нельзя заставить работать в современном линуксе!

#171637

Не совсем понял, как я могу применить -Y для ssh в данном контексте!? :o

#171645
maxm написал:
crw-rw----+ 1 root video 81, 0 Июн 15 21:34 video0

здесь '+' это опечатка? попробуйте запустить cheese из консоли от рута и заодно посмотрите, плюётся в консоль точно также?

maxm написал:
пользователь системы в группе video

на всякий пожарный id покажите...

maxm написал:
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so

сам файл в системе есть? и если нет, то хорошо бы погуглить, какому пакету он может принадлежать...

#171663

Я не знаю, что означает "+" в данном случае, но это не опечатка.
Вот из "info ls"
[console]
Following the file mode bits is a single character that specifies
whether an alternate access method such as an access control list
applies to the file. When the character following the file mode
bits is a space, there is no alternate access method. When it is
a printing character, then there is such a method.

GNU `ls' uses a `.' character to indicate a file with an SELinux
security context, but no other alternate access method.

A file with any other combination of alternate access methods is
marked with a `+' character.
[/console]

Пётр.

#171681
Fat-Zer написал:
здесь '+' это опечатка? попробуйте запустить cheese из консоли от рута и заодно посмотрите, плюётся в консоль точно также?

Нет, здесь опечатки нет.

Fat-Zer написал:
на всякий пожарный id покажите...

[console]$ id
uid=1000(maxm) gid=1000(maxm) группы=1000(maxm),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),109(netdev),110(bluetooth),116(scanner)
[/console]

Fat-Zer написал:
сам файл в системе есть?

[console]$ ls -l /usr/lib/libv4l/
-rwxr-xr-x 1 root root 12964 Май 24 2010 ov511-decomp
-rwxr-xr-x 1 root root 18544 Май 24 2010 ov518-decomp
-rw-r--r-- 1 root root 3788 Май 24 2010 v4l1compat.so
-rw-r--r-- 1 root root 4172 Май 24 2010 v4l2convert.so
$ ls /usr/
bin games include lib lib64 local sbin share src
[/console]

Fat-Zer написал:
попробуйте запустить cheese из консоли от рута и заодно посмотрите, плюётся в консоль точно также?

[console]# LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so cheese

** (cheese:3153): WARNING **: Unable to connect to dbus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

** (cheese:3153): CRITICAL **: dbus_g_connection_register_g_object: assertion `connection != NULL' failed

** (cheese:3153): CRITICAL **: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed

** (cheese:3153): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed
Ошибка сегментирования
[/console][console]
# cheese

** (cheese:3192): WARNING **: Unable to connect to dbus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

** (cheese:3192): CRITICAL **: dbus_g_connection_register_g_object: assertion `connection != NULL' failed

** (cheese:3192): CRITICAL **: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed

** (cheese:3192): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed
Ошибка сегментирования
[/console]

#171710

maxm, что ж вы за человек такой, даже надежды на догадку, что не так не оставляете :(

maxm написал:
Нет, здесь опечатки нет.

гмм... к делу скорей всего не относится, но чисто ради интереса покажите "getfacl /dev/video0"...

maxm написал:
Ошибка сегментирования

это cheese сам падает или при закрытии?

#171747
Fat-Zer написал:
покажите "getfacl /dev/video0"...

[console]$ getfacl /dev/video0
getfacl: Removing leading '/' from absolute path names
# file: dev/video0
# owner: root
# group: video
user::rw-
user:Debian-gdm:rw-
user:maxm:rw-
group::rw-
mask::rw-
other::---
[/console]

Fat-Zer написал:
это cheese сам падает или при закрытии?

Cheese даже не запускается под root из консоли, выдавая эти самые сообщения. Под пользователем запускается, ошибок при нажатии кнопок "Сделать снимок" и т.п. не выдает и при завершении благополучно останавливается без ошибок и сообщений. Вот только вместо изображения - черный квадрат Малевича...

Войдите или зарегистрируйтесь, чтобы ответить.