Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Pulseaudio speaker-test. HDMI sound not working

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
anmime
Posts: 7
Joined: 2021-06-04 16:39
Been thanked: 1 time

[SOLVED] Pulseaudio speaker-test. HDMI sound not working

#1 Post by anmime »

Hello, I need help to make work PulseAudio sound in a TV Screen through HDMI connection.
Please, anyone could help with this?. I already can't figure whats happening and I shall no surrender. I dont want to be forced to run my non favourite SO to get this working properly ...


Context:
- It worked fine untill unknown fact happened. I suspect saving new xorg.conf file saved through nvidia-settings app as root mess something. but really I don't know why...
- No physical damage. (ports, cable, etc). I tried it on Windows and it works fine.
- Strange fact: screen/xorg/nvidia-settings detect screen on HDMI-1 port but pulseaudio detect the device connected on HDMI-3. It was in that way even when it worked properly.
- pavucontrol peakometers detect signal on output when I have this device setted as default
- speaker-test runs but device do not emit sound!
- Checked and tried everything I found on multiple forums, but nothing works
- I also tried to reconfigure and reinstall pulseaudio
- Internal Analog works fine
- Debian 10
- KDE Plasma desktop
- Nvidia 1050


Info:

Code: Select all

aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Code: Select all

speaker-test -c 2 -l 1 -D hw:1,7
I have no sound on device

Code: Select all

speaker-test 1.1.8

Playback device is hw:1,7
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 524288
Period size range from 32 to 262144
Using max buffer size 524288
Periods = 4
was set period_size = 131072
was set buffer_size = 524288
 0 - Front Left
 1 - Front Right
Time per period = 5,827860

Code: Select all

pacmd list-sinks

Code: Select all

