Résolu le 27-02-19 Webcam HD 720P plus détectée

Répondre
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Webcam HD 720P plus détectée

Message par chataigne73 »

Bonjour,
J'ai une webcam HD 720P qui fonctionnait sans soucis sous ma configuration actuelle. Depuis quelques mois elle ne marche plus, elle n'est plus du tout reconnue. Que faut-il faire pour qu'elle soit de nouveau reconnue et qu'elle fonctionne ?
Merci d'avance !
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
Avatar du membre
arghlub
Administrateur du site
Messages : 11560
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence

Re: Webcam HD 720P plus détectée

Message par arghlub »

Salut,

C'est une webcam branchée en USB ou intégrée sur un PC portable ?

Que donne le retour de cette commande en terminal :

Code : Tout sélectionner

ls -l /dev/video*
Et que donne cette commande qui permet de lancer la webcam :

Code : Tout sélectionner

mplayer tv:// -tv driver=v4l2:device=/dev/video0
;)
Tour1 (custom) CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : LMint 22.3 | Debian 12 | MX Linux | XFCE
Tour2 (custom) CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 22.1 | MX Linux | XFCE
Portable2 MacBook Air A1466 | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MX Linux XFCE
─────( pour une informatique libre ! )─────
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Re: Webcam HD 720P plus détectée

Message par chataigne73 »

Salut!
arghlub a écrit : mer. 27 févr. 2019 07:49 Salut,

C'est une webcam branchée en USB ou intégrée sur un PC portable ?
Branchée en USB.
Que donne le retour de cette commande en terminal :

Code : Tout sélectionner

ls -l /dev/video*
Elle donne :

Code : Tout sélectionner

