You are not logged in.

#1 2020-09-19 06:41:28

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

[SOLVED] Webcam doesn't work

Hi everyone,

I have a SriHome SH001 Webcam for the meeting online.

Previously it works, now it doesn't work and I don't understand why...

When I plug the webcam:

$ dmesg | tail
[ 1592.161581] usb 1-8: Manufacturer: webcam
[ 1592.174353] usb 1-8: USB disconnect, device number 13
[ 1592.499153] usb 1-8: new high-speed USB device number 14 using xhci_hcd
[ 1592.640914] usb 1-8: config 1 interface 4 altsetting 0 endpoint 0x82 has an i
nvalid bInterval 255, changing to 11
[ 1592.640921] usb 1-8: config 1 interface 5 altsetting 0 bulk endpoint 0x84 has
 invalid maxpacket 64
[ 1592.640925] usb 1-8: config 1 interface 5 altsetting 0 bulk endpoint 0x4 has
invalid maxpacket 64
[ 1592.641503] usb 1-8: New USB device found, idVendor=1d6c, idProduct=0103, bcd
Device= 0.10
[ 1592.641509] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1592.641512] usb 1-8: Product: webcam
[ 1592.641515] usb 1-8: Manufacturer: webcam
$ ls /dev/video0
ls: impossibile accedere a '/dev/video0': File o directory non esistente
$ lsmod
Module                  Size  Used by
xt_conntrack           16384  1
xt_MASQUERADE          20480  1
nf_conntrack_netlink    57344  0
nfnetlink              16384  2 nf_conntrack_netlink
xfrm_user              45056  1
xfrm_algo              16384  1 xfrm_user
xt_addrtype            16384  2
iptable_filter         16384  1
iptable_nat            16384  1
nf_nat                 53248  2 iptable_nat,xt_MASQUERADE
nf_conntrack          172032  4 xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  2 nf_conntrack,nf_nat
br_netfilter           32768  0
bridge                241664  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
rfcomm                 90112  16
squashfs               69632  0
loop                   36864  0
cmac                   16384  5
algif_hash             16384  2
algif_skcipher         16384  2
overlay               139264  0
af_alg                 32768  10 algif_hash,algif_skcipher
bnep                   28672  2
nvidia_drm             57344  10
nvidia_modeset       1187840  18 nvidia_drm
mousedev               24576  0
intel_rapl_msr         20480  0
intel_rapl_common      32768  1 intel_rapl_msr
input_leds             16384  0
joydev                 28672  0
hid_holtek_mouse       16384  0
nvidia              19746816  771 nvidia_modeset
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
coretemp               20480  0
ee1004                 20480  0
iTCO_wdt               16384  0
kvm_intel             323584  0
intel_pmc_bxt          16384  1 iTCO_wdt
iTCO_vendor_support    16384  1 iTCO_wdt
snd_usb_audio         315392  9
kvm                   847872  1 kvm_intel
wl                   6467584  0
irqbypass              16384  1 kvm
snd_usbmidi_lib        40960  1 snd_usb_audio
nls_iso8859_1          16384  1
crct10dif_pclmul       16384  1
snd_rawmidi            45056  1 snd_usbmidi_lib
nls_cp437              20480  1
snd_seq_device         16384  1 snd_rawmidi
crc32_pclmul           16384  0
vfat                   24576  1
hid_generic            16384  0
mei_hdcp               24576  0
ghash_clmulni_intel    16384  0
mc                     61440  1 snd_usb_audio
fat                    86016  1 vfat
wmi_bmof               16384  0
aesni_intel           372736  7
crypto_simd            16384  1 aesni_intel
cryptd                 24576  4 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
fuse                  139264  5
rapl                   16384  0
r8169                  98304  0
intel_cstate           16384  0
intel_uncore          163840  0
cfg80211              913408  1 wl
realtek                24576  1
i2c_i801               36864  0
pcspkr                 16384  0
i2c_smbus              20480  1 i2c_i801
libphy                151552  2 r8169,realtek
btusb                  65536  0
btrtl                  24576  1 btusb
snd_hda_codec_realtek   143360  1
btbcm                  20480  1 btusb
btintel                32768  1 btusb
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
bluetooth             720896  49 btrtl,btintel,btbcm,bnep,btusb,rfcomm
snd_hda_codec_hdmi     73728  1
snd_hda_intel          57344  9
snd_intel_dspcfg       24576  1 snd_hda_intel
snd_hda_codec         167936  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
usbhid                 65536  0
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
ecdh_generic           16384  2 bluetooth
rfkill                 28672  8 bluetooth,cfg80211
hid                   147456  3 usbhid,hid_holtek_mouse,hid_generic
drm_kms_helper        262144  1 nvidia_drm
ecc                    36864  1 ecdh_generic
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_pcm               147456  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
cec                    73728  1 drm_kms_helper
rc_core                61440  1 cec
snd_timer              45056  1 snd_pcm
syscopyarea            16384  1 drm_kms_helper
snd                   114688  50 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
mei_me                 49152  1
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
soundcore              16384  1 snd
mei                   126976  3 mei_hdcp,mei_me
evdev                  28672  30
mac_hid                16384  0
wmi                    36864  1 wmi_bmof
acpi_tad               20480  0
vboxnetflt             32768  0
vboxnetadp             28672  0
vboxdrv               528384  2 vboxnetadp,vboxnetflt
sg                     40960  0
drm                   585728  13 drm_kms_helper,nvidia_drm
crypto_user            16384  0
agpgart                53248  1 drm
ip_tables              36864  2 iptable_filter,iptable_nat
x_tables               53248  5 xt_conntrack,iptable_filter,xt_addrtype,ip_tables,xt_MASQUERADE
ext4                  802816  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  139264  1 ext4
crc32c_intel           24576  3
xhci_pci               20480  0
xhci_pci_renesas       20480  1 xhci_pci
xhci_hcd              286720  1 xhci_pci

Last edited by Superjolly002 (2020-09-27 11:58:12)


See, I'm not a monster. I'm just ahead of the curve.

Offline

#2 2020-09-19 07:21:57

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Webcam doesn't work

[ 1592.640914] usb 1-8: config 1 interface 4 altsetting 0 endpoint 0x82 has an invalid bInterval 255, changing to 11
[ 1592.640921] usb 1-8: config 1 interface 5 altsetting 0 bulk endpoint 0x84 has invalid maxpacket 64
[ 1592.640925] usb 1-8: config 1 interface 5 altsetting 0 bulk endpoint 0x4 has invalid maxpacket 64

Underpowered? Or do you have a parallel windows installation?
Tried a different USB slot? Or the LTS kernel?

Offline

#3 2020-09-19 07:26:58

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

seth wrote:
[ 1592.640914] usb 1-8: config 1 interface 4 altsetting 0 endpoint 0x82 has an invalid bInterval 255, changing to 11
[ 1592.640921] usb 1-8: config 1 interface 5 altsetting 0 bulk endpoint 0x84 has invalid maxpacket 64
[ 1592.640925] usb 1-8: config 1 interface 5 altsetting 0 bulk endpoint 0x4 has invalid maxpacket 64

Underpowered? Or do you have a parallel windows installation?
Tried a different USB slot? Or the LTS kernel?

I don't think it's underpowered, how can I check it?
I tried different USB slot but it still doesn't work.

I try to plag the webcam to another archlinux pc and it works, it could be the uvcvideo kernel module?
On my main pc there isn't uvcvideo but on my laptop yes.


See, I'm not a monster. I'm just ahead of the curve.

Offline

#4 2020-09-19 07:29:49

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Webcam doesn't work