3 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 9030
        volume: front-left: 52428 /  80% / -5,81 dB,   front-right: 52428 /  80% / -5,81 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 34,77 ms
        max request: 6 KiB
        max rewind: 6 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Estéreo
        used by: 1
        linked by: 5
        configured latency: 40,00 ms; range is 0,50 .. 1999,82 ms
        card: 0 <alsa_card.pci-0000_01_00.1>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 2"
                alsa.id = "HDMI 2"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "8"
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 17"
                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 = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0fb9"
                device.product.name = "GP107GL High Definition Audio Controller"
                device.string = "hdmi:1,2"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo-extra2"
                device.profile.description = "Digital Stereo (HDMI 3)"
                device.description = "GP107GL High Definition Audio Controller Digital Stereo (HDMI 3)"
                alsa.mixer_name = "Nvidia GPU 80 HDMI/DP"
                alsa.components = "HDA:10de0080,14583733,00100100"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "BenQ GW2470
 "
        active port: <hdmi-output-2>
    index: 1
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 9039
        volume: front-left: 32766 /  50% / -18,06 dB,   front-right: 31898 /  49% / -18,76 dB
                balance -0,03
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 40,49 ms
        max request: 6 KiB
        max rewind: 6 KiB
        monitor source: 1
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Estéreo
        used by: 1
        linked by: 5
        configured latency: 40,00 ms; range is 0,50 .. 2000,00 ms
        card: 1 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC887-VD Analog"
                alsa.id = "ALC887-VD Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7240000 irq 129"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a2f0"
                device.product.name = "200 Series PCH HD Audio"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Estéreo Analógico"
                device.description = "Audio Interno Estéreo Analógico"
                alsa.mixer_name = "Realtek ALC887-VD"
                alsa.components = "HDA:10ec0887,104386c7,00100302"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: yes)
                        properties:

                analog-output-headphones: Auriculares analógicos (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-lineout>
    index: 2
        name: <combined>
        driver: <module-combine-sink.c>
        flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: IDLE
        suspend cause: (none)
        priority: 1000
        volume: front-left: 32725 /  50% / -18,10 dB,   front-right: 32725 /  50% / -18,10 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 6 KiB
        max rewind: 0 KiB
        monitor source: 3
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Estéreo
        used by: 0
        linked by: 2
        configured latency: 40,00 ms; range is 0,50 .. 200,00 ms
        module: 15
        properties:
                device.class = "filter"
                device.description = "Simultaneous output to GP107GL High Definition Audio Controller Digital Stereo (HDMI 3), Audio Interno Estéreo Analógico"
                device.icon_name = "audio-card"

Code: Select all

pacmd list-cards

Code: Select all

2 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 NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 17"
                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 = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0fb9"
                device.product.name = "GP107GL High Definition Audio Controller"
                device.string = "1"
                device.description = "GP107GL High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: unknown)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: unknown)
                off: Apagado (priority 0, available: unknown)
        active profile: <output:hdmi-stereo-extra2>
        sinks:
                alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2/#0: GP107GL High Definition Audio Controller Digital Stereo (HDMI 3)
        sources:
                alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor/#0: Monitor of GP107GL High Definition Audio Controller Digital Stereo (HDMI 3)
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "LG IPS FULLHD"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "BenQ GW2470
 "
    index: 1
        name: <alsa_card.pci-0000_00_1f.3>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7240000 irq 129"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a2f0"
                device.product.name = "200 Series PCH HD Audio"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Audio Interno"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Estéreo Analógico Input (priority 65, available: unknown)
                output:analog-stereo: Estéreo Analógico Output (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Estéreo Analógico.Duplex (priority 6565, available: unknown)
                output:iec958-stereo: Estéreo Digital (IEC958) Output (priority 5500, available: unknown)
                output:iec958-stereo+input:analog-stereo: Estéreo Digital (IEC958) Output + Estéreo Analógico Input (priority 5565, available: unknown)
                output:iec958-ac3-surround-51: Digital Envolvente 5.1 (IEC958/AC3) Output (priority 300, available: no)
                output:iec958-ac3-surround-51+input:analog-stereo: Digital Envolvente 5.1 (IEC958/AC3) Output + Estéreo Analógico Input (priority 365, available: unknown)
                off: Apagado (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1f.3.analog-stereo/#1: Audio Interno Estéreo Analógico
        sources:
                alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#1: Monitor of Audio Interno Estéreo Analógico
                alsa_input.pci-0000_00_1f.3.analog-stereo/#2: Audio Interno Estéreo Analógico
        ports:
                analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: En línea (priority 8100, latency offset 0 usec, available: no)
                        properties:

                analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: yes)
                        properties:

                analog-output-headphones: Auriculares analógicos (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
                iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

Code: Select all

sudo fuser -v /dev/snd/*

Code: Select all

/dev/snd/controlC0:  root        660 f.... alsactl
                     diego      5505 F.... pulseaudio
/dev/snd/controlC1:  diego      5505 F.... pulseaudio
/dev/snd/pcmC0D0c:   diego      5505 F...m pulseaudio
/dev/snd/pcmC0D0p:   diego      5505 F...m pulseaudio
/dev/snd/pcmC1D8p:   diego      5505 F...m pulseaudio
I tried force loading new sink with no success, still no sound on HDMI through this sink

Code: Select all

pactl load-module module-alsa-sink device=hw:1,7
I also discard permission issues:

Code: Select all

sudo usermod -a -G audio,pulse,pulse-access,video,voice $USER
sudo adduser $USER audio
Another try reproducing sound straight to device with no success

Code: Select all

aplay -D plughw:1,7 /hd1/Descargas/prueba.wav

Code: Select all

Playing WAVE '/hd1/Descargas/prueba.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono

I'm guessing that is something with logical addressing of devices, but really don't kwow well how to check and fix that

Cheers && Thank you!
Last edited by anmime on 2021-06-05 07:52, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6474
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: Pulseaudio speaker-test. HDMI sound not working

#2 Post by sunrat »

I'm not familiar with speaker-test but I do a lot of audio work and tweaking so had a look at it. From the man page it appears you may be setting the -D parameter incorrectly, it should be based on the name shown from aplay -L (note capital letter L). Read man speaker-test.
And maybe you need to check the PulseAudio device rather than the ALSA device? Just guessing there.
In KDE there is a much easier GUI way to check if audio is working - System Settings > Audio > Advanced. Just select the desired output and click the buttons.

xorg.conf is usually not required these days. As you said it stopped working, maybe it will start working if you remove it. What purpose do you think it may serve?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

anmime
Posts: 7
Joined: 2021-06-04 16:39
Been thanked: 1 time

Re: Pulseaudio speaker-test. HDMI sound not working

#3 Post by anmime »

sunrat wrote:I'm not familiar with speaker-test but I do a lot of audio work and tweaking so had a look at it. From the man page it appears you may be setting the -D parameter incorrectly, it should be based on the name shown from aplay -L (note capital letter L). Read man speaker-test.
And maybe you need to check the PulseAudio device rather than the ALSA device? Just guessing there.
In KDE there is a much easier GUI way to check if audio is working - System Settings > Audio > Advanced. Just select the desired output and click the buttons.

xorg.conf is usually not required these days. As you said it stopped working, maybe it will start working if you remove it. What purpose do you think it may serve?
Enternal gratitude sunrat! :D :D :D :D You was absolutly right about /etc/X11/xorg.conf. I just renamed the file (I prefer rename as .back instead of removing if bigger mess happens), reboot, and then got sound working again! I didn't try this solution, who may seem obvious :oops: , beacause I was pretty sure It was a required file who already exists before the edition.

I still din't undestand backgrounds os this case, multimedia services are far away from my knowledge area so I got lost easily. This is just a reminder... Never give up, keep pushing! Thank You!

User avatar
sunrat
Administrator
Administrator
Posts: 6474
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: Pulseaudio speaker-test. HDMI sound not working

#4 Post by sunrat »

anmime wrote: I still din't undestand backgrounds os this case, multimedia services are far away from my knowledge area so I got lost easily. This is just a reminder... Never give up, keep pushing! Thank You!
You're welcome! :wink:
I don't think anyone understands multimedia services completely. I still learn new things regularly, some of which astound or amaze me. But xorg.conf has not been required for years except in occasional special circumstances, as Xorg is configured dynamically during boot sequence.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

anmime
Posts: 7
Joined: 2021-06-04 16:39
Been thanked: 1 time

Re: Pulseaudio speaker-test. HDMI sound not working

#5 Post by anmime »

sunrat wrote:
anmime wrote: I still din't undestand backgrounds os this case, multimedia services are far away from my knowledge area so I got lost easily. This is just a reminder... Never give up, keep pushing! Thank You!
You're welcome! :wink:
I don't think anyone understands multimedia services completely. I still learn new things regularly, some of which astound or amaze me. But xorg.conf has not been required for years except in occasional special circumstances, as Xorg is configured dynamically during boot sequence.
When I backuped xorg.conf I could see another backup from 2017. I`m pretty sure that I was twerking with powermizer therefore, cause Nvidia settings on multimonitor was always stucked at max consumtion, and still though system relays on this. Nowdsays I soppose all of this is integrated on Wayland, I need to check that, also take my time and update knowldege.

User avatar
sunrat
Administrator
Administrator
Posts: 6474
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: Pulseaudio speaker-test. HDMI sound not working

#6 Post by sunrat »

anmime wrote: Nowdsays I soppose all of this is integrated on Wayland, I need to check that, also take my time and update knowldege.
You said you're using KDE Plasma. Wayland is still under heavy development for Plasma and won't be ready for at least a couple of versions, maybe 5.22. Bullseye has 5.20. It can be run experimentally but I've heard less than favourable reports about that so far.
Apparently it works OK in Gnome but then you have to put up with Gnome. :P :mrgreen:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply