LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-09-2019, 07:28 AM   #1
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Rep: Reputation: 32
Dummy output sound Ubuntu


I have Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

On a desktop (11 years old) and the external speakers used to work.
Now the machine has dummy output, the speakers do work when I connected them to a different machine.

I found this web page
https://www.linuxuprising.com/2018/0...-issue-in.html
I tried this
Code:
echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf
but it did not fix it.

I think that these might help anyone diagnose it
Code:
echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf
Code:
lsmod | grep snd_hda_intel
snd_hda_intel          45056  1
snd_hda_codec         126976  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core           81920  4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_pcm                98304  3 snd_hda_intel,snd_hda_codec,snd_hda_core
snd                    81920  12 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi

Code:
lspci -nnk | grep -A2 Audio
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 02)
        Subsystem: Dell Inspiron 530 [1028:020d]
        Kernel driver in use: snd_hda_intel
Thank you in advance, apologies if this is not clear.
 
Old 11-09-2019, 08:16 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,766
Blog Entries: 28

Rep: Reputation: 6306Reputation: 6306Reputation: 6306Reputation: 6306Reputation: 6306Reputation: 6306Reputation: 6306Reputation: 6306Reputation: 6306Reputation: 6306Reputation: 6306
Ubuntu uses Pulse Audio. My first suggestion is to install the Pulse Audio Mixer (pavucontrol). It's in the repos. If provides more granular control.

My second suggestion would be to open the machine's case and doublecheck the wiring to make sure it's not loose, worn, or frayed.
 
1 members found this post helpful.
Old 11-09-2019, 09:14 PM   #3
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: KDE Neon
Posts: 1,244

Rep: Reputation: 520Reputation: 520Reputation: 520Reputation: 520Reputation: 520Reputation: 520
Found info that says to use
Code:
options snd-hda-intel model=6stack-dell
https://answers.launchpad.net/ubuntu...uestion/192203 seems to be for your computer model. Scroll down to the bottom of the page to see the trouble shooting steps in the first answer.
 
1 members found this post helpful.
Old 11-10-2019, 03:46 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by davholla View Post
I found this web page
https://www.linuxuprising.com/2018/0...-issue-in.html
I tried this
...
Quote:
Originally Posted by linuxuprising
The first thing I did was to look for solutions online, like this one, but none worked (though that solution may work for you so give it a try).
Did you also try that?
 
1 members found this post helpful.
Old 11-10-2019, 10:53 AM   #5
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Firstly thank you all

Quote:
Originally Posted by ondoho View Post
Did you also try that?
I have just tried
Code:
pulseaudio -k
Code:
sudo alsa force-reload

I also tried

Code:
alias snd-card-0 snd-hda-intel
options snd-hda-intel model=6stack-dell
Without success.

I am going to try upgrading packages later (which is what caused the problem).
 
Old 11-10-2019, 11:11 AM   #6
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Code:
lsmod | grep snd_hda_intel
snd_hda_intel          45056  1
snd_hda_codec         126976  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core           81920  4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_pcm                98304  3 snd_hda_intel,snd_hda_codec,snd_hda_core
snd                    81920  12 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
Just in case this helps.

I did try install Pulse Audio Mixer (pavucontrol) - no good
 
Old 11-10-2019, 01:27 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
$ cat /proc/asound/cards

The default device is often hw:0,0 (in alsa's naming convention).

$ speaker-test -c 2 -l 1 -D default
$ speaker-test -c 2 -l 1 -D pulse
$ speaker-test -c 2 -l 1 -D hw:0,0

Also make sure the user is in the audio group.

$ groups

And that the device isn't muted (MUTED by DEFAULT).

$ alsamixer
 
1 members found this post helpful.
Old 11-10-2019, 02:12 PM   #8
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Code:
cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfdff4000 irq 27
The device is not muted

When I tried $ groups

Code:
 $ groups
$: command not found
Thank you for your help
 
Old 11-10-2019, 05:06 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
try groups without the $. The $ was to designate as a "user" where # would be as root or with sudo.

Looks like you only have one soundcard, kind of a rare-ity these days. As your GPU is normally a soundcard, webcam, modem, ... ... ...

$ ls -l /dev/snd/* | grep -i pcm | grep -i p$
Code:
crw-rw----+ 1 root audio 116,  2 Oct 10 20:59 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116,  5 Oct 10 20:59 /dev/snd/pcmC1D0p
Alsa has various outputs. The files that end in p are for playback (c for capture). In my case hw:1,0 and hw:0,3. Where hw:0,3 is the HDMI of my monitor. And hw:1,0 is the "Generic" side of the snd-hda-intel soundcard on my laptop.
 
1 members found this post helpful.
Old 11-11-2019, 01:31 PM   #10
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Shadow_7 View Post
try groups without the $. The $ was to designate as a "user" where # would be as root or with sudo.

Looks like you only have one soundcard, kind of a rare-ity these days. As your GPU is normally a soundcard, webcam, modem, ... ... ...

$ ls -l /dev/snd/* | grep -i pcm | grep -i p$
Code:
crw-rw----+ 1 root audio 116,  2 Oct 10 20:59 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116,  5 Oct 10 20:59 /dev/snd/pcmC1D0p
Alsa has various outputs. The files that end in p are for playback (c for capture). In my case hw:1,0 and hw:0,3. Where hw:0,3 is the HDMI of my monitor. And hw:1,0 is the "Generic" side of the snd-hda-intel soundcard on my laptop.
It is an old PC - but it was working fine.

Now I use the right command (child induced stress yesterday).
I get
Code:
david adm cdrom sudo dip plugdev lpadmin sambashare
 
Old 11-12-2019, 09:05 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
$ sudo usermod -a -G audio david

Assuming david is your username. You are not in the audio group. So do not have permissions to output sound. It should work as root though.

$ sudo speaker-test -c 2 -l 1 -D hw:0,0

But you shouldn't need the sudo once you're in the audio group and login again (group changes do not apply until your next login).
 
1 members found this post helpful.
Old 11-13-2019, 02:26 AM   #12
scarol03
LQ Newbie
 
Registered: Nov 2019
Posts: 1

Rep: Reputation: 0
nice post
 
Old 11-13-2019, 04:35 PM   #13
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Shadow_7 View Post
$ sudo usermod -a -G audio david

Assuming david is your username. You are not in the audio group. So do not have permissions to output sound. It should work as root though.

$ sudo speaker-test -c 2 -l 1 -D hw:0,0

But you shouldn't need the sudo once you're in the audio group and login again (group changes do not apply until your next login).
Thank you

Now I am in the audio groups
Code:
$ groups
david adm cdrom sudo audio dip plugdev lpadmin sambashare
And the speaker test works - white noise.

However despite a reboot I still get dummy output.
 
Old 11-13-2019, 05:31 PM   #14
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
in pavucontrol?

There's a snd-dummy.ko module you might be loading? /etc/modules or /etc/modules.d/*.conf ?

If your desired soundcard isn't hw:0,0 (alsa naming convention / default) you can override that.

FILE: $HOME/.asoundrc
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
To make it hw:1,0

$ cat /proc/asound/cards

To see what devices exist and have working drivers. Various alsa tricks, snd-dummy, snd-aloop, and such for dummy and/or loopback devices. The loopback device has it's output be it's input. One way to have strange routing happen, and to record what you're playing on your computer with relative ease. Each layer adds latency and other quirks. The main thing is to identify what you have, and what it's named. Note that index numbers can change between boots. So your configuration might need to adapt.

Otherwise pavucontrol to select your desired output when using pulseaudio. And to disable/enable various audio options.
 
Old 11-14-2019, 03:23 PM   #15
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
I went to $HOME and did
Code:
ls -l | grep aso
No files were found

But this
Code:
cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfdff4000 irq 27
Did give results

I tried using pavucontrol and it all gives me is the option to use dummy output.

I am really confused

Last edited by davholla; 11-14-2019 at 03:25 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ubuntu 18.04, dummy output and sound disappeared. AlexRyassky Linux - Hardware 25 05-09-2021 05:28 AM
No sound / sound card not detected / dummy output vmatias Linux - Software 1 05-13-2016 07:36 AM
No sound, dummy output in Ubuntu / Lubuntu 14.04 Pingu4 Linux - Newbie 4 10-30-2014 06:33 AM
[SOLVED] Dummy Output. Lost sound nnjond Linux - Newbie 4 10-25-2010 05:31 AM
audio output device changes to 'dummy output' Joshwaaa Linux - Software 1 04-02-2010 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration