Je possède un ordinateur portable MSI Apache pro ge60 2pe (https://www.ldlc.com/fiche/PB00165513.html) sur lequel je viens d'installer Ubuntu 19.04 en dual boot avec windows. Cependant, depuis quelques temps, la webcam intégrée (BisonCam Pro) n'est plus détectée ni sur windows, et pas sur la nouvelle installation de linux. J'espérais pouvoir venir à bout de ce problème (surtout sur linux en ayant plus de contrôle) mais après un bon moment de recherche je ne trouve toujours pas ni la cause du problème, ni de solutions ...
J'ai installé cheese pour voir si il était capable de détecter la webcam mais tout ce que j'en tire c'est le message "Aucun périphérique détecté" ou "Une erreur est survenue pendant la lecture de la vidéo de la webcam".
Avec la commande dmesg -w j'obtiens la sortie suivante lorsque j'active la webcam avec Fn + F6 :
[10413.762766] input: BisonCam, NB Pro: BisonCam, NB as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input63
[10414.076968] usb 1-1.4: USB disconnect, device number 75
[10414.266038] usb 1-1.4: new high-speed USB device number 76 using ehci-pci
[10414.397445] usb 1-1.4: New USB device found, idVendor=5986, idProduct=0248, bcdDevice= 3.21
[10414.397447] usb 1-1.4: New USB device strings: Mfr=6, Product=2, SerialNumber=0
[10414.397448] usb 1-1.4: Product: BisonCam, NB Pro
[10414.415717] uvcvideo: Found UVC 1.00 device BisonCam, NB Pro (5986:0248)
[10414.419938] uvcvideo: Failed to query (GET_INFO) UVC control 3 on unit 1: -71 (exp. 1).
[10414.424182] uvcvideo: Failed to query (GET_INFO) UVC control 2 on unit 2: -71 (exp. 1).
[10414.428432] uvcvideo: Failed to query (GET_INFO) UVC control 3 on unit 2: -71 (exp. 1).
[10414.432680] uvcvideo: Failed to query (GET_INFO) UVC control 6 on unit 2: -71 (exp. 1).
[10414.436937] uvcvideo: Failed to query (GET_INFO) UVC control 7 on unit 2: -71 (exp. 1).
[10414.441182] uvcvideo: Failed to query (GET_INFO) UVC control 8 on unit 2: -71 (exp. 1).
[10414.445433] uvcvideo: Failed to query (GET_INFO) UVC control 9 on unit 2: -71 (exp. 1).
[10414.449681] uvcvideo: Failed to query (GET_INFO) UVC control 10 on unit 2: -71 (exp. 1).
[10414.453931] uvcvideo: Failed to query (GET_INFO) UVC control 1 on unit 2: -71 (exp. 1).
[10414.458178] uvcvideo: Failed to query (GET_INFO) UVC control 4 on unit 2: -71 (exp. 1).
[10414.462428] uvcvideo: Failed to query (GET_INFO) UVC control 5 on unit 2: -71 (exp. 1).
[10414.466679] uvcvideo: Failed to query (GET_INFO) UVC control 11 on unit 2: -71 (exp. 1).
[10414.475184] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[10414.479437] uvcvideo: Failed to query (129) UVC probe control : -71 (exp. 26).
[10414.479439] uvcvideo: Failed to initialize the device (-5).
[10414.588938] usb 1-1.4: USB disconnect, device number 76
[10414.762091] usb 1-1.4: new high-speed USB device number 77 using ehci-pci
[10414.881071] usb 1-1.4: New USB device found, idVendor=5986, idProduct=0248, bcdDevice= 3.21
[10414.881073] usb 1-1.4: New USB device strings: Mfr=6, Product=2, SerialNumber=0
[10414.881075] usb 1-1.4: Product: BisonCam, NB Pro
[10414.884320] uvcvideo: Found UVC 1.00 device BisonCam, NB Pro (5986:0248)
[10414.913701] uvcvideo 1-1.4:1.0: Entity type for entity Processing 2 was not initialized!
[10414.913704] uvcvideo 1-1.4:1.0: Entity type for entity Extension 6 was not initialized!
[10414.913705] uvcvideo 1-1.4:1.0: Entity type for entity Camera 1 was not initialized!
[10414.913767] input: BisonCam, NB Pro: BisonCam, NB as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input64
[10415.356949] usb 1-1.4: USB disconnect, device number 77
[10415.541105] usb 1-1.4: new high-speed USB device number 78 using ehci-pci
[10415.660436] usb 1-1.4: New USB device found, idVendor=5986, idProduct=0248, bcdDevice= 3.21
[10415.660438] usb 1-1.4: New USB device strings: Mfr=6, Product=2, SerialNumber=0
[10415.660439] usb 1-1.4: Product: BisonCam, NB Pro
[10415.663698] uvcvideo: Found UVC 1.00 device BisonCam, NB Pro (5986:0248)
[10415.693200] uvcvideo 1-1.4:1.0: Entity type for entity Processing 2 was not initialized!
[10415.693202] uvcvideo 1-1.4:1.0: Entity type for entity Extension 6 was not initialized!
[10415.693203] uvcvideo 1-1.4:1.0: Entity type for entity Camera 1 was not initialized!
[10415.693263] input: BisonCam, NB Pro: BisonCam, NB as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input65
[10423.293126] usb 1-1.4: USB disconnect, device number 78
[10437.800365] usb 1-1.4: new high-speed USB device number 79 using ehci-pci
[10437.919708] usb 1-1.4: New USB device found, idVendor=5986, idProduct=0248, bcdDevice= 3.21
[10437.919711] usb 1-1.4: New USB device strings: Mfr=6, Product=2, SerialNumber=0
[10437.919712] usb 1-1.4: Product: BisonCam, NB Pro
[10437.922975] uvcvideo: Found UVC 1.00 device BisonCam, NB Pro (5986:0248)
[10437.952490] uvcvideo 1-1.4:1.0: Entity type for entity Processing 2 was not initialized!
[10437.952492] uvcvideo 1-1.4:1.0: Entity type for entity Extension 6 was not initialized!
[10437.952493] uvcvideo 1-1.4:1.0: Entity type for entity Camera 1 was not initialized!
[10437.952551] input: BisonCam, NB Pro: BisonCam, NB as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input66
De plus, j'ai un fichier de log (uvcdynctrl-udev.log) qui se rempli de façon inquiétante (rempli le disque dur complètement) avec le message d'erreur suivant :
[libwebcam] Warning: The driver behind device video0 has a slightly buggy implementation
of the V4L2_CTRL_FLAG_NEXT_CTRL flag. It does not return the next higher
control ID if a control query fails. A workaround has been enabled.
Je tiens à indiquer que le problème est apparu depuis que j'ai supprimé le dual boot que j'avais précédemment sur mon HDD (windows / linux) pour installer Linux sur un SSD que je viens d'acheter. Ma première idée serait que la suppression de l'installation du boot linux et la réparation du boot windows en utilisant la clef-usb sur laquelle j'ai mon windows a provoqué un disfonctionnement de la webcam. Seulement, comme je n'y connais pas grand chose, je suis incapable de faire un réel diagnostique sur le problème, à savoir si c'est matériel ou logiciel...
Du coup j'ai essayé avec streamer et j'obtiens constamment le même résultat, en essayant de démarrer la webcam ou pas :
streamer -o foobar.jpeg
files / video: JPEG (JFIF) / audio: none
v4l2: open /dev/video0: No such file or directory
vid-open: failed: libv4l
no grabber device available
Ce qui est étonnant, c'est que des fois elle semble bien être sur video0 et dans ce cas, si je lance streamer j'ai le message suivant en boucle :
ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x1 [MAPPED];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=MMAP): No such device
J'ai fait un lsusb pour voir si la webcam figurait parmi la liste des appareils usb :
lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
|__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 3: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 3: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 4: Dev 32, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 4: Dev 32, If 1, Class=Video, Driver=uvcvideo, 480M
et j'ai fait
ls -ltrh /dev/video*
crw------- 1 root root 81, 2 avril 21 13:26 /dev/video2
crw------- 1 root root 81, 1 avril 21 13:26 /dev/video1
J'ai aussi installé libv4l-dev et v4l-utils pour voir si c'était le bon appareil de détecté :
jeremy@jeremy-GE60-2PE:~$ v4l2-ctl --list-devices
BisonCam, NB Pro: BisonCam, NB (usb-0000:00:1a.0-1.4):
/dev/video0
/dev/video1
jeremy@jeremy-GE60-2PE:~$ streamer -o foobar.jpeg
files / video: JPEG (JFIF) / audio: none
v4l2: open /dev/video0: No such file or directory
vid-open: failed: libv4l
no grabber device available
Est-ce que cela veut dire que la webcam est redirigée sur une autre entrée vidéo que celle attendue ?
Ceux qui ne peuvent tirer d'enseignements de l'histoire sont condamnés à la répéter. George.S
Tout préjugé est lié à un manque d'information -- Anonyme