Pulseaudio snobe ma carte son

Bonjour à tous !

Je me résous à m’adresser aux connaisseurs, je ne m’en sors pas depuis une mise à jour (testing).
pulseaudio (version 11.1-5) ne fonctionne plus …
en fait il ne reconnaît pas la carte son (hda intel) pourtant bien référencée par alsa, d’ailleurs le son fonctionne en utilisant directement alsa

j’ai beau fouiller internet, et modifier ici et là, j’y arrive pas

alors un petit coup de main serait le bienvenu

merci d’avance
et bonne soirée à tous

invar

Salut,

Au pif, tu es dans le groupe audio (retour de la commande groups) ?

Salut,
oui j’y suis …

Salut
C’est gentil tout ça mais pas très concret, ça ne nous dit pas comment est réglé pulse.
Que voit?

pavucontrol

Capture du 2018-06-21 09-19-58

Merci pour ton intervention
pavucontrol ne renvoie (onglet configuration) qu’à la sortie son (HDMI) de la carte graphique, en statut “éteinte” (ce qui est correcte)

et en périphériques de sorties une “sortie factice”

et pacmd list-cards confirme :

1 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA ATI HDMI"
                alsa.long_card_name = "HDA ATI HDMI at 0xff6bc000 irq 29"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "aa68"
                device.product.name = "Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]"
                device.string = "1"
                device.description = "Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Sortie Digital Stereo (HDMI) (priority 5400, available: no)
                output:hdmi-surround: Sortie Digital Surround 5.1 (HDMI) (priority 300, available: no)
                output:hdmi-surround71: Sortie Digital Surround 7.1 (HDMI) (priority 300, available: no)
                off: Éteint (priority 0, available: unknown)
        active profile: <off>
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"

Ah bon? j’ai toujours réglé pulse sur une sortie active mais je ne suis pas spécialiste

pour ce qui est des cartes je me fie à /proc/asound/cards

pulse audio est un service utilisateur ( non root)

Il y aura peut etre des infos en interrogeant le service.
dans une fenetre terminal de ton utilisateur ordinaire

systemctl --user status pulseaudio.service

Bonjour Grandtoubab,

j’ai toujours réglé pulse sur une sortie active :

La sortie HDMI n’est pas utilisée
Et je n’ai pas l’autre sortie active attendue (HDA Intel)

cat /proc/asound/cards :
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xffaf8000 irq 28
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xff6bc000 irq 29

la commande systemctl --user status pulseaudio.service donne :

pulseaudio.service - Sound Service
   Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor pr
   Active: active (running) since Thu 2018-06-21 12:32:32 CEST; 12min ago
 Main PID: 1972 (pulseaudio)
   CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
           ├─1972 /usr/bin/pulseaudio --daemonize=no
           └─2009 /usr/lib/x86_64-linux-gnu/pulse/gconf-helper

il manque la fin , ce qui aurait été intéressant pour savoir si pulseaudio indique des erreurs

systemctl --user status pulseaudio.service -l --no-pager

sinon tu peux nettoyer l’historique local

ls -alrt ~/.config/pulse

rm -r ~/.config/pulse

et redémarrer le service

systemctl --user restart pulseaudio.service

sinon fouiller ça
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/

NB dans les réglages je n’ai pas la sortie HDA Intel indiquée en clair mais “Duplex Stéreo Analogique” comme visible sur ma capture de pavucontrol

Grandtoubab,

non la sortie de systemctl était complète

systemctl --user status pulseaudio.service -l --no-pager :

● pulseaudio.service - Sound Service
   Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-06-21 14:33:45 CEST; 29s ago
 Main PID: 6340 (pulseaudio)
   CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
           ├─6340 /usr/bin/pulseaudio --daemonize=no
           └─6350 /usr/lib/x86_64-linux-gnu/pulse/gconf-helper

j’avais déjà essayé en supprimant ~/config/pulse
ça ne change rien
(la sortie de “systemctl … status …” est identique )

