Re: comment conserver la persistance d'un micro usb [très long]
----- Mail original -----
> De: "Bernard Schoenacker" <bernard.schoenacker@free.fr>
> À: "Liste Debian" <debian-user-french@lists.debian.org>
> Envoyé: Vendredi 9 Novembre 2018 22:21:16
> Objet: comment conserver la persistance d'un micro usb
>
> bonjour,
>
> j'ai un problème avec la reconnaissance d'un micro
>
> voici ce que lsusb me donne (extrait) :
>
> Bus 002 Device 018: ID 145f:025c Trust
>
>
> et quelques temps après je n'ai plus rien
>
> lsusb
> Bus 003 Device 002: ID 8087:8001 Intel Corp.
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 001 Device 002: ID 8087:8009 Intel Corp.
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 002 Device 007: ID 0463:ffff MGE UPS Systems UPS
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> je n'ai plus rien à l'adresse :
> Bus 002 Device 018: ID 145f:025c Trust
>
> si je débranche et je rebranche j'obtiens à nouveau le device
>
> comment faire ?
>
> merci
> slt
> bernard
>
bonjour,
voici les caractéristiques du micro :
lsusb --verbose (extrait)
Bus 002 Device 033: ID 145f:025c Trust
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x145f Trust
idProduct 0x025c
bcdDevice 1.00
iManufacturer 0
iProduct 1 (error)
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 141
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 0
iInterface 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 46
bInCollection 1
baInterfaceNr( 0) 1
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 2
wTerminalType 0x0201 Microphone
bAssocTerminal 0
bNrChannels 1
wChannelConfig 0x0000
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 18
wTerminalType 0x0101 USB Streaming
bAssocTerminal 2
bSourceID 33
iTerminal 0
AudioControl Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 5 (SELECTOR_UNIT)
bUnitID 33
bNrInPins 1
baSource( 0) 50
iSelector 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 50
bSourceID 2
bControlSize 1
bmaControls( 0) 0x03
Mute Control
Volume Control
bmaControls( 1) 0x00
iFeature 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 18
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 11
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 1
bSubframeSize 2
bBitResolution 16
bSamFreqType 1 Discrete
tSamFreq[ 0] 48000
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 5
Transfer Type Isochronous
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x00c8 1x 200 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x01
Sampling Frequency
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 62
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 32
Device Status: 0x0000
(Bus Powered)
lsmod | grep snd
snd_usb_audio 249856 1
snd_usbmidi_lib 36864 1 snd_usb_audio
snd_vx_lib 49152 0
snd_mixart 57344 0
snd_emux_synth 49152 0
snd_util_mem 16384 1 snd_emux_synth
snd_seq_midi_emul 20480 1 snd_emux_synth
snd_seq_virmidi 16384 1 snd_emux_synth
snd_seq_midi 16384 0
snd_seq_midi_event 16384 2 snd_seq_midi,snd_seq_virmidi
snd_seq 81920 5 snd_seq_midi,snd_seq_midi_event,snd_seq_virmidi,snd_seq_midi_emul,snd_emux_synth
snd_rawmidi 40960 3 snd_seq_midi,snd_usbmidi_lib,snd_seq_virmidi
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
snd_hda_codec_realtek 110592 1
snd_hda_codec_hdmi 61440 1
snd_hda_codec_generic 86016 1 snd_hda_codec_realtek
snd_soc_rt5640 126976 0
snd_hda_intel 45056 5
snd_hda_codec 151552 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_soc_rl6231 16384 1 snd_soc_rt5640
snd_soc_core 253952 1 snd_soc_rt5640
snd_hda_core 94208 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep 20480 3 snd_usb_audio,snd_hda_codec,snd_emux_synth
snd_compress 24576 1 snd_soc_core
snd_pcm_oss 61440 0
snd_mixer_oss 28672 1 snd_pcm_oss
snd_pcm 118784 11 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_soc_rt5640,snd_vx_lib,snd_pcm_oss,snd_soc_core,snd_hda_core,snd_mixart
snd_timer 36864 2 snd_seq,snd_pcm
snd 94208 32 snd_hda_codec_generic,snd_seq,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_compress,snd_vx_lib,snd_pcm_oss,snd_seq_virmidi,snd_soc_core,snd_emux_synth,snd_pcm,snd_rawmidi,snd_mixart,snd_mixer_oss
soundcore 16384 1 snd
usbcore 290816 36 whci_hcd,ipaq,usbserial,usbdux,xhci_hcd,ir_usb,usbmon,wusbcore,zaurus,microtek,usbduxfast,hwa_rc,ehci_pci,usbnet,cdc_subset,ti_usb_3410_5052,snd_usb_audio,usbhid,snd_usbmidi_lib,usblp,usb_storage,usb_wwan,ehci_hcd,wusb_wa,io_ti,xhci_pci,navman,cdc_ether,uas,ums_datafab,comedi_usb,mdc800,usbtmc,garmin_gps,option
cat /dev/sndstat
cat: /dev/sndstat: Aucun fichier ou dossier de ce type
cat /proc/asound/pcm
00-00: ALC887-VD Analog : ALC887-VD Analog : playback 1 : capture 1
00-01: ALC887-VD Digital : ALC887-VD Digital : playback 1
00-02: ALC887-VD Alt Analog : ALC887-VD Alt Analog : capture 1
01-03: HDMI 0 : HDMI 0 : playback 1
02-00: USB Audio : USB Audio : capture 1
ls -al /dev/snd/
total 0K
drwxr-xr-x 4 root root 340 nov. 9 22:33 ./
drwxr-xr-x 22 root root 4680 nov. 9 22:33 ../
drwxr-xr-x 2 root root 60 nov. 9 22:33 by-id/
drwxr-xr-x 2 root root 100 nov. 9 22:33 by-path/
crw-rw----+ 1 root audio 116, 10 nov. 9 20:36 controlC0
crw-rw----+ 1 root audio 116, 4 nov. 9 20:36 controlC1
crw-rw----+ 1 root audio 116, 12 nov. 9 22:33 controlC2
crw-rw----+ 1 root audio 116, 9 nov. 9 20:36 hwC0D0
crw-rw----+ 1 root audio 116, 3 nov. 9 20:36 hwC1D0
crw-rw----+ 1 root audio 116, 6 nov. 9 21:57 pcmC0D0c
crw-rw----+ 1 root audio 116, 5 nov. 9 21:58 pcmC0D0p
crw-rw----+ 1 root audio 116, 7 nov. 9 20:46 pcmC0D1p
crw-rw----+ 1 root audio 116, 8 nov. 9 20:36 pcmC0D2c
crw-rw----+ 1 root audio 116, 2 nov. 9 20:46 pcmC1D3p
crw-rw----+ 1 root audio 116, 11 nov. 9 22:33 pcmC2D0c
crw-rw----+ 1 root audio 116, 1 nov. 9 20:37 seq
crw-rw----+ 1 root audio 116, 33 nov. 9 20:36 timer
arecord --list-pcms
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Front speakers
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=2
HDA Intel PCH, ALC887-VD Alt Analog
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=2
HDA Intel PCH, ALC887-VD Alt Analog
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=2
HDA Intel PCH, ALC887-VD Alt Analog
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0cat /proc/asound/pcm
00-00: ALC887-VD Analog : ALC887-VD Analog : playback 1 : capture 1
00-01: ALC887-VD Digital : ALC887-VD Digital : playback 1
00-02: ALC887-VD Alt Analog : ALC887-VD Alt Analog : capture 1
01-03: HDMI 0 : HDMI 0 : playback 1
02-00: USB Audio : USB Audio : capture 1
HDA Intel PCH, ALC887-VD Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=2
HDA Intel PCH, ALC887-VD Alt Analog
Hardware device with all software conversions
default:CARD=Microphone
Trust USB Microphone, USB Audio
Default Audio Device
sysdefault:CARD=Microphone
Trust USB Microphone, USB Audio
Default Audio Device
front:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
Front speakers
surround21:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
Direct sample mixing device
dsnoop:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
Direct sample snooping device
hw:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
Direct hardware device without any conversions
plughw:CARD=Microphone,DEV=0
Trust USB Microphone, USB Audio
Hardware device with all software conversions
arecord --list-devices
**** Liste des Périphériques Matériels CAPTURE ****
carte 0: PCH [HDA Intel PCH], périphérique 0: ALC887-VD Analog [ALC887-VD Analog]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
carte 2: Microphone [Trust USB Microphone], périphérique 0: USB Audio [USB Audio]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
cat /proc/asound/pcm
00-00: ALC887-VD Analog : ALC887-VD Analog : playback 1 : capture 1
00-01: ALC887-VD Digital : ALC887-VD Digital : playback 1
00-02: ALC887-VD Alt Analog : ALC887-VD Alt Analog : capture 1
01-03: HDMI 0 : HDMI 0 : playback 1
02-00: USB Audio : USB Audio : capture 1
j'ai aussi un début de piste pour audacity (source de l'information) :
https://wiki.audacityteam.org/index.php?title=USB_mic_on_Linux
j'ai fait un essai d'enregistrement avec vokoscreen et j'ai du son ...
j'ai fait un essai d'entrée dans discord et ça à l'air de fonctionner mais
c'est à approfondir
merci
slt
bernard
Reply to: