Mint v19.3 audio popping

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

jalin wrote:
Mon Jul 06, 2020 6:32 pm
so I'm using 2 drivers simultaneously
I honestly can't really explain exactly what you're using with any certainty. With snd-hda-intel blacklisted, that stuff I posted above doesn't load, and with realtek in the name, I can sort of understand that. But the aplay output made me think you didn't need snd-hda-intel anymore as everything was preceded with sof. I guess there's still some passing of info between them or something, but I do find it odd.

Usually, the dmesg output would show something similar to this instead of the realtek stuff you showed:

Code: Select all

[    6.283340] sof_audio_pci ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    6.283342] sof_audio_pci ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    6.283343] sof_audio_pci ehdaudio0D0:    mono: mono_out=0x0
[    6.283344] sof_audio_pci ehdaudio0D0:    inputs:
[    6.283346] sof_audio_pci ehdaudio0D0:      Headset Mic=0x19
[    6.283348] sof_audio_pci ehdaudio0D0:      Headphone Mic=0x1b
[    6.283350] sof_audio_pci ehdaudio0D0:      Internal Mic=0x12

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

I seem to have created a new issue... in both dsp_driver=0 and 1, my laptop speakers are working fine... but my onboard mic is not working

In the Sound menu I see 3 different mic devices under the Input section, but all of them have their volume bars greyed out and fixed at zero level

User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

Did your built-in mic work previously? And are you absolutely sure of that?

Let's see the output of this:

Code: Select all

grep snd-hda-intel /etc/modprobe.d/*
We may have caused this if the mic did work previously, but we can hopefully unwind the change that caused it.

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

MrEen,

Mic was working yea. I've tried the various dsp_driver numbers but internal mic doesn't seem to work anymore

Code: Select all

/etc/modprobe.d/alsa-base.conf:# options snd-hda-intel power_save=0 power_save_controller=N
/etc/modprobe.d/snd-hda-intel.conf:options snd-hda-intel power_save=0

User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

Okay, go back to dsp_driver=3.

Then add this to the bottom of /etc/pulse/default.pa:

Code: Select all

load-module module-alsa-source device=hw:0,6
Adding that is done with xed admin:///etc/pulse/default.pa. Save the file and reboot. Run alsamixer after booting up and check volume levels for everything. All the new PGA things should be set to 100%. Hopefully that'll get the mic working, but I can't remember if you had sound or not with that.

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

dsp_driver=3 gives a continous boombuzz as before

in quite a pickle now... drivers 2, 1, and 0 all now also give no output - as well as no input

User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

This should get you back to where you started I believe:

Code: Select all

sudo rm /etc/modprobe.d/alsa-fix.conf
Finish with a reboot.

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

nothing -- no input or output... tried different dsp drivers. Pulseaudio doesn't want to start

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

so weird... I'm getting sound output from speakers but nothing shows up in Sound menu, and my controls have no ability to control volume

User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

jalin wrote:
Fri Jul 10, 2020 1:54 pm
so weird... I'm getting sound output from speakers but nothing shows up in Sound menu, and my controls have no ability to control volume
Let's see this output again:

Code: Select all

dmesg | grep -C1 -E 'ALSA|HDA|sof|HDMI|snd[_-]|sound|hda.codec|hda.intel'
Also, the output of apt policy pulseaudio as well.

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

Code: Select all

[    0.222915] ACPI: Added _OSI(Linux-Dell-Video)
[    0.222915] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.222915] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
--
[    1.675081] integrity: Loading X.509 certificate: UEFI:db
[    1.675097] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
[    1.675097] integrity: Loading X.509 certificate: UEFI:db
[    1.675110] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
[    1.676427] ima: Allocated hash algorithm: sha1
--
[    4.826188] intel_rapl_common: Found RAPL domain dram
[    4.898742] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    4.915923] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    4.916227] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    4.932108] iwlwifi 0000:02:00.0: base HW address: 5c:80:b6:9e:9a:7b
--
[    4.966912] idma64 idma64.1: Found Intel integrated DMA 64-bit
[    4.977611] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3271: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    4.977614] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    4.977615] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    4.977617] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    4.977617] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    4.977619] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    4.977621] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1b
[    4.977622] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[    4.990310] pci_bus 0000:05: Allocating resources
[    4.990327] pci_bus 0000:3b: Allocating resources
[    5.057568] input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input9
[    5.057654] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10
[    5.057775] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11
[    5.057920] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
[    5.058231] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
[    5.058666] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
[    5.066367] pci_bus 0000:05: Allocating resources
and

Code: Select all

  Installed: 1:11.1-1ubuntu7.8
  Candidate: 1:11.1-1ubuntu7.8
  Version table:
 *** 1:11.1-1ubuntu7.8 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:11.1-1ubuntu7.7 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     1:11.1-1ubuntu7 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

With all these changes we've made, I'll bet we confused pulseaudio. Delete the files in /home/YourUserName/.config/pulse then run pulseaudio -k in the terminal. If that produces an error, try pulseaudio --start. Also, you should delete the load-module module-alsa-source device=hw:0,6 line you added to /etc/pulse/default.pa before doing the above.

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

Quite interesting... so I did exactly as instructed, and inputs and outputs are correct and working in Sound menu (thank you)

However, upon reboot, I get a constant boom buzz, regardless of dsp_driver. I had this issue previously only on 3

*However* upon going into the Sound menu to look at inputs and outputs, the buzz stops (until reboot)

mysterious

User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

jalin wrote:
Sat Jul 11, 2020 6:19 pm
Quite interesting... so I did exactly as instructed, and inputs and outputs are correct and working in Sound menu (thank you)

However, upon reboot, I get a constant boom buzz, regardless of dsp_driver. I had this issue previously only on 3

*However* upon going into the Sound menu to look at inputs and outputs, the buzz stops (until reboot)

mysterious
To me, that indicates the power saving feature is faulty. Run this again, and at least the constant noise should stop if I'm correct:

Code: Select all

sudo tee /etc/modprobe.d/snd-hda-intel.conf <<<'options snd-hda-intel power_save=0'

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

nice read! inputs and outputs working as before -- no constant buzz, just the standard shutdown and startup buzzes

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

MrEen, do you perchance have any ideas for this issue?

viewtopic.php?p=1840114

User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

I'm glad we got that one sorted out.

I'm afraid I've never used a laptop with Linux, and barely ever at all! Power management issues I'm not savvy about. I can say, you could try something like TLP (it should be available in the Software Manager) and it might be able to sort things out. I did see someone have success with it in the past few days, but don't remember the issue they were having.

jalin
Level 1
Level 1
Posts: 44
Joined: Thu Mar 05, 2020 8:57 pm

Re: Mint v19.3 audio popping

Post by jalin »

no worries re power mgmt

just had another incident, not sure if this helps -- but when the laptop is unplugged with speakers plugged, can be watching something on VLC. Then once pausing the video, after about 20 seconds with the laptop unplugged, a constant boom/buzz kicks in

User avatar
MrEen
Level 20
Level 20
Posts: 11666
Joined: Mon Jun 12, 2017 8:39 pm

Re: Mint v19.3 audio popping

Post by MrEen »

Ahh, more of the same almost. Now that power saving is disabled, try this; In the terminal run xed admin:///etc/pulse/default.pa and when the file opens find this section:

Code: Select all

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle
Comment out the second line so it looks like this:

Code: Select all

### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle
Save and close the file, ignore any terminal warnings, then run pulseaudio -k to pick up the change, or reboot.

Post Reply

Return to “Sound, Multimedia, & Codecs”