j’ai parcouru la doc sur freedesktop mais je vois pas trop quoi en faire
j’ai juste modifié par exemple ~/.asoundrc (en y inscrivant

pcm.default pulse
ctl.default pulse

(au lieu de

… pcm.!default {
type pulse …
et
… ctl.!default {
type pulse …

mais ça change rien
PA s’obstine à ignorer ma carte son

bon j’avance un peu je crois

je constate que ALSA et Gstreamer envoient bien le son sur pulseaudio
mais pulseaudio n’en fait rien car il n’a pas de périphérique de sortie

j’ai essayé de l’aider en mettant manuellement le périphérique en inscrivant dans /etc/pulse/default.pa

load-module module-alsa-sink device=hw:0
load-module module-alsa-source device=hw:0

mais alors PA refuse de se lancer …

donc je commente ces deux lignes, ce qui implique alors (si j’ai bien compris) que PA se repose sur UDEV pour détecter le périphérique

mais visiblement là ça coince (et moi aussi) …

surement

/lib/udev/rules.d/90-pulseaudio.rules
# do not edit this file, it will be overwritten on update

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

SUBSYSTEM!="sound", GOTO="pulseaudio_end"
ACTION!="change", GOTO="pulseaudio_end"
KERNEL!="card*", GOTO="pulseaudio_end"
SUBSYSTEMS=="usb", GOTO="pulseaudio_check_usb"

SUBSYSTEMS=="platform", DRIVERS=="thinkpad_acpi", ENV{PULSE_IGNORE}="1"

# Force enable speaker and internal mic for some laptops
# This should only be necessary for kernels 3.3, 3.4 and 3.5 (as they are lacking the phantom jack kctls).
# Acer AOA150
ATTRS{subsystem_vendor}=="0x1025", ATTRS{subsystem_device}=="0x015b", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Acer Aspire 4810TZ
ATTRS{subsystem_vendor}=="0x1025", ATTRS{subsystem_device}=="0x022a", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Packard bell dot m/a
ATTRS{subsystem_vendor}=="0x1025", ATTRS{subsystem_device}=="0x028c", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Acer Aspire 1810TZ
ATTRS{subsystem_vendor}=="0x1025", ATTRS{subsystem_device}=="0x029b", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Acer AOD260 and AO532h
ATTRS{subsystem_vendor}=="0x1025", ATTRS{subsystem_device}=="0x0349", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell MXC051
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x01b5", ENV{PULSE_PROFILE_SET}="force-speaker.conf"
# Dell Inspiron 6400 and E1505
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x01bd", ENV{PULSE_PROFILE_SET}="force-speaker.conf"
# Dell Latitude D620
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x01c2", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell Latitude D820
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x01cc", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell Latitude D520
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x01d4", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell Latitude D420
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x01d6", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell Inspiron 1525
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x022f", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell Inspiron 1011
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x02f4", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell XPS 14 (L401X)
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x0468", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell XPS 15 (L501X)
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x046e", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell XPS 15 (L502X)
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x050e", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Dell Inspiron 3420
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x0553", ENV{PULSE_PROFILE_SET}="force-speaker.conf"
# Dell Inspiron 3520
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x0555", ENV{PULSE_PROFILE_SET}="force-speaker.conf"
# Dell Vostro 2420
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x0556", ENV{PULSE_PROFILE_SET}="force-speaker.conf"
# Dell Vostro 2520
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x0558", ENV{PULSE_PROFILE_SET}="force-speaker.conf"
# Dell Inspiron One 2020
ATTRS{subsystem_vendor}=="0x1028", ATTRS{subsystem_device}=="0x0579", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Asus 904HA (1000H)
ATTRS{subsystem_vendor}=="0x1043", ATTRS{subsystem_device}=="0x831a", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Asus T101MT
ATTRS{subsystem_vendor}=="0x1043", ATTRS{subsystem_device}=="0x83ce", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Sony Vaio VGN-SR21M
ATTRS{subsystem_vendor}=="0x104d", ATTRS{subsystem_device}=="0x9033", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Sony Vaio VPC-W115XG
ATTRS{subsystem_vendor}=="0x104d", ATTRS{subsystem_device}=="0x9064", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Fujitsu Lifebook S7110
ATTRS{subsystem_vendor}=="0x10cf", ATTRS{subsystem_device}=="0x1397", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Fujitsu Lifebook A530
ATTRS{subsystem_vendor}=="0x10cf", ATTRS{subsystem_device}=="0x1531", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Toshiba A200
ATTRS{subsystem_vendor}=="0x1179", ATTRS{subsystem_device}=="0xff00", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# MSI X360
ATTRS{subsystem_vendor}=="0x1462", ATTRS{subsystem_device}=="0x1053", ENV{PULSE_PROFILE_SET}="force-speaker-and-int-mic.conf"
# Lenovo 3000 Y410
ATTRS{subsystem_vendor}=="0x17aa", ATTRS{subsystem_device}=="0x384e", ENV{PULSE_PROFILE_SET}="force-speaker.conf"

GOTO="pulseaudio_end"

LABEL="pulseaudio_check_usb"
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1978", ENV{PULSE_PROFILE_SET}="native-instruments-audio8dj.conf"
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="0839", ENV{PULSE_PROFILE_SET}="native-instruments-audio4dj.conf"
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="baff", ENV{PULSE_PROFILE_SET}="native-instruments-traktorkontrol-s4.conf"
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="4711", ENV{PULSE_PROFILE_SET}="native-instruments-korecontroller.conf"
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="041d", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio2.conf"
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1011", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio6.conf"
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1021", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio10.conf"
ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02bb", ENV{PULSE_PROFILE_SET}="kinect-audio.conf"
ATTRS{idVendor}=="041e", ATTRS{idProduct}=="322c", ENV{PULSE_PROFILE_SET}="sb-omni-surround-5.1.conf"

LABEL="pulseaudio_end"

Apparemment le noyau a son rôle aussi, as tu changé récemment ?

uname --all 

non, pas récemment …

~$ uname --all
Linux debian 4.16.0-2-amd64 #1 SMP Debian 4.16.12-1 (2018-05-27) x86_64 GNU/Linux

on peut forcer une détection du matériel par commande
voir ici

Sinon dans /usr/lib/pulse-11.1/modules

il y a aussi le module module-detect.so mais je n’ai aucune idée de la différence

j’ai appliqué la commande renseignée dans ton lien (rescan audio devices)
résultat : dans configuration il reprend une deuxième fois le périphérique HDMI !!!.. mais tjrs pas de trace de HDA Intel :disappointed_relieved:

mais où udev va-t-il chercher les références de la carte audio ? dans le noyau !
or cat /proc/asound/cards donne :

 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xffaf8000 irq 28
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xff6bc000 irq 29

…???

(merci pour ta persévérance Grandtoubab)

Rebonjour,
Ton utilisateur est-il bien dans le groupe audio ?

Bonjour,

Il l’était quand le problème est apparu mais je l’ai supprimé du groupe audio suite à mes lectures où il était conseillé de le faire
voir :
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/
sous le titre Should users be in the “audio” group?

Salut
Sur Debian Buster, sans jamais avoir touché à ça, mes utilisateurs sont bien dans le groupe audio ainsi que l’utilisateur pulse

 grep -i aud /etc/group
audio:x:29:pulse,guy,freevo,lisa

l’utilisateur pulse étant défini ainsi

grep -i pulse /etc/passwd
pulse:x:114:122:PulseAudio daemon,,,:/var/run/pulse:/bin/false

Pour info le dossier snd

ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       60 juin  22 08:27 by-path
crw-rw----+ 1 root audio 116,  2 juin  22 08:27 controlC0
crw-rw----+ 1 root audio 116,  5 juin  22 08:27 hwC0D0
crw-rw----+ 1 root audio 116,  4 juin  22 08:28 pcmC0D0c
crw-rw----+ 1 root audio 116,  3 juin  22 08:28 pcmC0D0p
crw-rw----+ 1 root audio 116,  1 juin  22 08:27 seq
crw-rw----+ 1 root audio 116, 33 juin  22 08:27 timer

Pour vérifier qu’un squatter ne s’est pas approprié les ressources

fuser -v /dev/snd/*

exemple je suis bien le seul utilisateur

fuser -v /dev/snd/*
                     UTIL.       PID ACCÈS  COMMANDE
/dev/snd/controlC0:  guy        2769 F.... pulseaudio

Surprise !
Ce matin en mettant en route, je constate que ça fonctionne à nouveau !..

Pourquoi ?
les modifications apportées (et les seules je pense) c’est
avoir retiré mon user du groupe audio
et d’avoir inscrit (décommenté) dans le fichier /etc/pulse/default.pa

load-module module-alsa-sink device=hw:0
load-module module-alsa-source device=hw:0

et dans ~/.asoundrc

pcm.default pulse
ctl.default pulse

(au lieu de

… pcm.!default {
type pulse …
et
… ctl.!default {
type pulse …

La seule bizarrerie qui je relève maintenant dans pavucontrol c’est l’existence dans périphériques de sortie d’un item “audio interne” qui coexiste avec la carte son,
et dans l’onglet lecture je dois choisir “audio interne” et non la carte son sinon pas de son

d’ailleurs :

fuser -v /dev/snd/*
                     UTIL.       PID ACCÈS  COMMANDE
/dev/snd/controlC0:  p          5446 F.... pulseaudio
/dev/snd/controlC1:  p          5446 F.... pulseaudio

enfin ça marche et je préfère pas trop toucher pour l’instant même si je me rends compte que c’est un peu bancal

merci pour vos interventions, notamment à grandtoutbab
bonne journée !

invar

Super
ça m’aura aussi permis d’apprendre des choses sur pulseaudio, entre autres que pour enregistrer un flux audio, il suffit d’utiliser la commande parecord

pour moi

cat  ~/.asoundrc
pcm.hda-intel {
          type hw
          card 0
       }
       
ctl.hda-intel {
          type hw
          card 0
       }

cat /proc/asound/cards
 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xf0500000 irq 16

Mais Grandtoubab avec un tel asoundrc, passes-tu par pulseaudio ?