Loses my HDMI Audio Ouput

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
gfreymann
Level 1
Level 1
Posts: 12
Joined: Wed Nov 11, 2020 9:42 pm

Loses my HDMI Audio Ouput

Post by gfreymann »

I have Linix Mint 20 and it keeps losing my HDMI Audio output. Video is OK.
Sometimes I can click on the Speaker Icon in the tray, lower right, and just reselect HDMI but other times HDMI Audio option doesn't appear and I have reboot to get sound back.
Any suggestions?
I'm using a Dell SFF i5 Intel machine. There is a LONG pause on bootup but it always boots. That's a different topic altogether I would imagine.
What commands can I run for you guru's to see what's happening here?
User avatar
MrEen
Level 22
Level 22
Posts: 15169
Joined: Mon Jun 12, 2017 8:39 pm

Re: Loses my HDMI Audio Ouput

Post by MrEen »

Hi gfreymann,

See if running pulseaudio -k restores the sound when this happens.
gfreymann
Level 1
Level 1
Posts: 12
Joined: Wed Nov 11, 2020 9:42 pm

Re: Loses my HDMI Audio Ouput

Post by gfreymann »

Thank you, I have saved that suggestion and will gladly share my results.
User avatar
MrEen
Level 22
Level 22
Posts: 15169
Joined: Mon Jun 12, 2017 8:39 pm

Re: Loses my HDMI Audio Ouput

Post by MrEen »

Yes, please do.

I should have asked, does this primarily happen after suspending the machine, or the screen blanking? I had assumed so, but maybe yours is happening during playback, which would be a different cause.
gfreymann
Level 1
Level 1
Posts: 12
Joined: Wed Nov 11, 2020 9:42 pm

Re: Loses my HDMI Audio Ouput

Post by gfreymann »

owner@JellyFIn:~$ sudo pulseaudio -k
[sudo] password for owner:
E: [pulseaudio] main.c: Failed to kill daemon: No such process

And I'm forced to reboot again just to get my HDMI sound output going.
User avatar
MrEen
Level 22
Level 22
Posts: 15169
Joined: Mon Jun 12, 2017 8:39 pm

Re: Loses my HDMI Audio Ouput

Post by MrEen »

Don't use sudo. We'll have to wait til next time, but PulseAudio is a user process, so no sudo involved. Using sudo tried to stop a system process that wasn't running.

EDIT: Unless, pulseaudio itself did actually stop running (unlikely) in which case pulseaudio --start should work.
gfreymann
Level 1
Level 1
Posts: 12
Joined: Wed Nov 11, 2020 9:42 pm

Re: Loses my HDMI Audio Ouput

Post by gfreymann »

I think I know what is causing the issue, but I don't know the solution.

I have the HDMI out from this computer going to a HDMI switch, which lets me have up to 5 HDMI devices connected to my projector and large screen.

Each night when I come down and go to the Linux Mint computer, the sound is back to Built-in Audio Analog Stereo.

I don't know of an easy way to get it HDMI output back but I image there is some kind of terminal command that would do that.

It's annoying to reboot to get HDMI sound back.

Yes, in the sound properties, HDMI has disappeared, I only see the Built-in Audio and built in speaker as an option.

This is a media server and file server, so rebooting to get HDMI back isn't a daily option.
gfreymann
Level 1
Level 1
Posts: 12
Joined: Wed Nov 11, 2020 9:42 pm

Re: Loses my HDMI Audio Ouput

Post by gfreymann »

I just installed pavucontrol using software manager, and it allowed me to reselect HDMI without having to reboot. Interesting!
User avatar
MartyMint
Level 7
Level 7
Posts: 1608
Joined: Thu Dec 27, 2012 10:50 pm

Re: Loses my HDMI Audio Ouput

Post by MartyMint »

gfreymann wrote:
Tue Nov 24, 2020 8:57 pm
I just installed pavucontrol using software manager, and it allowed me to reselect HDMI without having to reboot. Interesting!
pavucontrol is pretty awesome.

:)
User avatar
MrEen
Level 22
Level 22
Posts: 15169
Joined: Mon Jun 12, 2017 8:39 pm

Re: Loses my HDMI Audio Ouput

Post by MrEen »

Yeah, pavucontrol is your best GUI of way making the necessary change here. If you want to do it in the terminal, your need to find the sink name with pacmd list-sinks | grep name: followed by pacmd set-default-sink name-of-sink-here, such as this:

Code: Select all

pacmd set-default-sink alsa_output.pci-0000_00_01.1.hdmi-stereo-extra1
The sink name shouldn't change, so you could tie that to a keyboard shortcut to simply the process. The shortcut command might need to look more like this:

Code: Select all

bash -c "pacmd set-default-sink alsa_output.pci-0000_00_01.1.hdmi-stereo-extra1"
Post Reply

Return to “Hardware Support”