Chargement...
 
Skip to main content

1 - Le matériel et les pilotes ALSA, FFADO, ...


[RESOLU] Besoin d'aide pour configurer ma Focusrite Scarlett 18i20 2nd gen (episode 2)

Bonjour, je possède depuis quelques année une Focusrite 18i20 2nd gen dont je suis pleinement satisfait. J'ai d'ailleurs déjà sollicité de l'aide ici et ici 😊

Cette année j'ai prêté cette carte son à un ami et utilisé une 2i2 à la place. Je n'ai pas changé la configuration de jack mis à part pour le nombre d'entrées et de sorties.
La personne à qui j'ai prêté la carte son me dit qu'elle a arrêté de fonctionner depuis qu'il l'a branchée sur un ordinateur avec Ubuntu fraîchement installé. Je n'ai pas plus d'info et ça me semble hautement improbable. Il a aussi essayé de la faire fonctionner sur debian et manjaro sans succès.

Maintenant je n'arrive plus à avoir de son alors que :
- tout est ok avec la 2i2
- depuis un macbook, tout fonctionne très bien (j'en ai donc profité pour réinitialiser la carte son aux paramètres d'usine depuis le logiciel propriétaire focusrite control, non disponible sur linux)

Contrairement à ce qui était le cas avant, lorsque je branche la carte son sur mon pc, le voyant "clock syncronisation" à l'avant de la carte son ne s'allume plus, alors qu'il est allumé quand je suis branché sur le macbook.

Aussi, lorsque je branche un micro sur une des entrées, la carte son ne réagit pas du tout, même avec le gain à fond.

Enfin, après avoir lancé jack depuis Cadence, lorsque je joue un fichier audio dans VLC (par exemple), pulseaudio semble bien détecter du son puisque le "vu-metre" bouge dans pavucontrol pour "Jack Sink" :
Capture D’écran De 2020 07 25 21 42 26

Autre différence, voici ce que je vois dans alsamixer :
Capture D’écran De 2020 07 25 21 36 19

Alors que d'après mon ancien post je suis censé voir ceci :
Dl6869

A titre informatif, je suis sous Arch Linux à jour avec Gnome.