"ls: ne eblas atingi '/dev/video*': Dosiero aŭ dosierujo ne ekzistas" 
(ce n'est pas en anglais mais en espéranto - ça dit qu'on ne peut pas atteindre /dev/video* car le fichier ou dossier n'existe pas).
Et que donne cette commande qui permet de lancer la webcam :

Code : Tout sélectionner

mplayer tv:// -tv driver=v4l2:device=/dev/video0
Elle donne :

Code : Tout sélectionner

Creating config file: /home/nelly/.mplayer/config
MPlayer 1.2.1 (Debian), built with gcc-5.4.0 (C) 2000-2016 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
v4l2: unable to open '/dev/video0': No such file or directory
v4l2: ioctl set mute failed: Bad file descriptor
v4l2: 0 frames successfully processed, 0 frames dropped.


Exiting... (End of file)
Merci d'avance pour ton aide !
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Re: Webcam HD 720P plus détectée

Message par chataigne73 »

Oui :

Code : Tout sélectionner

Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(pardon pour la longueur du second retour :

Code : Tout sélectionner

agpgart          loop1               ram6      tty23  tty57      ttyS31
autofs           loop2               ram7      tty24  tty58      ttyS4
block            loop3               ram8      tty25  tty59      ttyS5
bsg              loop4               ram9      tty26  tty6       ttyS6
btrfs-control    loop5               random    tty27  tty60      ttyS7
bus              loop6               rfkill    tty28  tty61      ttyS8
char             loop7               rtc       tty29  tty62      ttyS9
console          loop-control        rtc0      tty3   tty63      uhid
core             mapper              sda       tty30  tty7       uinput
cpu              mcelog              sda1      tty31  tty8       urandom
cpu_dma_latency  mei0                sda2      tty32  tty9       userio
cuse             mem                 sda5      tty33  ttyprintk  vcs
disk             memory_bandwidth    sg0       tty34  ttyS0      vcs1
dm-0             mint-vg             shm       tty35  ttyS1      vcs2
dm-1             mqueue              snapshot  tty36  ttyS10     vcs3
dri              net                 snd       tty37  ttyS11     vcs4
ecryptfs         network_latency     stderr    tty38  ttyS12     vcs5
fb0              network_throughput  stdin     tty39  ttyS13     vcs6
fd               null                stdout    tty4   ttyS14     vcs8
full             nvram               tpm0      tty40  ttyS15     vcsa
fuse             port                tty       tty41  ttyS16     vcsa1
hpet             ppp                 tty0      tty42  ttyS17     vcsa2
hugepages        psaux               tty1      tty43  ttyS18     vcsa3
hwrng            ptmx                tty10     tty44  ttyS19     vcsa4
i2c-0            pts                 tty11     tty45  ttyS2      vcsa5
i2c-1            ram0                tty12     tty46  ttyS20     vcsa6
i2c-2            ram1                tty13     tty47  ttyS21     vcsa8
i2c-3            ram10               tty14     tty48  ttyS22     vfio
i2c-4            ram11               tty15     tty49  ttyS23     vga_arbiter
i2c-5            ram12               tty16     tty5   ttyS24     vhci
i2c-6            ram13               tty17     tty50  ttyS25     vhost-net
initctl          ram14               tty18     tty51  ttyS26     watchdog
input            ram15               tty19     tty52  ttyS27     watchdog0
kmsg             ram2                tty2      tty53  ttyS28     zero
lightnvm         ram3                tty20     tty54  ttyS29
log              ram4                tty21     tty55  ttyS3
loop0            ram5                tty22     tty56  ttyS30
Modifié en dernier par zeb le mer. 27 févr. 2019 17:10, modifié 1 fois.
Raison : suppression d'une citation reprenant à 100% le message précédent.
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Re: Webcam HD 720P plus détectée

Message par chataigne73 »

Il n'y a aucune raison qu'elle ne fonctionne pas : elle n'est pas tombée, n'a pas été exposée au soleil etc. et marchait encore très bien il y a quelques mois. Et elle a moins de 2 ans. Mais je n'ai pas moyen de la tester car pas d'ordi non linux mint à la maison.
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Re: Webcam HD 720P plus détectée

Message par chataigne73 »

Je viens de tester sur une session Live et elle est bien détectée et s'allume bien.
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Re: Webcam HD 720P plus détectée

Message par chataigne73 »

Oui bien sûr, j'ai testé tous les ports, et tous fonctionnent avec des clés usb par ex, mais aucun avec la webcam.
Merci pour ta patience !
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Re: Webcam HD 720P plus détectée

Message par chataigne73 »

Le module uvcvideo n'apparaît pas, je recopie tout de même tout ce qui apparaît :

Code : Tout sélectionner

Module                  Size  Used by
rfcomm                 69632  2
drbg                   32768  1
ansi_cprng             16384  0
ctr                    16384  2
ccm                    20480  2
bnep                   20480  2
binfmt_misc            20480  1
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             520192  29 bnep,btbcm,btrtl,btusb,rfcomm,btintel
arc4                   16384  2
iwldvm                233472  0
mac80211              737280  1 iwldvm
intel_powerclamp       16384  0
coretemp               16384  0
kvm                   536576  0
irqbypass              16384  1 kvm
snd_hda_codec_hdmi     53248  1
snd_hda_codec_conexant    24576  1
snd_hda_codec_generic    77824  1 snd_hda_codec_conexant
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
snd_hda_intel          36864  3
snd_hda_codec         135168  4 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel
aesni_intel           167936  4
snd_hda_core           73728  5 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
aes_x86_64             20480  1 aesni_intel
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
thinkpad_acpi          86016  1
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
glue_helper            16384  1 aesni_intel
iwlwifi               200704  1 iwldvm
nvram                  16384  1 thinkpad_acpi
ablk_helper            16384  1 aesni_intel
input_leds             16384  0
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
cryptd                 20480  2 aesni_intel,ablk_helper
snd_rawmidi            32768  1 snd_seq_midi
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
serio_raw              16384  0
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_pcm,snd_seq
snd                    81920  18 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device
cfg80211              565248  3 iwlwifi,mac80211,iwldvm
mei_me                 36864  0
mei                    98304  1 mei_me
soundcore              16384  1 snd
lpc_ich                24576  0
shpchp                 36864  0
mac_hid                16384  0
ip6t_REJECT            16384  1
nf_reject_ipv6         16384  1 ip6t_REJECT
nf_log_ipv6            16384  5
xt_hl                  16384  22
ip6t_rt                16384  3
nf_conntrack_ipv6      20480  8
nf_defrag_ipv6         36864  1 nf_conntrack_ipv6
ipt_REJECT             16384  1
nf_reject_ipv4         16384  1 ipt_REJECT
nf_log_ipv4            16384  5
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
xt_LOG                 16384  10
xt_limit               16384  13
xt_tcpudp              16384  26
xt_addrtype            16384  4
nf_conntrack_ipv4      16384  8
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
xt_conntrack           16384  16
ip6table_filter        16384  1
ip6_tables             28672  1 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             16384  0
nf_nat                 24576  1 nf_nat_ftp
nf_conntrack_ftp       20480  1 nf_nat_ftp
parport_pc             32768  0
nf_conntrack          106496  8 nf_nat_ftp,nf_conntrack_netbios_ns,nf_nat,xt_conntrack,nf_conntrack_broadcast,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_filter         16384  1
ppdev                  20480  0
ip_tables              28672  1 iptable_filter
x_tables               36864  13 ip6table_filter,xt_hl,ip_tables,xt_tcpudp,xt_limit,xt_conntrack,xt_LOG,iptable_filter,ip6t_rt,ipt_REJECT,ip6_tables,xt_addrtype,ip6t_REJECT
lp                     20480  0
parport                49152  3 lp,ppdev,parport_pc
autofs4                40960  2
btrfs                 987136  0
xor                    24576  1 btrfs
raid6_pq              102400  1 btrfs
dm_mirror              24576  0
dm_region_hash         24576  1 dm_mirror
dm_log                 20480  2 dm_region_hash,dm_mirror
i915                 1208320  8
psmouse               126976  0
i2c_algo_bit           16384  1 i915
drm_kms_helper        139264  1 i915
intel_ips              20480  0
ahci                   36864  2
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
libahci                32768  1 ahci
sysimgblt              16384  1 drm_kms_helper
e1000e                237568  0
fb_sys_fops            16384  1 drm_kms_helper
drm                   360448  5 i915,drm_kms_helper
ptp                    20480  1 e1000e
pps_core               20480  1 ptp
wmi                    20480  0
fjes                   28672  0
video                  40960  2 i915,thinkpad_acpi
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Re: Webcam HD 720P plus détectée

Message par chataigne73 »

Hélas, après ces manips, la cam est toujours autant capricieuse.
Voilà ce que ça donne dans le terminal :

Code : Tout sélectionner

rizome nelly # sudo modprobe uvcvideo
rizome nelly # ls -lR /sys/bus/usb/drivers
/sys/bus/usb/drivers:
totalo 0
drwxr-xr-x 2 root root 0 Feb 27 10:07 btusb
drwxr-xr-x 2 root root 0 Feb 27 10:07 hub
drwxr-xr-x 2 root root 0 Feb 27 10:07 usb
drwxr-xr-x 2 root root 0 Feb 27 10:07 usbfs
drwxr-xr-x 2 root root 0 Feb 27 10:52 uvcvideo

/sys/bus/usb/drivers/btusb:
totalo 0
lrwxrwxrwx 1 root root    0 Feb 27 10:53 1-1.4:1.0 -> ../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0
lrwxrwxrwx 1 root root    0 Feb 27 10:53 1-1.4:1.1 -> ../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.1
--w------- 1 root root 4096 Feb 27 10:53 bind
lrwxrwxrwx 1 root root    0 Feb 27 10:53 module -> ../../../../module/btusb
-rw-r--r-- 1 root root 4096 Feb 27 10:53 new_id
-rw-r--r-- 1 root root 4096 Feb 27 10:53 remove_id
--w------- 1 root root 4096 Feb 27 10:07 uevent
--w------- 1 root root 4096 Feb 27 10:53 unbind

/sys/bus/usb/drivers/hub:
totalo 0
lrwxrwxrwx 1 root root    0 Feb 27 10:53 1-0:1.0 -> ../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-0:1.0
lrwxrwxrwx 1 root root    0 Feb 27 10:53 1-1:1.0 -> ../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.0
lrwxrwxrwx 1 root root    0 Feb 27 10:53 2-0:1.0 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-0:1.0
lrwxrwxrwx 1 root root    0 Feb 27 10:53 2-1:1.0 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0
--w------- 1 root root 4096 Feb 27 10:53 bind
lrwxrwxrwx 1 root root    0 Feb 27 10:53 module -> ../../../../module/usbcore
-rw-r--r-- 1 root root 4096 Feb 27 10:53 new_id
-rw-r--r-- 1 root root 4096 Feb 27 10:53 remove_id
--w------- 1 root root 4096 Feb 27 10:07 uevent
--w------- 1 root root 4096 Feb 27 10:53 unbind

/sys/bus/usb/drivers/usb:
totalo 0
lrwxrwxrwx 1 root root    0 Feb 27 10:53 1-1 -> ../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1
lrwxrwxrwx 1 root root    0 Feb 27 10:53 1-1.4 -> ../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4
lrwxrwxrwx 1 root root    0 Feb 27 10:53 2-1 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1
--w------- 1 root root 4096 Feb 27 10:53 bind
--w------- 1 root root 4096 Feb 27 10:07 uevent
--w------- 1 root root 4096 Feb 27 10:53 unbind
lrwxrwxrwx 1 root root    0 Feb 27 10:53 usb1 -> ../../../../devices/pci0000:00/0000:00:1a.0/usb1
lrwxrwxrwx 1 root root    0 Feb 27 10:53 usb2 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2

/sys/bus/usb/drivers/usbfs:
totalo 0
--w------- 1 root root 4096 Feb 27 10:53 bind
lrwxrwxrwx 1 root root    0 Feb 27 10:53 module -> ../../../../module/usbcore
-rw-r--r-- 1 root root 4096 Feb 27 10:53 new_id
-rw-r--r-- 1 root root 4096 Feb 27 10:53 remove_id
--w------- 1 root root 4096 Feb 27 10:07 uevent
--w------- 1 root root 4096 Feb 27 10:53 unbind

/sys/bus/usb/drivers/uvcvideo:
totalo 0
--w------- 1 root root 4096 Feb 27 10:53 bind
lrwxrwxrwx 1 root root    0 Feb 27 10:53 module -> ../../../../module/uvcvideo
-rw-r--r-- 1 root root 4096 Feb 27 10:53 new_id
-rw-r--r-- 1 root root 4096 Feb 27 10:53 remove_id
--w------- 1 root root 4096 Feb 27 10:52 uevent
--w------- 1 root root 4096 Feb 27 10:53 unbind
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
chataigne73
Messages : 25
Enregistré le : mar. 1 nov. 2016 15:45

Re: Webcam HD 720P plus détectée

Message par chataigne73 »

Haa, j'ai parlé trop vite, après redémarrage, ça fonctionne !!
Énorme merci ! Je n'ai rien compris à ce qui s'était passé.
Je passe ce post en résolu :)
Thinkpad Lenovo x201
Linux Mint Sarah 64-bit MATE
Processeur Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
Répondre