-
-
Save lf-/fb03e18a2e1202deb5a2e2664cf63b74 to your computer and use it in GitHub Desktop.
Bits to diagnose crappy webcam functionality debian vs arch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 34.174965] usb 1-2: new high-speed USB device number 2 using ehci-pci | |
[ 34.497824] media: Linux media interface: v0.10 | |
[ 34.504253] Linux video capture interface: v2.00 | |
[ 34.511911] uvcvideo: Found UVC 1.00 device VF0380 Live! Cam Optia Pro (041e:4065) | |
[ 34.522125] uvcvideo 1-2:1.0: Entity type for entity Extension 5 was not initialized! | |
[ 34.522128] uvcvideo 1-2:1.0: Entity type for entity Extension 4 was not initialized! | |
[ 34.522129] uvcvideo 1-2:1.0: Entity type for entity Processing 3 was not initialized! | |
[ 34.522131] uvcvideo 1-2:1.0: Entity type for entity Camera 1 was not initialized! | |
[ 34.522233] input: VF0380 Live! Cam Optia Pro as /devices/pci0000:00/0000:00:05.7/usb1/1-2/1-2:1.0/input/input5 | |
[ 34.523091] usbcore: registered new interface driver uvcvideo | |
[ 34.523092] USB Video Class driver (1.1.1) | |
[ 34.554638] usb 1-2: 3:1: cannot get freq at ep 0x84 | |
[ 34.577150] usb 1-2: Warning! Unlikely big volume range (=3072), cval->res is probably wrong. | |
[ 34.577155] usb 1-2: [2] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1 | |
[ 34.578029] usbcore: registered new interface driver snd-usb-audio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[lf@archvm ~]$ lsmod | |
Module Size Used by | |
snd_usb_audio 167936 0 | |
uvcvideo 86016 0 | |
videobuf2_vmalloc 16384 1 uvcvideo | |
videobuf2_memops 16384 1 videobuf2_vmalloc | |
videobuf2_v4l2 20480 1 uvcvideo | |
videobuf2_core 36864 2 uvcvideo,videobuf2_v4l2 | |
videodev 151552 3 uvcvideo,videobuf2_core,videobu | |
f2_v4l2 | |
media 32768 2 uvcvideo,videodev | |
snd_usbmidi_lib 24576 1 snd_usb_audio | |
snd_rawmidi 28672 1 snd_usbmidi_lib | |
snd_seq_device 16384 1 snd_rawmidi | |
mousedev 20480 0 | |
crct10dif_pclmul 16384 0 | |
crc32_pclmul 16384 0 | |
crc32c_intel 24576 0 | |
snd_hda_codec_generic 69632 1 | |
ghash_clmulni_intel 16384 0 | |
pcbc 16384 0 | |
aesni_intel 163840 0 | |
8139too 32768 0 | |
aes_x86_64 20480 1 aesni_intel | |
crypto_simd 16384 1 aesni_intel | |
glue_helper 16384 1 aesni_intel | |
input_leds 16384 0 | |
led_class 16384 1 input_leds | |
psmouse 126976 0 | |
mac_hid 16384 0 | |
snd_hda_intel 36864 0 | |
qxl 69632 1 | |
evdev 24576 1 | |
snd_hda_codec 106496 2 snd_hda_intel,snd_hda_codec_gen | |
eric | |
ppdev 20480 0 | |
ttm 86016 1 qxl | |
cryptd 20480 3 crypto_simd,ghash_clmulni_intel | |
,aesni_intel | |
pcspkr 16384 0 | |
i2c_piix4 24576 0 | |
8139cp 28672 0 | |
snd_hda_core 65536 3 snd_hda_intel,snd_hda_codec,snd | |
_hda_codec_generic | |
drm_kms_helper 126976 1 qxl | |
snd_hwdep 16384 2 snd_hda_codec,snd_usb_audio | |
snd_pcm 90112 4 snd_hda_intel,snd_hda_codec,snd | |
_usb_audio,snd_hda_core | |
drm 299008 4 qxl,ttm,drm_kms_helper | |
snd_timer 28672 1 snd_pcm | |
snd 65536 10 snd_hda_intel,snd_hwdep,snd_hd | |
a_codec,snd_usb_audio,snd_timer,snd_rawmidi,snd_hda_codec_gener | |
ic,snd_usbmidi_lib,snd_seq_device,snd_pcm | |
syscopyarea 16384 1 drm_kms_helper | |
sysfillrect 16384 1 drm_kms_helper | |
intel_agp 20480 0 | |
intel_gtt 20480 1 intel_agp | |
soundcore 16384 1 snd | |
sysimgblt 16384 1 drm_kms_helper | |
mii 16384 2 8139cp,8139too | |
fb_sys_fops 16384 1 drm_kms_helper | |
qemu_fw_cfg 16384 0 | |
tpm_tis 16384 0 | |
tpm_tis_core 20480 1 tpm_tis | |
tpm 40960 2 tpm_tis,tpm_tis_core | |
parport_pc 28672 0 | |
parport 40960 2 parport_pc,ppdev | |
button 16384 0 | |
sch_fq_codel 20480 2 | |
ip_tables 24576 0 | |
x_tables 28672 1 ip_tables | |
ext4 528384 2 | |
crc16 16384 1 ext4 | |
jbd2 90112 1 ext4 | |
fscrypto 24576 1 ext4 | |
mbcache 16384 1 ext4 | |
sr_mod 24576 0 | |
cdrom 53248 1 sr_mod | |
sd_mod 45056 3 | |
ata_generic 16384 0 | |
pata_acpi 16384 0 | |
uhci_hcd 40960 0 | |
virtio_balloon 20480 0 | |
virtio_console 28672 0 | |
serio_raw 16384 0 | |
atkbd 24576 0 | |
libps2 16384 2 atkbd,psmouse | |
ehci_pci 16384 0 | |
ehci_hcd 73728 1 ehci_pci | |
ata_piix 36864 2 | |
libata 208896 3 ata_piix,ata_generic,pata_acpi | |
virtio_pci 24576 0 | |
virtio_ring 20480 3 virtio_balloon,virtio_console,v | |
irtio_pci | |
virtio 16384 3 virtio_balloon,virtio_console,v | |
irtio_pci | |
scsi_mod 155648 3 sd_mod,libata,sr_mod | |
usbcore 208896 6 uvcvideo,snd_usb_audio,ehci_hcd | |
,uhci_hcd,snd_usbmidi_lib,ehci_pci | |
usb_common 16384 1 usbcore | |
floppy 65536 0 | |
i8042 24576 0 | |
serio 20480 6 serio_raw,atkbd,psmouse,i8042 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[lf@archvm ~]$ python2 | |
Python 2.7.13 (default, Jul 21 2017, 03:24:34) | |
[GCC 7.1.1 20170630] on linux2 | |
Type "help", "copyright", "credits" or "license" for more infor | |
mation. | |
>>> import cv2 | |
>>> import numpy | |
>>> vc = cv2.VideoCapture(0) | |
>>> vc.set(3, 640) | |
False | |
>>> vc.set(4, 480) | |
True | |
>>> s, im = vc.read() | |
# im contains actual image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[lf@archvm ~]$ uname -a | |
Linux archvm 4.11.9-1-ARCH #1 SMP PREEMPT Wed Jul 5 18:23:08 CEST 2017 x86_64 GNU/Linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[26446.884079] usb 1-2: USB disconnect, device number 5 | |
[26450.468051] usb 1-2: new high-speed USB device number 6 using ehci-pci | |
[26450.653712] usb 1-2: New USB device found, idVendor=041e, idProduct=4065 | |
[26450.657379] usb 1-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0 | |
[26450.661107] usb 1-2: Product: VF0380 Live! Cam Optia Pro | |
[26450.664901] usb 1-2: Manufacturer: Creative Technology Ltd | |
[26450.669552] uvcvideo: Found UVC 1.00 device VF0380 Live! Cam Optia Pro (041e:4065) | |
[26450.679676] uvcvideo 1-2:1.0: Entity type for entity Extension 5 was not initialized! | |
[26450.682775] uvcvideo 1-2:1.0: Entity type for entity Extension 4 was not initialized! | |
[26450.686046] uvcvideo 1-2:1.0: Entity type for entity Processing 3 was not initialized! | |
[26450.689263] uvcvideo 1-2:1.0: Entity type for entity Camera 1 was not initialized! | |
[26450.692703] input: VF0380 Live! Cam Optia Pro as /devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2:1.0/input/input13 | |
[26450.723596] usb 1-2: 3:1: cannot get freq at ep 0x84 | |
[26450.736706] usb 1-2: Warning! Unlikely big volume range (=3072), cval->res is probably wrong. | |
[26450.740081] usb 1-2: [2] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lf@lf-octoprint:~$ lsmod | |
Module Size Used by | |
uvcvideo 77824 0 | |
snd_usb_audio 143360 0 | |
videobuf2_vmalloc 16384 1 uvcvideo | |
videobuf2_memops 16384 1 videobuf2_vmalloc | |
snd_usbmidi_lib 24576 1 snd_usb_audio | |
videobuf2_v4l2 20480 1 uvcvideo | |
videobuf2_core 36864 2 uvcvideo,videobuf2_v4l2 | |
snd_rawmidi 24576 1 snd_usbmidi_lib | |
snd_seq_device 16384 1 snd_rawmidi | |
videodev 131072 3 uvcvideo,videobuf2_core,videobuf2_v4l2 | |
media 28672 2 uvcvideo,videodev | |
nft_reject_inet 16384 1 | |
nf_reject_ipv4 16384 1 nft_reject_inet | |
nf_reject_ipv6 16384 1 nft_reject_inet | |
nft_reject 16384 1 nft_reject_inet | |
nft_meta 16384 6 | |
nf_conntrack_ipv6 20480 7 | |
nf_defrag_ipv6 24576 1 nf_conntrack_ipv6 | |
nf_conntrack_ipv4 16384 7 | |
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4 | |
nft_ct 16384 2 | |
nf_conntrack 102400 3 nft_ct,nf_conntrack_ipv6,nf_conntrack_ipv4 | |
libcrc32c 16384 1 nf_conntrack | |
nft_counter 16384 1 | |
nft_set_hash 20480 1 | |
nft_set_rbtree 16384 0 | |
nf_tables_inet 16384 4 | |
nf_tables_ipv6 16384 1 nf_tables_inet | |
nf_tables_ipv4 16384 1 nf_tables_inet | |
nf_tables 73728 34 nft_ct,nft_reject,nft_set_hash,nf_tables_ipv6,nf_tables_ipv4,nft_reject_inet,nft_meta,nft_set_rbtree,nft_counter,nf_tables_inet | |
nfnetlink 16384 1 nf_tables | |
tcp_diag 16384 0 | |
udp_diag 16384 0 | |
inet_diag 20480 2 tcp_diag,udp_diag | |
arc4 16384 2 | |
pcmcia 49152 0 | |
iTCO_wdt 16384 0 | |
iTCO_vendor_support 16384 1 iTCO_wdt | |
ppdev 20480 0 | |
coretemp 16384 0 | |
kvm_intel 192512 0 | |
kvm 454656 1 kvm_intel | |
irqbypass 16384 1 kvm | |
ath5k 139264 0 | |
evdev 20480 5 | |
ath 24576 1 ath5k | |
pcspkr 16384 0 | |
serio_raw 16384 0 | |
lpc_ich 24576 0 | |
mfd_core 16384 1 lpc_ich | |
sg 32768 0 | |
mac80211 552960 1 ath5k | |
snd_hda_codec_analog 16384 1 | |
yenta_socket 40960 0 | |
pcmcia_rsrc 20480 1 yenta_socket | |
pcmcia_core 20480 3 yenta_socket,pcmcia,pcmcia_rsrc | |
snd_hda_codec_generic 65536 1 snd_hda_codec_analog | |
rng_core 16384 0 | |
i915 1183744 1 | |
cfg80211 458752 3 mac80211,ath,ath5k | |
thinkpad_acpi 69632 0 | |
nvram 16384 1 thinkpad_acpi | |
battery 20480 0 | |
rfkill 20480 3 thinkpad_acpi,cfg80211 | |
snd_hda_intel 32768 0 | |
ac 16384 0 | |
snd_hda_codec 94208 3 snd_hda_intel,snd_hda_codec_analog,snd_hda_codec_generic | |
parport_pc 28672 0 | |
irda 151552 0 | |
snd_hda_core 57344 4 snd_hda_intel,snd_hda_codec,snd_hda_codec_analog,snd_hda_codec_generic | |
drm_kms_helper 114688 1 i915 | |
parport 40960 2 parport_pc,ppdev | |
crc_ccitt 16384 1 irda | |
snd_hwdep 16384 2 snd_hda_codec,snd_usb_audio | |
drm 262144 3 i915,drm_kms_helper | |
video 36864 2 thinkpad_acpi,i915 | |
i2c_algo_bit 16384 1 i915 | |
snd_pcm 86016 4 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_hda_core | |
snd_timer 28672 1 snd_pcm | |
snd 57344 12 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_hda_codec_analog,snd_usb_audio,snd_timer,thinkpad_acpi,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_seq_device,snd_pcm | |
soundcore 16384 1 snd | |
shpchp 32768 0 | |
button 16384 1 i915 | |
acpi_cpufreq 20480 1 | |
ip_tables 20480 0 | |
x_tables 24576 1 ip_tables | |
autofs4 36864 2 | |
ext4 503808 2 | |
crc16 16384 1 ext4 | |
jbd2 77824 1 ext4 | |
crc32c_generic 16384 5 | |
fscrypto 24576 1 ext4 | |
ecb 16384 0 | |
crypto_simd 16384 0 | |
cryptd 20480 1 crypto_simd | |
aes_i586 20480 0 | |
mbcache 16384 1 ext4 | |
sd_mod 40960 4 | |
ata_generic 16384 0 | |
psmouse 118784 0 | |
ahci 36864 3 | |
ata_piix 32768 0 | |
libahci 28672 1 ahci | |
sdhci_pci 28672 0 | |
i2c_i801 24576 0 | |
libata 192512 4 ahci,ata_piix,libahci,ata_generic | |
firewire_ohci 36864 0 | |
sdhci 40960 1 sdhci_pci | |
scsi_mod 180224 3 sd_mod,libata,sg | |
mmc_core 110592 2 sdhci,sdhci_pci | |
firewire_core 57344 1 firewire_ohci | |
crc_itu_t 16384 1 firewire_core | |
uhci_hcd 40960 0 | |
ehci_pci 16384 0 | |
ehci_hcd 65536 1 ehci_pci | |
usbcore 184320 6 uvcvideo,snd_usb_audio,ehci_hcd,uhci_hcd,snd_usbmidi_lib,ehci_pci | |
usb_common 16384 1 usbcore | |
e1000e 212992 0 | |
ptp 20480 1 e1000e | |
pps_core 20480 1 ptp | |
thermal 20480 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lf@lf-octoprint:~$ lsusb | |
Bus 001 Device 007: ID 041e:4065 Creative Technology, Ltd | |
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 005 Device 002: ID 0483:2016 STMicroelectronics Fingerprint Reader | |
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub | |
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub | |
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub | |
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lf@lf-octoprint:~$ python | |
Python 2.7.13 (default, Jan 19 2017, 14:48:08) | |
[GCC 6.3.0 20170118] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import cv2 | |
>>> import numpy | |
>>> vc = cv2.VideoCapture(0) | |
>>> vc.set(3, 640) | |
False | |
>>> vc.set(4, 480) | |
False | |
>>> s, im = vc.read() | |
select timeout | |
>>> # im does contain things, but it's a black screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lf@lf-octoprint:~$ uname -a | |
Linux lf-octoprint 4.11.0-1-686-pae #1 SMP Debian 4.11.6-1 (2017-06-19) i686 GNU/Linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment