issue142:mon_histoire
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue142:mon_histoire [2019/03/09 18:16] – d52fr | issue142:mon_histoire [2019/03/13 15:33] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
For my music-collection, | For my music-collection, | ||
+ | |||
+ | Il y a des années, j'ai acheté une carte son « Asus Xonar Essence STX ». Le son était excellent et le support sous Linux est convenable. La carte Xonar est connectée par fibre optique à une barre de son « Canton DM55 » sous mon écran. Une carte graphique GeForce GTX 560 Ti de Nvidia est aussi installée dans mon PC. Ainsi, deux sources sonores sont disponibles : la Nvidia via le HDMI et la carte son Xonar. | ||
+ | |||
+ | Pour ma collection musicale, j' | ||
**Every time I boot Linux, Nvidia and Xonar are discovered in a different order, as seen in Alsamixer: | **Every time I boot Linux, Nvidia and Xonar are discovered in a different order, as seen in Alsamixer: | ||
Ligne 15: | Ligne 19: | ||
QuodLibet and/or Mpv started sometimes without sound. But Audacious never had a problem finding the right Xonar S/PDF port.** | QuodLibet and/or Mpv started sometimes without sound. But Audacious never had a problem finding the right Xonar S/PDF port.** | ||
+ | |||
+ | Chaque fois que je démarre Linux, Nvidia et Xonar sont détectées dans un ordre différent, comme je le vois dans Alsamixer : | ||
+ | - default | ||
+ | 0 Nvidia | ||
+ | 1 Xonar STX | ||
+ | 2 HD Pro Webcam C920 | ||
+ | ou : | ||
+ | - default | ||
+ | 0 Xonar STX | ||
+ | 1 Nvidia | ||
+ | 2 HD Pro Webcam C920 | ||
+ | |||
+ | QuodLibet et/ou Mpv démarraient parfois sans le son. Mais Audacious n'a jamais eu de problème pour trouver correctement Xonar. | ||
**After several attempts, and some extensive searching on the Internet, I found a hint: It says in an aside that some programs accept symbolic names. I queried the symbolic names with: | **After several attempts, and some extensive searching on the Internet, I found a hint: It says in an aside that some programs accept symbolic names. I queried the symbolic names with: | ||
Ligne 32: | Ligne 49: | ||
~/ | ~/ | ||
audio-device=alsa/ | audio-device=alsa/ | ||
+ | |||
+ | Après plusieurs tentatives, et une recherche étendue sur Internet, j'ai trouvé un indice : il est dit dans un aparté que certains programmes acceptent les noms symboliques. J'ai fait une requête des noms symboliques avec : | ||
+ | |||
+ | aplay -L | ||
+ | |||
+ | iec958: | ||
+ | Xonar STX, Multichannel | ||
+ | IEC958 (S/PDIF) Digital Audio Output <=== pour la Canton-DM55 <=== | ||
+ | |||
+ | et défini le nom symbolique à utiliser dans ALSA dans : | ||
+ | QuodLibet> | ||
+ | alsasink device=iec958 | ||
+ | |||
+ | et dans Mpv: | ||
+ | |||
+ | ~/ | ||
+ | audio-device=alsa/ | ||
**QuodLibet and Mpv seem to belong to these “some” programs, the sound is working fine, Audacious has still no problems, but Firefox remained silent. | **QuodLibet and Mpv seem to belong to these “some” programs, the sound is working fine, Audacious has still no problems, but Firefox remained silent. | ||
Ligne 43: | Ligne 77: | ||
Finally there is sound in Firefox, but not for long … after some restarts it didn’t work any longer. I tried other browsers (Vivaldi, Chromium) – all remained silent.** | Finally there is sound in Firefox, but not for long … after some restarts it didn’t work any longer. I tried other browsers (Vivaldi, Chromium) – all remained silent.** | ||
+ | |||
+ | Quolibet et Mpv semblent appartenir à ces « certains » programmes, le son fonctionne bien. Audacious n'a toujours pas de problème, mais Firefox restait silencieux. | ||
+ | |||
+ | J'ai essayé de résoudre ça avec : | ||
+ | |||
+ | cat ~/.asoundrc | ||
+ | defaults.pcm.!card STX | ||
+ | default.pcm.!device 1 | ||
+ | defaults.ctl.!card STX | ||
+ | | ||
+ | Enfin, il y avait du son dans Firefox, mais pas pour longtemps..., | ||
**I disabled in BIOS the sound-chip on the mainboard a long time ago. Now I looked for a way to disable the Nvidia audio. However, I didn’t find any button or option in the “Nvidia X server settings” in the newest linux-driver (390.87). | **I disabled in BIOS the sound-chip on the mainboard a long time ago. Now I looked for a way to disable the Nvidia audio. However, I didn’t find any button or option in the “Nvidia X server settings” in the newest linux-driver (390.87). | ||
Ligne 62: | Ligne 107: | ||
Kernel driver in use: snd_virtuoso | Kernel driver in use: snd_virtuoso | ||
Kernel modules: snd_virtuoso** | Kernel modules: snd_virtuoso** | ||
+ | |||
+ | Dans le BIOS, j' | ||
+ | |||
+ | En cherchant à nouveau sur Internet, j'ai trouvé une autre piste : le module du noyau snd_hda_intel pose des problèmes ! | ||
+ | |||
+ | sudo lspci -vv | ||
+ | |||
+ | … | ||
+ | 01:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1) | ||
+ | Subsystem: CardExpert Technology GF114 HDMI Audio Controller | ||
+ | … | ||
+ | Kernel driver in use: snd_hda_intel | ||
+ | Kernel modules: snd_hda_intel | ||
+ | … | ||
+ | 03:04.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio] | ||
+ | Subsystem: ASUSTeK Computer Inc. Virtuoso 100 (Xonar Essence STX) | ||
+ | … | ||
+ | Kernel driver in use: snd_virtuoso | ||
+ | Kernel modules: snd_virtuoso | ||
**To prevent Linux from loading snd_hda_intel during startup I defined a blacklist: | **To prevent Linux from loading snd_hda_intel during startup I defined a blacklist: | ||
Ligne 78: | Ligne 142: | ||
After another restart Firefox remained silent; Audacious and QuodLibet with sound, as before. ** | After another restart Firefox remained silent; Audacious and QuodLibet with sound, as before. ** | ||
+ | |||
+ | Pour empêcher Linux de charger snd_hda_intel pendant le démarrage, j'ai défini une liste noire : | ||
+ | |||
+ | / | ||
+ | |||
+ | blacklist snd_hda_intel | ||
+ | |||
+ | Après redémarrage, | ||
+ | - default | ||
+ | 0 Xonar STX | ||
+ | 1 HD Pro Webcam C920 | ||
+ | |||
+ | La Nvidia n'est plus dans la liste ! Après avoir activé la carte et le port dans Alsamixer, j'ai fait un | ||
+ | |||
+ | alsactl store | ||
+ | |||
+ | Suite à un nouveau redémarrage, | ||
**At least the Xonar remained always in position 0. | **At least the Xonar remained always in position 0. | ||
Ligne 92: | Ligne 173: | ||
After another restart, the sound worked fine in Audacious, Mpv, QuodLibet AND Firefox (finally!). ** | After another restart, the sound worked fine in Audacious, Mpv, QuodLibet AND Firefox (finally!). ** | ||
+ | Au moins, la Xonar restait toujours en position 0. | ||
+ | |||
+ | Quelqu' | ||
+ | |||
+ | pavucontrol | ||
+ | |||
+ | > | ||
+ | |||
+ | > | ||
+ | |||
+ | > | ||
+ | |||
+ | Après un autre démarrage, le son fonctionnait bien dans Audacious, Mpv, Quolibet ET Firefox (enfin !). | ||
+ | |||
**P.S. I’ve used Linux since 1996, first S.U.S.E, then, around 2004 I switched to Ubuntu, and 2013 to Mint. At the moment, I play around with MX-Linux with XFCE. And yes, sound was always kind of a problem. ** | **P.S. I’ve used Linux since 1996, first S.U.S.E, then, around 2004 I switched to Ubuntu, and 2013 to Mint. At the moment, I play around with MX-Linux with XFCE. And yes, sound was always kind of a problem. ** | ||
+ | |||
+ | P.S. : J' | ||
Ligne 101: | Ligne 198: | ||
https:// | https:// | ||
+ | |||
+ | |||
+ | |||
+ | Références : | ||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
issue142/mon_histoire.1552151817.txt.gz · Dernière modification : 2019/03/09 18:16 de d52fr