22

The soundcard I want to use is detected and works (it only recently switched to dummy output and didn't allow me to go back).

HDMI is no longer listed under Audio and Video - KDE Control Module; everything under audio module is set to dummy output and its the only 'soundcard' on the list now. I can view my previous sound cards in alsamixer, but changing the settings from there does nothing.

How can I get my real soundcards to work again?

I have already tried the following answers without success:

How do I get my sound working?

EDIT:

name@name-desktop:~$ lspci -vvv | grep -A8 Audio
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller
        Subsystem: ASRock Incorporation Kaveri HDMI/DP Audio Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin B routed to IRQ 43
        Region 0: Memory at ff764000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
--
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
        Subsystem: ASRock Incorporation FCH Azalia Controller
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 32, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at ff760000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel

Could this image possibly help?:

enter image description here

There is another soundcard but I'm unsure of what its for because it never outputs sound, but it does have a lot of settings: that sound card is labelled as "HD-Audio Generic".

enter image description here

enter image description here

So I went into Software & Updates under the Additional drivers tab and I see this:

enter image description here

It was on Do not use the device so I changed it and applied the settings but unfortunately the soundcard isn't back even after reboot.

Zanna
  • 70,465
HelpMeee
  • 648
  • What type of computer do you have? – mchid Jul 18 '16 at 23:39
  • Built it myself so its custom; which parts were you concerned about? – HelpMeee Jul 18 '16 at 23:40
  • Well, I saw this other answer related to dell http://askubuntu.com/questions/460035/dummy-output-sound-in-ubuntu-14-04?rq=1 – mchid Jul 18 '16 at 23:41
  • 1
    Please run the following command and post the output in your question to help, thanks. lspci -vvv | grep -A8 Audio – mchid Jul 18 '16 at 23:44
  • Try running the following command and then reboot: usermod -a -G audio $USER – mchid Jul 19 '16 at 00:08
  • Yes, that is your hdmi output and it looks like it should be running and on. As it is digital out, there should be no level. – mchid Jul 19 '16 at 00:12
  • it returned this usermod: Permission denied. usermod: cannot lock /etc/passwd; try again later. but I'll reboot now to see if it took effect – HelpMeee Jul 19 '16 at 00:12
  • Sorry, you probably need to use sudo. – mchid Jul 19 '16 at 00:12
  • Also, try the following: rm -r ~/.config/pulse/* reboot – mchid Jul 19 '16 at 00:19
  • Can you please also post a screenshot (or two) of the other sound card? – mchid Jul 19 '16 at 00:21
  • Ran both and rebooted yet nothing has changed (still dummy output with no other displayed soundcards to change to) will get screenshots of other soundcard and upload in a minute – HelpMeee Jul 19 '16 at 00:28
  • Pictures are up (not sure if it notifies you) – HelpMeee Jul 19 '16 at 00:36
  • Disable "automute". Also, it looks like sound is working as far as alsa is concerned. Have you tried playing music? – mchid Jul 19 '16 at 00:36
  • I disabled it right now, and tested a video on youtube and that didn't work, neither did the sound from a video installed on my hardware nor system sounds (test) because its still selecting dummy output. Something that should be mentioned is that whenever I increase dummy input sound volume from the tray then open pulseaudio volume control, it raises the same volume percentage in silence. – HelpMeee Jul 19 '16 at 00:39
  • sudo apt-get install pavucontrol and then pavucontrol & are you able to enable the card from these controls? – mchid Jul 19 '16 at 00:41
  • I used to be able to, before dummy output appeared. s: now it just reverses any volume increase to silence. Its still not showing up. – HelpMeee Jul 19 '16 at 00:43
  • I have added an answer. – mchid Jul 19 '16 at 01:18
  • Apparently, there's nothing wrong with the ALSA drivers (speaker-test should work with the HDMI device; does it?). There appears to be something wrong with PulseAudio not willing to use it. – CL. Jul 19 '16 at 06:44
  • The speaker test always worked with the HDMI, but now hdmi won't even show up in the Audio and Video - KDE Control Module. – HelpMeee Jul 19 '16 at 08:25

11 Answers11

11

I don't know what's the problem or why it happens, but that worked for me.

pulseaudio --kill
pulseaudio --start
Nato Boram
  • 1,188
9

First, replace any previous configurations:

sudo apt update
sudo rm -R /etc/pulse/*
sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install pulseaudio

Then, run the following commands:

sudo apt-get install --reinstall linux-image-$(uname -r)
sudo modprobe snd-hda-intel
rm -r ~/.config/pulse*
pulseaudio -k

source


If alsa is somehow messed up, then running the following commands may fix the issue:

sudo apt update
sudo apt -o DPkg::Options::="--force-confmiss" --reinstall install libasound2 libasound2-data libasound2-dev libasound2-plugin-smixer libatopology-dev libatopology2 alsa-utils pulseaudio
rm -r ~/.config/pulse*
pulseaudio -k
mchid
  • 43,546
  • 8
  • 97
  • 150
  • PulseAudio Sound Server is now in place of Dummy output in the Audio and Video - KDE Control Module as a audio playback device , but it still says "Dummy output" in the tray, but that might be just a display issue.. not sure. Either way, system sound test still outputs no audio. Also my original soundcards are still not back. I actually had the PulseAudio Sound Server situation before, and thats what made me try to uninstall it. – HelpMeee Jul 19 '16 at 01:31
  • 1
    I'll reboot in about two hours to look for improvements (currently waiting for files to finish downloading). – HelpMeee Jul 19 '16 at 01:39
  • Rebooting actually changed the PulseAudio Sound Server back to Dummy Output :( Sorry to disappoint – HelpMeee Jul 19 '16 at 02:10
  • 2
    @HelpMeee Try running commands 2, 3, & 4. According to the thread, some people have to modprobe snd-hda-intel after every boot. – mchid Jul 19 '16 at 02:22
  • Yes, its back to PulseAudio Sound Server, but its still Dummy Output everywhere else and there's no sound. – HelpMeee Jul 19 '16 at 02:24
  • @HelpMeee Did you see the new default.pa file I posted at http://askubuntu.com/questions/491346/how-do-i-get-my-sound-working It's listed under "Alternatively, this is the /etc/pulse/default.pa for 16.04" – mchid Jul 19 '16 at 02:32
  • Yes, replaced everything in that file again after you updated it, unfortunately there's hadn't been a change. – HelpMeee Jul 19 '16 at 02:43
  • @HelpMeee For good measure, I have included some new instructions. – mchid Jul 19 '16 at 03:39
  • @HelpMeee I have updated the instructions again as I saw a typo. – mchid Jul 19 '16 at 03:50
  • Same thing as before: "PulseAudio Sound Server is now in place of Dummy output in the Audio and Video - KDE Control Module as a audio playback device , but it still says "Dummy output" in the tray," also still have to re-run that code in the terminal everytime after rebooting to keep it that way – HelpMeee Jul 19 '16 at 08:43
  • @HelpMeee Do you have ATI graphics as well, you may need the proprietary driver which would also include the sound driver for HDMI? – mchid Jul 19 '16 at 20:49
  • @HelpMeee Open up the kubuntu-driver-manager and see if there are any recommended proprietary drivers such as fglrx that are available for you and then reboot if you make any changes. – mchid Jul 19 '16 at 21:02
  • Only one, and I applied it and rebooted yet there doesn't seem to be a change (in the picture I just added). The official driver manager for KDE seems useless because all it says is "Collecting information about your system" (didn't upload a picture of it). – HelpMeee Jul 19 '16 at 22:58
4

There doesn't seem to be a solution to this so I just re-installed Kubuntu and the sound works perfect.

Downside: wiped everything else (but I didn't have much on my ssd so it was fine)

HelpMeee
  • 648
1

For those using the snd_hda_intel module

  1. Check if you are using the snd_hda_intel kernel module:

    lsmod | grep snd_hda_intel
    lspci -nnk | grep -A2 Audio
    
  2. If so, add two lines (you may need only the first line) to alsa-base.conf using the commands below.

    echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf
    echo "options snd-hda-intel dmic_detect=0" | sudo tee -a /etc/modprobe.d/alsa-base.conf
    

NOTE: It was suggested to also add a third line but my system worked without me adding it. Add that using this command:

echo "blacklist snd_soc_skl" | sudo tee -a /etc/modprobe.d/blacklist.conf

REF: Fix No Sound (Dummy Output) Issue In Ubuntu With SND HDA Intel

nyxee
  • 367
1

For me, the problem was caused by one application that locked the sound device. In my case, it was mplayer, but it could be something else for you. To get a list of these applications, run:

# fuser -v /dev/snd/*
                     USER       PID ACCESS COMMAND
/dev/snd/controlC0:  ...      899378 F.... mplayer
/dev/snd/pcmC0D0p:   ...      899378 F...m mplayer
/dev/snd/timer:      ...      899378 f.... mplayer

After stopping that application, I forced a restart of pulseaudio:

/usr/bin/pulseaudio -k && sleep 1 && /usr/bin/pulseaudio --start

For more details, please check the Arch Wiki, where I found the trick:

The only device shown is "dummy output" or newly connected cards are not detected

If the only playback device is the Dummy Output, PulseAudio cannot access your sound devices. It is possible there is an issue with logind giving permissions, see General troubleshooting#Session permissions for more information.

An application might also not have been configured to work with PulseAudio. This happens with FluidSynth for example. To see which application is responsible for a direct access to the sound card via alsa, run the following command:

# fuser -v /dev/snd/*

Try to close these applications. pulseaudio, if running, should take again precedence over these applications and all the applications relying on pulseaudio should work again like expected.

  • 1
    Thank you so much for this answer. This solved the problem for me - and it was indeed fluidsynth causing the issue. – gregoryg Jan 02 '23 at 20:27
0

In my case:

Settings > Multimedia > Audio Volume > Advanced and there switching around between 4.1 and Analog Stereo Output/Duplex

Sound is back...

Zanna
  • 70,465
Gösen
  • 1
0

If you only care about analog stereo, a very simple solution is to use a C-Media USB audio device. My built in audio card is just not detected. The problem may be with my motherboard because it used to work. If I wanted to use 5.1 I guess I could buy a card.

John
  • 1
0

There can be many different causes of this problem, but I'll give an answer for my particular situation. I started experiencing this after upgrading to Ubuntu 20.04 from 18.04. The problem turned out to be permissions. My account was in the pulse-access group in /etc/group. For 18.04, this was sufficient. It appears that for Ubuntu 20.04 there was a change such that the account must now be in the pulse group instead.

acker9
  • 141
0

I solved this on my E200 HA by putting the following lines in /etc/modprobe.d/alsa-base.conf

options snd-usb-audio index=-2
options snd-hda-intel mode="olpc-xo-1_5"

The first stopped the dummy output and got the soundcard recognised, but I had to put in the second line as sound was coming out of both speakers and headphones at the same time.

Zanna
  • 70,465
0

Today - seemingly having the same problem - I did the following, using Synaptic package manager:

Reinstalled the following packages:

linux-sound-base (1.0.25+dfsg-0ubuntu5)
pulseaudio (1:8.0-0ubuntu3)

... and my card is back available.

Edit: problem came back after reboot!

Edit2: minimal (temporary) remedy is sudo dpkg-reconfigure pulseaudio

Zanna
  • 70,465
0

Go to Settings > Software & Updates > Additional Drivers. You will find a driver similar to audio: set it to Do not use this device. Then apply changes and restart.

Then system will use the inbuilt audio

If not working check whether it has changed by repeating the above.

Zanna
  • 70,465