[webcam] Problème avec le driver uvcvideo (en cours)

Reconnaissance et configuration du matériel / kernel linux
Répondre
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

[webcam] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

Bonjour à tous,

alors voilà mon souci, on m'a offert une webcam, une Hercules Dualpix Infinite.

Voici ce que me sort lsusb

Code : Tout sélectionner

Bus 001 Device 003: ID 06f8:300a Guillemot Corp.
D'après le lien suivant http://linux-uvc.berlios.de/, ma webcam est supportée par le driver uvcvideo. Ce driver est inclu dans le noyau.

Aprés un

Code : Tout sélectionner

modprobe uvcvideo
Voici ce que me sort la commande lsmod | grep uvc

Code : Tout sélectionner

uvcvideo               68316  0
videodev               42048  1 uvcvideo
v4l1_compat            18228  2 uvcvideo,videodev
usbcore               179504  8 usbhid,snd_usb_audio,snd_usb_lib,uvcvideo,usb_storage,uhci_hcd,ehci_hcd
Je fais bien parti du groupe video.

Lorsque je lance la commande guvcview, j'ai une erreur qui me signale que la webcam n'est pas connectée ou que le pilote n'est pas chargé.

Si je lance guvcview en mode verbose guvcview -v, j'ai cette erreur concernant v4l

Code : Tout sélectionner

video device: /dev/video0
unable to detect video devices on your system (0)
ERROR opening V4L interface: Aucun fichier ou dossier de ce type
Init video returned -1
Je précise que j'ai installé v4l2 mais il semblerait qu'il ne se lance pas. Est-il nécessaire?

Donc voilà, je me tourne vers vous afin de pouvoir faire fonctionner ma webcam.

Merci d'avance
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par tuxce »

que te donne /var/log/messages.log lorsque que tu branches la webcam ou quand tu charges le module (qui normalement devrait être chargé en auto)
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

Vlà ce qui sort du fichier /var/log/message.log lorsque:
- 1ier je supprime le module pour ensuite le remonter
- 2nd je branche la webcam

Code : Tout sélectionner

Sep  9 22:40:00 ArchYo kernel: usb 1-6: USB disconnect, address 3
Sep  9 22:40:27 ArchYo kernel: usbcore: deregistering interface driver uvcvideo
Sep  9 22:40:31 ArchYo kernel: Linux video capture interface: v2.00
Sep  9 22:40:31 ArchYo kernel: usbcore: registered new interface driver uvcvideo
Sep  9 22:40:31 ArchYo kernel: USB Video Class driver (v0.1.0)
Sep  9 22:40:42 ArchYo kernel: usb 1-6: new high speed USB device using ehci_hcd and address 4
Sep  9 22:40:42 ArchYo kernel: usb 1-6: configuration #1 chosen from 1 choice
Sep  9 22:40:42 ArchYo kernel: uvcvideo: Found UVC 1.00 device Hercules Dualpix Infinite (06f8:300a)
Sep  9 22:40:42 ArchYo kernel: uvcvideo: No valid video chain found.
Sep  9 22:40:42 ArchYo kernel: 4:3:1: cannot get freq at ep 0x84
D'aprés ce que je comprends, il y a un problème au chargement du module.
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par tuxce »

pas une très bonne nouvelle et qui est confirmée par ce mail:
http://lists.berlios.de/pipermail/linux ... 04747.html
elle m'a pas l'air d'être prise en compte par uvc ...
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

Donc sur le site uvcvideo, c'est de la publicité mensongère lol. Bon alors ca veut dire qu'il n'y aucun driver qui la supporte ou il y en a un mais pas uvcvideo????

Merci pour vos réponses (même si elles sont mauvaises :lol: )
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par tuxce »

Yobar73 a écrit :Donc sur le site uvcvideo, c'est de la publicité mensongère
je me suis basé sur le mail, mais il est possible qu'il y ait une version plus à jour que celle d'arch ou que ça soit pris en compte en développement mais pas encore sorti ou tout simplement je fais fausse route. :|
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

Alors j'ai essayé d'installer la dernière version mais j'ai une erreur au niveau de la compilation du driver.
J'utilise donc la version disponible sur mercurial, quand je fais un make, j'obtiens l'erreur

Code : Tout sélectionner

 CC [M]  /home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-avc.o                     
  CC [M]  /home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-ci.o                      
  CC [M]  /home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-dvb.o                     
  CC [M]  /home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-fe.o                      
  CC [M]  /home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.o                    
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:21:17: error: dma.h: No such file or directory                                                             
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:22:21: error: csr1212.h: No such file or directory                                                         
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:23:23: error: highlevel.h: No such file or directory                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:24:19: error: hosts.h: No such file or directory                                                           
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:25:22: error: ieee1394.h: No such file or directory                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:26:17: error: iso.h: No such file or directory                                                             
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:27:21: error: nodemgr.h: No such file or directory                                                         
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:37: warning: 'struct hpsb_iso' declared inside parameter list                                              
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:37: warning: its scope is only this definition or declaration, which is probably not what you want         
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'rawiso_activity_cb':                                                                         
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:53: error: dereferencing pointer to incomplete type                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:54: error: implicit declaration of function 'hpsb_iso_n_ready'                                             
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:61: error: dereferencing pointer to incomplete type                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:62: error: implicit declaration of function 'dma_region_i'                                                 
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:62: error: dereferencing pointer to incomplete type                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:62: error: expected expression before 'unsigned'                                                           
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:63: warning: assignment makes pointer from integer without a cast                                          
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:64: error: dereferencing pointer to incomplete type                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:68: error: dereferencing pointer to incomplete type                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:82: error: implicit declaration of function 'hpsb_iso_recv_release_packets'                                
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'node_of':      
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:87: error: dereferencing pointer to incomplete type                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:87: warning: type defaults to 'int' in declaration of '__mptr'                                             
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:87: warning: initialization from incompatible pointer type                                                 
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:87: error: invalid use of undefined type 'struct unit_directory'                                           
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'node_lock':    
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:92: error: implicit declaration of function 'hpsb_node_lock'                                               
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:92: error: 'EXTCODE_COMPARE_SWAP' undeclared (first use in this function)                                  
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:92: error: (Each undeclared identifier is reported only once                                               
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:92: error: for each function it appears in.)                                                               
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:93: error: 'quadlet_t' undeclared (first use in this function)                                             
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:93: error: expected ')' before 'arg'                                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'node_read':    
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:98: error: implicit declaration of function 'hpsb_node_read'                                               
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'node_write':   
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:103: error: implicit declaration of function 'hpsb_node_write'                                             
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'start_iso':    
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:114: error: implicit declaration of function 'hpsb_iso_recv_init'                                          
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:114: error: dereferencing pointer to incomplete type                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:116: error: 'HPSB_ISO_DMA_DEFAULT' undeclared (first use in this function)                                 
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:118: warning: assignment makes pointer from integer without a cast                                         
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:125: error: implicit declaration of function 'hpsb_iso_recv_start'                                         
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:128: error: implicit declaration of function 'hpsb_iso_shutdown'                                           
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'stop_iso':     
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:139: error: implicit declaration of function 'hpsb_iso_stop'                                               
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: At top level:               
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:154: warning: 'struct hpsb_host' declared inside parameter list                                            
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'fcp_request':  
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:167: error: dereferencing pointer to incomplete type                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:168: error: dereferencing pointer to incomplete type                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'node_probe':   
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:182: error: dereferencing pointer to incomplete type                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:182: warning: type defaults to 'int' in declaration of '__mptr'                                            
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:182: warning: initialization from incompatible pointer type                                                
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:182: error: invalid use of undefined type 'struct unit_directory'                                          
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:187: error: dereferencing pointer to incomplete type                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:187: error: 'quadlet_t' undeclared (first use in this function)                                            
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:188: error: implicit declaration of function 'CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA'                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:188: error: dereferencing pointer to incomplete type                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:188: warning: assignment makes pointer from integer without a cast                                         
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: At top level:               
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:243: warning: 'struct unit_directory' declared inside parameter list                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'node_update':  
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:245: error: dereferencing pointer to incomplete type                                                       
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: At top level:               
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:253: error: variable 'fdtv_driver' has initializer but incomplete type                                     
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:254: error: unknown field 'name' specified in initializer                                                  
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:254: warning: excess elements in struct initializer                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:254: warning: (near initialization for 'fdtv_driver')                                                      
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:255: error: unknown field 'update' specified in initializer                                                
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:255: warning: excess elements in struct initializer                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:255: warning: (near initialization for 'fdtv_driver')                                                      
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:256: error: unknown field 'driver' specified in initializer                                                
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:256: error: extra brace group at end of initializer                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:256: error: (near initialization for 'fdtv_driver')                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:259: warning: excess elements in struct initializer                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:259: warning: (near initialization for 'fdtv_driver')                                                      
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:262: error: variable 'fdtv_highlevel' has initializer but incomplete type                                  
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:263: error: unknown field 'name' specified in initializer                                                  
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:263: warning: excess elements in struct initializer                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:263: warning: (near initialization for 'fdtv_highlevel')                                                   
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:264: error: unknown field 'fcp_request' specified in initializer                                           
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:264: warning: excess elements in struct initializer                                                        
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:264: warning: (near initialization for 'fdtv_highlevel')
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'fdtv_1394_init':
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:271: error: implicit declaration of function 'hpsb_register_highlevel'
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:272: error: invalid use of undefined type 'struct hpsb_protocol_driver'
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:273: error: implicit declaration of function 'hpsb_register_protocol'
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:276: error: implicit declaration of function 'hpsb_unregister_highlevel'
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c: In function 'fdtv_1394_exit':
/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.c:283: error: implicit declaration of function 'hpsb_unregister_protocol'
make[3]: *** [/home/yohann/uvcvideo/v4l-dvb/v4l/firedtv-1394.o] Error 1
make[2]: *** [_module_/home/yohann/uvcvideo/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.30-ARCH'
make[1]: *** [default] Erreur 2
make[1]: quittant le répertoire « /home/yohann/uvcvideo/v4l-dvb/v4l »
make: *** [all] Erreur 2
Voilà, je ne sais pas d'où vient cette erreur. Merci pour votre aide.
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17222
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par benjarobin »

Il ne te manquerai pas les header du kernel ? Enfin je suis pas sur mon pc pour faire un locate de ces .h manquant, mais on dirai, je dis bien dirai qu'il cherche des drivers du noyau
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

Voilà ce que me donne yaourt header
1 core/kernel-headers 2.6.30.5-1 [installé] (base)
Kernel headers sanitized for use in userspace

Donc apparement header est bien installé
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17222
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par benjarobin »

Sinon regarde si tu as ces fichiers sur ton système déjà, avec locate tonfichier.h
Sinon google pour trouver quel paquet contient c'est .h
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

J'ai essayé la technique préconisée précédemment, mais aucun résultat, tous les paquets, sont déjà installés. Je les ai réinstallés mais sans résultat, je bloque toujours au niveau de la compilation de uvcvideo.

Je ne comprends pas car d'après certain, ma webcam fonctionne mais eux sont sous ubuntu par exemple???? Je ne comprends pas quoi faire.
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

Je me permets de revenir sur ce sujet. Alors maintenant, ma webcam fonctionne correctement avec le driver uvcvideo. Cependant, après chaque démarrage, je dois débrancher ma webcam et la rebrancher pour que le micro soit reconnu correctement (la vidéo fonctionne correctement).

J'ai essayé de démonter les modules v4l2_compat_ioctl32, uvcvideo, videodev etc... et les recharger mais rien n'y fait. Pour que le micro fonctionne je dois faire la manipulation citée précédemment.

Pouvez-vous m'éclairer?

Merci d'avance
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Avatar de l’utilisateur
karhu
Maître du Kyudo
Messages : 1195
Inscription : lun. 27 sept. 2010, 14:32
Localisation : Ile de France

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par karhu »

Bonjour
J'ai eu le problème inverse pour le micro et le son. Ceux qui prenaient la main étaient ceux de la webcam, helas inexistants matérielement mais inclus dans le pilote.
Je suppose que tu dois avoir une carte son, ou tout au moins une puce audio sur ta carte.
Si tu ne souhaites utiliser que ta webcam pour l'image et le son tu dois "blacklister" le pilote de la carte, ou au moins forcer l'entrée audio de la caméra par rapport à la carte.
Peut être qu'il est possible de le désactiver avec alsamixer (si tu utilise alsa), mais je n'ai pas essayé.
Karhu.
S'il n'y a pas de solution, c'est qu'il n'y a pas de problème.
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

Disons que je voudrais utiliser les deux au démarrage.

Le fait est que si je démarre directement une communication via SKYPE, la vidéo fonctionne mais pas le micro, ce qui n'est pas très utile.

Si je débranche la webcam et la rebranche juste après, je peux avoir une communication vidéophonique fonctionnelle.

Ce que je ne comprends pas est la différence entre le débranchement physique de la webcam et le démontage/montage du module prenant en charge ma webcam?
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Avatar de l’utilisateur
karhu
Maître du Kyudo
Messages : 1195
Inscription : lun. 27 sept. 2010, 14:32
Localisation : Ile de France

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par karhu »

Je ne peux pas l'expliquer réellement. Je suppose fortement l'ordre de chargement des modules, c'est tout.
Le fait que lorsque tu branche ta webcam sur un système déjà démarré elle est prise en compte entièrement semble montrer un comportement différent dans le chargement du pilote à l'insertion et à l'initialisation.
Si tes enceintes fonctionnent et donc ce n'est que le micro qui pose problème, tente de 'blacklister" que le module snd-xxx correspondant à celui de ta carte.
Karhu.
S'il n'y a pas de solution, c'est qu'il n'y a pas de problème.
Yobar73
archer de cavalerie
Messages : 163
Inscription : sam. 22 mars 2008, 11:46
Localisation : NANTES (44)

Re: [WEBCAM] Problème avec le driver uvcvideo (en cours)

Message par Yobar73 »

Après une recherche approfondie, il se trouve que le module qui est mal chargé est le module "ehci_hcd".

Juste après un démarrage, si je le décharge manuellement puis le recharge via les commandes suivantes:

Code : Tout sélectionner

rmmod ehci_hcd
puis

Code : Tout sélectionner

modprobe ehci_hcd
Ma webcam fonctionne tout de suite sans avoir à la débrancher comme je l'avais signalé précédemment.

Mon problème est que je n'arrive pas à décharger au démarrage le module puis le recharger automatiquement.

Si je blackliste le module ehci_hcd dans /etc/rc.conf et que je charge le module après un redémarrage, ça ne fonctionne pas.

Il faut nécessairement que je démonte le module "ehci_hcd" et le recharger après pour que ça fonctionne.

Je viens d'essayer d'ajouter les commandes suivantes dans /etc/rc.local:

Code : Tout sélectionner

/sbin/rmmod ehci_hcd
/sbin/modprobe ehci_hcd
Mais en vain

Est-il possible que ça soit KDE4.6 qui charge mal le module ou qui charge le mauvais module webcam?
Pouvez-vous m'aider SVP?
ArchLinux 64 bits / i3wm
Asus B150 + Ryzen 5 1600 + ZOTAC GTX1060 + SSD + 16 Go de RAM
Répondre