You can "modprobe uvcvideo" (it's what provides /dev/video0) but that's likely not doing anything because it's not loaded because of the USB error itfp.

seth wrote:

do you have a parallel windows installation?
Tried … the LTS kernel?

Offline

#5 2020-09-19 07:32:22

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

seth wrote:

You can "modprobe uvcvideo" (it's what provides /dev/video0) but that's likely not doing anything because it's not loaded because of the USB error itfp.

seth wrote:

do you have a parallel windows installation?
Tried … the LTS kernel?

I don't have parallel windows installed.
No now I try to install LTS kernel


See, I'm not a monster. I'm just ahead of the curve.

Offline

#6 2020-09-19 08:02:44

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

seth wrote:

Or the LTS kernel?

It still doesn't work, same problem

Last edited by Superjolly002 (2020-09-19 08:02:58)


See, I'm not a monster. I'm just ahead of the curve.

Offline

#7 2020-09-19 08:28:31

Khere
Member
From: Italy
Registered: 2020-03-04
Posts: 168

Re: [SOLVED] Webcam doesn't work

Please post the output of :

lsusb 

I think your cam not start because there's not the driver


Fan of Giorgio Moroder & Mohammad Ammax enemy

Offline

#8 2020-09-19 10:38:11

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

New update:
I finally suceeded to modprobe uvcvideo and sometimes webcam works (most of the time not).
I get new error:

$ dmesg | tail
input: webcam as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.
0/input/input32
[ 9209.873266] cdc_acm 1-8:1.4: ttyACM0: USB ACM device
[ 9289.110766] uvcvideo: Failed to query (129) UVC probe control : -110 (exp. 26
).
[ 9294.230812] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[ 9299.350778] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[ 9304.467376] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[ 9309.590766] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).

On cheese I get this error:

$ dmesg | tail
[ 9556.841382] cdc_acm 1-8:1.4: ttyACM0: USB ACM device
[ 9564.067362] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110
 (exp. 2).
[ 9564.574055] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110
 (exp. 2).
[ 9565.080717] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -110
 (exp. 2).
[ 9565.587340] uvcvideo: Failed to query (GET_DEF) UVC control 7 on unit 2: -110
 (exp. 2).
[ 9567.294430] usb 1-8: 3:1: usb_set_interface failed (-110)
[ 9572.414425] usb 1-8: 3:1: usb_set_interface failed (-110)
[ 9577.534443] usb 1-8: 3:1: usb_set_interface failed (-110)
[ 9582.654440] usb 1-8: 3:1: usb_set_interface failed (-110)
[ 9587.774303] usb 1-8: 3:1: usb_set_interface failed (-110)

Any ideas?

Last edited by Superjolly002 (2020-09-19 10:41:08)


See, I'm not a monster. I'm just ahead of the curve.

Offline

#9 2020-09-19 10:38:57

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

Khere wrote:

Please post the output of :

lsusb 

I think your cam not start because there's not the driver

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Bus 001 Device 021: ID 1d6c:0103 webcam webcam
Bus 001 Device 004: ID 0bda:b82c Realtek Semiconductor Corp. 802.11ac NIC
Bus 001 Device 003: ID 04d9:a070 Holtek Semiconductor, Inc. USB Gaming Mouse
Bus 001 Device 002: ID 0c45:760a Microdia USB Keyboard
Bus 001 Device 006: ID 046d:0a10 Logitech, Inc. V10 Notebook Speakers
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

See, I'm not a monster. I'm just ahead of the curve.

Offline

#10 2020-09-19 13:57:21

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Webcam doesn't work

110 is just "Timeout expired before the transfer completed"
Can you try to plug that thing into the usb3 hub?

Offline

#11 2020-09-19 15:55:06

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

The USB of my webcam is 2.0, I tried to plug it on a USB 3.0 but it show me the same error

Last edited by Superjolly002 (2020-09-19 15:55:33)


See, I'm not a monster. I'm just ahead of the curve.

Offline

#12 2020-09-19 21:19:30

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Webcam doesn't work

I had hoped because USB3 usually provides higher current…
Do you use the same cable on the notebook and what's the "lsusb" output there?

Offline

#13 2020-09-20 06:28:05

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

Yes, It's the same USB port


See, I'm not a monster. I'm just ahead of the curve.

Offline

#14 2020-09-20 06:29:16

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Webcam doesn't work

What do you mean by "same usb port"? Do you use an external hub, a docking station etc?

Offline

#15 2020-09-20 07:34:32

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

No, I mean that on my laptop I have a port USB 2.0 and a USB 3.0.
But on my laptop it works


See, I'm not a monster. I'm just ahead of the curve.

Offline

#16 2020-09-20 09:23:01

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

Updates:
I tried to plug webcam and previously it works, now it give this error:

[ 7916.518481] usb 1-8: 3:1: cannot set freq 48000 to ep 0x8

What does it mean?


See, I'm not a monster. I'm just ahead of the curve.

Offline

#17 2020-09-20 14:13:20

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Webcam doesn't work

I isolation ot much.  Are there also messages that the host adapter didn't respod or died?
And is this now on the laptop?
If the cam works nowhere, there's likely either a broken cable or the cam got fired…

Offline

#18 2020-09-20 15:07:39

Khere
Member
From: Italy
Registered: 2020-03-04
Posts: 168

Re: [SOLVED] Webcam doesn't work

Superjolly002 wrote:
Khere wrote:

I think your cam not start because there's not the driver

Bus 001 Device 021: ID 1d6c:0103 webcam webcam

May the system can't recognize the webcam, may that's a problem with the driver only when you try to start it? Because the webcam is found by the O.S.
May it's a uvcvideo issue ?
Post the output of :

sudo lsusb -t

Last edited by Khere (2020-09-20 17:53:01)


Fan of Giorgio Moroder & Mohammad Ammax enemy

Offline

#19 2020-09-21 05:41:29

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

seth wrote:

Are there also messages that the host adapter didn't respod or died?
And is this now on the laptop?

There aren't any other messges, on my laptop seems that works.
I'll do some tests on the laptop to be sure


See, I'm not a monster. I'm just ahead of the curve.

Offline

#20 2020-09-21 05:42:46

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

Khere wrote:
Superjolly002 wrote:
Khere wrote:

I think your cam not start because there's not the driver

Bus 001 Device 021: ID 1d6c:0103 webcam webcam

May the system can't recognize the webcam, may that's a problem with the driver only when you try to start it? Because the webcam is found by the O.S.
May it's a uvcvideo issue ?
Post the output of :

sudo lsusb -t
# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
    |__ Port 3: Dev 2, If 2, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 3: Dev 2, If 0, Class=Wireless, Driver=btusb, 480M
    |__ Port 3: Dev 2, If 1, Class=Wireless, Driver=btusb, 480M
    |__ Port 7: Dev 11, If 4, Class=Communications, Driver=cdc_acm, 480M
    |__ Port 7: Dev 11, If 2, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 7: Dev 11, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 7: Dev 11, If 5, Class=CDC Data, Driver=cdc_acm, 480M
    |__ Port 7: Dev 11, If 3, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 7: Dev 11, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 9: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 9: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 12M
    |__ Port 9: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 10: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 8, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 8, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 6, If 1, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 2: Dev 6, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 6, If 0, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 3: Dev 7, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 3: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M

See, I'm not a monster. I'm just ahead of the curve.

Offline

#21 2020-09-21 07:01:24

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

Update:
For the moment I have found a solution (which sucks but it works), when I plug (or turn on the pc with the webcam already plugged) for the first time it doesn't work, but when I switch USB port  it's work without any problem.
I hate this solution but for the moment I'll do it in this way


See, I'm not a monster. I'm just ahead of the curve.

Offline

#22 2020-09-21 14:36:36

seth
Member
Registered: 2012-09-03
Posts: 49,985

Offline

#23 2020-09-21 18:35:43

uhoso
Member
From: Soest, NRW, Germany
Registered: 2014-04-24
Posts: 30

Re: [SOLVED] Webcam doesn't work

I had the same problem with internal camera. (Re-)installing usbutils worked for me.

Offline

#24 2020-09-22 05:45:40

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

For the moment (since I have to do the lessons online) I'm using another webcam Microsoft Corp. LifeCam HD-5000 and it works perfectly.

seth wrote:

I'll try this solution as soon as I have time.

uhoso wrote:

I had the same problem with internal camera. (Re-)installing usbutils worked for me.

Already tried but it doesn't work


See, I'm not a monster. I'm just ahead of the curve.

Offline

#25 2020-09-27 11:57:35

Superjolly002
Member
Registered: 2019-08-28
Posts: 63

Re: [SOLVED] Webcam doesn't work

Ok, the problem is the webcam that doesn't work properly.

seth wrote:

Does rebinding/re-authorising/resetting the device/bus suffice?
https://zedt.eu/tech/linux/restarting-u … em-centos/
https://askubuntu.com/questions/645/how … line/61165

Anyway this solution work.


See, I'm not a monster. I'm just ahead of the curve.

Offline

Board footer

Powered by FluxBB