Voici ma configuration actuelle dans Cadence (jack se lance avec ou sans "monitor", "hardware monitoring" et hardware metering") :
Capture D’écran De 2020 07 25 21 33 28
Capture D’écran De 2020 07 25 21 33 44
Capture D’écran De 2020 07 25 21 34 25

Et voici les logs de jack :
Copy to clipboard
Sat Jul 25 21:34:18 2020: Starting jack server... Sat Jul 25 21:34:18 2020: JACK server starting in realtime mode with priority 95 Sat Jul 25 21:34:18 2020: self-connect-mode is "Don't restrict self connect requests" Sat Jul 25 21:34:18 2020: Acquired audio card Audio2 Sat Jul 25 21:34:18 2020: creating alsa driver ... hw:USB,0|hw:USB,0|256|2|48000|0|0|hwmon|hwmeter|-|32bit Sat Jul 25 21:34:18 2020: configuring for 48000Hz, period = 256 frames (5.3 ms), buffer = 2 periods Sat Jul 25 21:34:18 2020: ALSA: final selected sample format for capture: 32bit integer little-endian Sat Jul 25 21:34:18 2020: ALSA: use 2 periods for capture Sat Jul 25 21:34:18 2020: ALSA: final selected sample format for playback: 32bit integer little-endian Sat Jul 25 21:34:18 2020: ALSA: use 2 periods for playback Sat Jul 25 21:34:18 2020: ERROR: Cannot use real-time scheduling (RR/95) (1: Operation not permitted) Sat Jul 25 21:34:18 2020: ERROR: AcquireSelfRealTime error Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_1' Sat Jul 25 21:34:18 2020: New client 'system' with PID 0 Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_2' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_3' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_4' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_5' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_6' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_7' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_8' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_9' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_10' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_11' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_12' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_13' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_14' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_15' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_16' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_17' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:capture_18' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_1' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_1' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_2' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_2' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_3' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_3' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_4' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_4' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_5' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_5' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_6' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_6' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_7' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_7' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_8' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_8' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_9' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_9' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_10' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_10' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_11' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_11' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_12' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_12' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_13' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_13' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_14' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_14' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_15' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_15' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_16' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_16' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_17' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_17' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_18' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_18' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_19' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_19' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:playback_20' Sat Jul 25 21:34:18 2020: graph reorder: new port 'system:monitor_20' Sat Jul 25 21:34:18 2020: New client 'PulseAudio JACK Sink' with PID 1124 Sat Jul 25 21:34:18 2020: New client 'a2j' with PID 2274 Sat Jul 25 21:34:18 2020: Connecting 'PulseAudio JACK Sink:front-left' to 'system:playback_1' Sat Jul 25 21:34:18 2020: Connecting 'PulseAudio JACK Sink:front-right' to 'system:playback_2' Sat Jul 25 21:34:18 2020: New client 'PulseAudio JACK Source' with PID 1124 Sat Jul 25 21:34:18 2020: Connecting 'system:capture_1' to 'PulseAudio JACK Source:front-left' Sat Jul 25 21:34:18 2020: Connecting 'system:capture_2' to 'PulseAudio JACK Source:front-right'


Quand je stop jack depuis cadence, voici les logs
Copy to clipboard
Sat Jul 25 21:35:02 2020: Client 'a2j' with PID 2274 is out Sat Jul 25 21:35:02 2020: Stopping jack server... Sat Jul 25 21:35:02 2020: Client 'system' with PID 0 is out Sat Jul 25 21:35:02 2020: Client 'PulseAudio JACK Sink' with PID 1124 is out Sat Jul 25 21:35:02 2020: Client 'PulseAudio JACK Source' with PID 1124 is out Sat Jul 25 21:35:02 2020: ERROR: Cannot write socket fd = 31 err = Broken pipe Sat Jul 25 21:35:02 2020: ERROR: CheckRes error Sat Jul 25 21:35:02 2020: ERROR: Could not write notification Sat Jul 25 21:35:02 2020: ERROR: ClientNotify fails name = system notification = 1 val1 = 0 val2 = 0 Sat Jul 25 21:35:02 2020: ERROR: Cannot write socket fd = 43 err = Broken pipe Sat Jul 25 21:35:02 2020: ERROR: CheckRes error Sat Jul 25 21:35:02 2020: ERROR: Could not write notification Sat Jul 25 21:35:02 2020: ERROR: ClientNotify fails name = system notification = 1 val1 = 0 val2 = 0 Sat Jul 25 21:35:02 2020: Released audio card Audio2 Sat Jul 25 21:35:02 2020: ERROR: Cannot write socket fd = 31 err = Broken pipe Sat Jul 25 21:35:02 2020: ERROR: CheckRes error Sat Jul 25 21:35:02 2020: ERROR: Could not write notification Sat Jul 25 21:35:02 2020: ERROR: ClientNotify fails name = freewheel notification = 1 val1 = 0 val2 = 0 Sat Jul 25 21:35:02 2020: ERROR: Cannot write socket fd = 43 err = Broken pipe Sat Jul 25 21:35:02 2020: ERROR: CheckRes error Sat Jul 25 21:35:02 2020: ERROR: Could not write notification Sat Jul 25 21:35:02 2020: ERROR: ClientNotify fails name = freewheel notification = 1 val1 = 0 val2 = 0


J'ai essayé de changer le nombre d'entrée et sorties pour 20 et 18. Dans ce cas jack ne se lance pas (même chose avec le nombre d'entrées/sorties physiques) :

Copy to clipboard
Sat Jul 25 21:46:07 2020: Client 'a2j' with PID 2274 is out Sat Jul 25 21:46:07 2020: Stopping jack server... Sat Jul 25 21:46:07 2020: Client 'system' with PID 0 is out Sat Jul 25 21:46:07 2020: Client 'PulseAudio JACK Sink' with PID 1124 is out Sat Jul 25 21:46:07 2020: Client 'PulseAudio JACK Source' with PID 1124 is out Sat Jul 25 21:46:07 2020: ERROR: Cannot write socket fd = 39 err = Broken pipe Sat Jul 25 21:46:07 2020: ERROR: CheckRes error Sat Jul 25 21:46:07 2020: ERROR: Could not write notification Sat Jul 25 21:46:07 2020: ERROR: ClientNotify fails name = system notification = 1 val1 = 0 val2 = 0 Sat Jul 25 21:46:07 2020: ERROR: Cannot write socket fd = 49 err = Broken pipe Sat Jul 25 21:46:07 2020: ERROR: CheckRes error Sat Jul 25 21:46:07 2020: ERROR: Could not write notification Sat Jul 25 21:46:07 2020: ERROR: ClientNotify fails name = system notification = 1 val1 = 0 val2 = 0 Sat Jul 25 21:46:07 2020: Released audio card Audio2 Sat Jul 25 21:46:07 2020: ERROR: Cannot write socket fd = 39 err = Broken pipe Sat Jul 25 21:46:07 2020: ERROR: CheckRes error Sat Jul 25 21:46:07 2020: ERROR: Could not write notification Sat Jul 25 21:46:07 2020: ERROR: ClientNotify fails name = freewheel notification = 1 val1 = 0 val2 = 0 Sat Jul 25 21:46:07 2020: ERROR: Cannot write socket fd = 49 err = Broken pipe Sat Jul 25 21:46:07 2020: ERROR: CheckRes error Sat Jul 25 21:46:07 2020: ERROR: Could not write notification Sat Jul 25 21:46:07 2020: ERROR: ClientNotify fails name = freewheel notification = 1 val1 = 0 val2 = 0 Sat Jul 25 21:46:08 2020: Starting jack server... Sat Jul 25 21:46:08 2020: JACK server starting in realtime mode with priority 95 Sat Jul 25 21:46:08 2020: self-connect-mode is "Don't restrict self connect requests" Sat Jul 25 21:46:08 2020: Acquired audio card Audio2 Sat Jul 25 21:46:08 2020: creating alsa driver ... hw:USB,0|hw:USB,0|256|2|48000|20|18|hwmon|hwmeter|-|32bit Sat Jul 25 21:46:08 2020: configuring for 48000Hz, period = 256 frames (5.3 ms), buffer = 2 periods Sat Jul 25 21:46:08 2020: ALSA: final selected sample format for capture: 32bit integer little-endian Sat Jul 25 21:46:08 2020: ERROR: ALSA: cannot set channel count to 20 for capture Sat Jul 25 21:46:08 2020: ERROR: ALSA: cannot configure capture channel Sat Jul 25 21:46:08 2020: Released audio card Audio2 Sat Jul 25 21:46:08 2020: ERROR: Cannot initialize driver Sat Jul 25 21:46:08 2020: ERROR: JackServer::Open failed with -1 Sat Jul 25 21:46:08 2020: ERROR: Failed to open server


Merci d'avance à ceux qui vont me lire malgré la longeur ! Je commence à désespérer ...
France
Dans la première capture d'écran de Cadence, tes entrées et sorties pointent un zéro, il faut normalement remplir le nombre exacte d'entrées et sorties.
Bonjour, merci de ta réponse.
D'après Cadence, quand on laisse à 0, il va automatiquement détecter le bon nombre d'entrées/sorties, comme le suggèrent les logs que j'ai posté.

Mais pour confirmer, j'ai quand même mit 18 entrées et 20 sorties et j'ai exactement la même résultat :

- jack semble bien détecter le son mais rien ne sort des enceintes ni des prises casque
- le voyant "clock syncronisation" est eteint sur la carte son
- dans alsamixer, il semble que la carte son ne soit pas reonnue comme avant (voir screenshots)
Dans cadence, dans l'onglet "Engine" quand je clique sur "clock source" > system, pour retrouver la configuration de mes vieux screenshots, j'ai le message suivant dans les logs :
Copy to clipboard
Sun Jul 26 12:00:19 2020: ERROR: Parameter value type mismatch: was expecting 'u', got 'y'

J'ai résolu le problème grâce à l'excellent travail de Geoffrey Bennett qui permet de se passer du logiciel Focusrite Control et d'avoir un mixer natif Linux pour alsa pour les focusrite, et ce inclut directement dans le noyau Linux ! Wow je reprend foi en l'humanité 😛 Plus besoin de me faire prêter un mac pour changer le routage de la carte son !

J'ai découvert ça en cherchant des solutions à mon problème sur divers forums arch et linuxmusicians

Pour ceux que ça intéresse :
J'ai simplement créé le fichier /etc/modprobe.d/scarlett.conf et écrit la ligne suivante :
Copy to clipboard
options snd_usb_audio device_setup=1


Puis j'ai redémarré le PC. A partir de là j'ai simplement lancé alsamixer, sélectionné la focusrite puis navigué jusqu'à "Clock Source Clock Source" et sélectionné Internal à la place de ADAT.
Le voyant "clock sync" de la carte s'est allumé. Puis de là j'ai pu lancer Jack et tout marche comme un charme.

Quand je ne lance pas jack, je peux lire de la musique mais ça coupe... J'avais déjà ce problème avant mais ça me dérange pas de lancer jack à chaque fois que j'en ai besoin.

Bref merci à ceux qui ont lu et merci à sub26nico d'avoir répondu 😉

Je vais essayer de compléter le wiki. Je pense que c'est quelque chose que tous les utilisateurs de focusrite aimeraient savoir
France
Bref merci à ceux qui ont lu et merci à sub26nico d'avoir répondu 😉

Avec plaisir, et bravo pour l'auto-résolution.

Je vais essayer de compléter le wiki. Je pense que c'est quelque chose que tous les utilisateurs de focusrite aimeraient savoir

Excellente idée, c'est le principe d'un site collaboratif, où tous les membres peuvent amener de l'eau au moulin.