[Solved] Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Ninja_beaver
Level 1
Level 1
Posts: 16
Joined: Sun Aug 23, 2020 4:50 am

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Ninja_beaver »

I ran the second command again and the "built-in audio" device is unmuted and has volume in pavucontrol. Output of through speakers:

Code: Select all

2 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 47386 /  72% / -8.45 dB,   front-right: 47386 /  72% / -8.45 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 32.16 ms
	max request: 6 KiB
	max rewind: 6 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 3
	configured latency: 40.00 ms; range is 0.50 .. 371.52 ms
	card: 1 <alsa_card.pci-0000_00_1b.0>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d30000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:1"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analogue Stereo"
		device.description = "Built-in Audio Analogue Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
    index: 1
	name: <alsa_output.hw_1_0>
	driver: <module-alsa-sink.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: (none)
	priority: 9030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 2
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 1
	configured latency: 0.00 ms; range is 0.50 .. 371.52 ms
	module: 28
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d30000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "hw:1,0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.description = "Built-in Audio"
		device.icon_name = "audio-card-pci"
and headphones:

Code: Select all

2 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 32768 /  50% / -18.06 dB,   front-right: 32768 /  50% / -18.06 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 38.04 ms
	max request: 6 KiB
	max rewind: 6 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 3
	configured latency: 40.00 ms; range is 0.50 .. 371.52 ms
	card: 1 <alsa_card.pci-0000_00_1b.0>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d30000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:1"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analogue Stereo"
		device.description = "Built-in Audio Analogue Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>
    index: 1
	name: <alsa_output.hw_1_0>
	driver: <module-alsa-sink.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: (none)
	priority: 9030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 2
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 1
	configured latency: 0.00 ms; range is 0.50 .. 371.52 ms
	module: 28
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d30000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "hw:1,0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.description = "Built-in Audio"
		device.icon_name = "audio-card-pci"
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

Okay, we're getting close. The output is still going to the default sink as seen by these:

Code: Select all

2 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
Versus:

Code: Select all

    index: 1
	name: <alsa_output.hw_1_0>
	driver: <module-alsa-sink.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
Here's a command to change the output:

Code: Select all

pacmd set-default-sink alsa_output.hw_1_0
Then it might be necessary to restart your sound playing application.

I've got my fingers crossed for this one. :D
Ninja_beaver
Level 1
Level 1
Posts: 16
Joined: Sun Aug 23, 2020 4:50 am

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Ninja_beaver »

I tried that command but I didn't get sound, either with speakers or headphones. I check in pavucontrol that nothing was muted and everything had volume but no success.

I then checked alsamixer and realised I'd been dumb and missed something. I remembered how you said sometimes for speakers to work you need to give the headphones column some volume. For some reason I never tried the opposite and give the speakers+LO column volume when trying to play through headphones. Lo and behold, there is sound through the headphones when I unmute it and give that volume.

This only works for headphones, though I'm not too bothered if we can't get the built-in speakers working.
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

Progress ... yippee!

Play something with sound and run pacmd list-sinks now please, just so I can see where things stand.
Ninja_beaver
Level 1
Level 1
Posts: 16
Joined: Sun Aug 23, 2020 4:50 am

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Ninja_beaver »

Through speakers:

Code: Select all

1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 25891 /  40% / -24.20 dB,   front-right: 25891 /  40% / -24.20 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 74.71 ms
	max request: 14 KiB
	max rewind: 14 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 75.00 ms; range is 0.50 .. 341.33 ms
	card: 1 <alsa_card.pci-0000_00_1b.0>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d30000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:1"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analogue Stereo"
		device.description = "Built-in Audio Analogue Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
Through headphones:

Code: Select all

1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 21329 /  33% / -29.25 dB,   front-right: 21329 /  33% / -29.25 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 74.69 ms
	max request: 14 KiB
	max rewind: 14 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 75.00 ms; range is 0.50 .. 341.33 ms
	card: 1 <alsa_card.pci-0000_00_1b.0>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d30000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:1"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analogue Stereo"
		device.description = "Built-in Audio Analogue Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>
Also I've realised the adjustments in alsamixer give me sound without needing to run

Code: Select all

pacmd load-module module-alsa-sink device=hw:1,0
pacmd set-default-sink alsa_output.hw_1_0
so I'm hoping getting headphones working without needing to into alsamixer all the time should be straight forward.
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

Okay, I'm suspecting something might be hinky (or just misunderstood) with Auto-Mute Mode in alsamixer.

Right now, it's set to Line Out+Speaker, meaning both of those should get muted when headphones are plugged in. Changing it to Disabled, might allow sound out everywhere no matter what (as it's supposed to do) but also try Speaker Only and see what happens.

We just need to keep fiddling until we find the right setup for your system.

We're doing some guesses here, as your outputs are more desktoppy than laptoppy, as far as these controls are concerned.
Ninja_beaver
Level 1
Level 1
Posts: 16
Joined: Sun Aug 23, 2020 4:50 am

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Ninja_beaver »

Apologies for the late reply. I tried setting auto-mute mode to disabled but it mutes speakers+LO whenever I plug headphones in. I can of course unmute speakers+LO but if I then unplug and plug back the headphones, it re-mutes it. Same if I try setting it to speakers only.
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

Okay, it shouldn't do that, but let's see if we can stop it another way.

In the terminal run xed admin:///etc/pulse/default.pa and when the file opens find this section:

Code: Select all

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available
Change it to this:

Code: Select all

### Should be after module-*-restore but before module-*-detect
#load-module module-switch-on-port-available
Save the file and reboot and test. If it still happens, there's another line that ends with switch-on-connect so try the same thing with that line.
Ninja_beaver
Level 1
Level 1
Posts: 16
Joined: Sun Aug 23, 2020 4:50 am

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Ninja_beaver »

The first of those fixed the headphones, they work normally as you would expect them to.

Do you have any ideas how to get the built-in speakers working?
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

Let's try retasking the speaker pin now as nothing else is seemling working.

Install alsa-tools-gui (different from alsa-tools that you've already installed) then run HDAJackRetask. When it opens, first change Select a codec in the upper left to ALC269VC, then check the box for Show unconnected pins. You want to find a Not connected pin that has the same option as whatever wording 0x1b currently shows, by clicking the Override boxes and seeing what they can be changed to. Once one is set properly, change 0x1b to Not connected, then click on Apply now and test the speakers remembering to check for volume and mute status. If it din't work, change the pin back to not connected and find another pin to try. If something actually makes them work, click on Install boot override, then reboot and ensure it still works.

Good luck.

P.S. If this doesn't work, we'll try adding to 0x1b instead replacing it. I'll explain better if/when we get there, but do see if anything can be set to Internal Speaker (LFE) for example.
Ninja_beaver
Level 1
Level 1
Posts: 16
Joined: Sun Aug 23, 2020 4:50 am

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Ninja_beaver »

I tried that but I end up with

Code: Select all

tee: /sys/class/sound/hwC1D2/reconfig: Device or resource busy
whenever I click apply now.
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

That happens to a lot of users and drives me crazy. Go ahead and make the change then click on Install boot override, then reboot and test. If it didn't work, click on Remove boot override, then reboot again, then try another pin.
Ninja_beaver
Level 1
Level 1
Posts: 16
Joined: Sun Aug 23, 2020 4:50 am

Re: Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Ninja_beaver »

I did that and it worked with the first pin I tried. Headphones still work so I'll go ahead and mark the thread as solved.

Thanks for your help, it's greatly appreciated.
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: [Solved] Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

Holy smokes!

It's far too rare that using HDAJackRetask like that actually helps someone! And I shudder even more when that Device or resource busy error appears. I think you're the first person I've helped that was successful with a "blind" boot override install!

I'm so glad that worked for you, and happy I could help! :D
Seebat
Level 1
Level 1
Posts: 10
Joined: Mon Sep 09, 2019 11:52 am

Re: [Solved] Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Seebat »

Hi there,
I'm struggling with a similar kind of problem, the mentioned possible solutions didn't help though. I tried the whole process you two went through but nothing helped.

Situation:
Atm the headphone jack is working fine, but as soon as I unplug it the internal sound can not be heard. The pavucontroll is detecting the sound but it seems that somehow the sound is not emitted.

inxi -Fxxxrz

Code: Select all

System:
  Kernel: 5.9.1-050901-generic x86_64 bits: 64 compiler: N/A 
  Desktop: MATE 1.24.0 info: mate-panel wm: marco 1.24.0 dm: LightDM 1.30.0 
  Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: LENOVO product: 81YT v: Lenovo Legion 7 15IMH05 
  serial: <filter> Chassis: type: 10 v: Lenovo Legion 7 15IMH05 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN serial: <filter> 
  UEFI: LENOVO v: E9CN33WW(V2.01) date: 05/13/2020 
Battery:
  ID-1: BAT1 charge: 82.8 Wh condition: 82.8/80.0 Wh (103%) volts: 17.3/15.4 model: 0x53 
  0x4D 0x50 0x00 0x32 0x30 0x 0x4C 0x31 0x39 0x4D 0x34 0x50 0x8000 
  type: Li-ion serial: <filter> status: Full cycles: 6 
CPU:
  Topology: 6-Core model: Intel Core i7-10750H bits: 64 type: MT MCP 
  arch: N/A L2 cache: 12.0 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 62399 
  Speed: 900 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 1123 2: 1260 
  3: 1471 4: 1629 5: 1243 6: 1310 7: 1777 8: 1362 9: 1839 10: 1264 11: 1257 
  12: 1745 
Graphics:
  Device-1: Intel UHD Graphics vendor: Lenovo driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:9bc4 
  Device-2: NVIDIA vendor: Lenovo driver: nvidia v: 450.80.02 
  bus ID: 01:00.0 chip ID: 10de:1ed1 
  Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia 
  unloaded: fbdev,nouveau,vesa compositor: marco v: 1.24.0 
  resolution: 1920x1080~144Hz 
  OpenGL: renderer: GeForce RTX 2070 Super with Max-Q Design/PCIe/SSE2 
  v: 4.6.0 NVIDIA 450.80.02 direct render: Yes 
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 00:1f.3 chip ID: 8086:06c8 
  Device-2: NVIDIA TU104 HD Audio vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 01:00.1 chip ID: 10de:10f8 
  Sound Server: ALSA v: k5.9.1-050901-generic 
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel port: 5000 
  bus ID: 00:14.3 chip ID: 8086:06f0 
  IF: wlp0s20f3 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8169 v: kernel port: 3000 bus ID: 41:00.0 
  chip ID: 10ec:8168 
  IF: enp65s0 state: down mac: <filter> 
  IF-ID-1: br-2542a826141a state: down mac: <filter> 
  IF-ID-2: br-47e2465ace51 state: down mac: <filter> 
  IF-ID-3: br-4c003d01c19d state: down mac: <filter> 
  IF-ID-4: br-54a61d470d83 state: down mac: <filter> 
  IF-ID-5: br-7370b796859c state: down mac: <filter> 
  IF-ID-6: br-b187cf671fa6 state: down mac: <filter> 
  IF-ID-7: br-d2bfe0a8a899 state: down mac: <filter> 
  IF-ID-8: docker0 state: down mac: <filter> 
Drives:
  Local Storage: total: 953.87 GiB used: 199.17 GiB (20.9%) 
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB1T0HBLR-000L2 
  size: 953.87 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 3L1QEXF7 
  scheme: GPT 
Partition:
  ID-1: / size: 937.40 GiB used: 99.57 GiB (10.6%) fs: ext4 
  dev: /dev/nvme0n1p2 
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A gpu: nvidia temp: 47 C 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
  1: deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
  Active apt repos in: /etc/apt/sources.list.d/cappelikan-ppa-focal.list 
  1: deb http://ppa.launchpad.net/cappelikan/ppa/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/obsproject-obs-studio-focal.list 
  1: deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com ulyana main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/ondrej-php-focal.list 
  1: deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/slack.list 
  1: deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main
  Active apt repos in: /etc/apt/sources.list.d/yarn.list 
  1: deb https://dl.yarnpkg.com/debian/ stable main
Info:
  Processes: 321 Uptime: 7m Memory: 31.19 GiB used: 4.20 GiB (13.5%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: zsh 
  v: 5.8 running in: mate-terminal inxi: 3.0.38 
pacmd list-sinks headphones unplugged => no sound

Code: Select all

$ pacmd list-sinks                 
1 sink(s) available.
  * index: 0
	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 DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 75.40 ms
	max request: 14 KiB
	max rewind: 14 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 75.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 = "ALC287 Analog"
		alsa.id = "ALC287 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 0x6014108000 irq 180"
		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 = "06c8"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "384000"
		device.buffering.fragment_size = "192000"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
pacmd list-sinks headphones plugged in => sound ok

Code: Select all

$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	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 DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 75.11 ms
	max request: 14 KiB
	max rewind: 14 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 75.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 = "ALC287 Analog"
		alsa.id = "ALC287 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 0x6014108000 irq 180"
		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 = "06c8"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "384000"
		device.buffering.fragment_size = "192000"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
could someone please take a look

thanks in advance
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: [Solved] Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

Hi Seebat,

The issue is this:

Code: Select all

	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
That available: unknown can be tricky to solve sometimes. Did you try HDAJackRetask yet? Regardless of the answer, let me see this output please:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
Seebat
Level 1
Level 1
Posts: 10
Joined: Mon Sep 09, 2019 11:52 am

Re: [Solved] Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Seebat »

hi and thanks for the fast response.

yea i did the hdajackretast but didnt work ^^'

the output from curl https://gitlab.freedesktop.org/pulseaud ... line=false | bash | nc termbin.com 9999 is:

Code: Select all

$ sudo curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info\?inline\=false | bash | nc termbin.com 9999
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2039  100  2039    0     0   3693      0 --:--:-- --:--:-- --:--:--  3687
dmesg: read kernel buffer failed: Operation not permitted
https://termbin.com/xi7e
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: [Solved] Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

Okay, I need you to go back into HDAJackRetask and click on Remove boot override, then reboot and run this:

Code: Select all

dmesg | grep -C1 -E 'ALSA|HDA|sof|HDMI|snd[_-]|sound|hda.codec|hda.intel'
I may add more to this if I find something that applies specifically to your system.

EDIT Found a relevant bug report: https://bugzilla.kernel.org/show_bug.cgi?id=208555

Also, try suspending the machine with no headphones plugged in then waking it back up. Test and see if the speakers start working.

Also, is Windows still present on this machine?
Seebat
Level 1
Level 1
Posts: 10
Joined: Mon Sep 09, 2019 11:52 am

Re: [Solved] Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by Seebat »

Hi sorry was a busy weekend^^

The output:

Code: Select all

$ sudo dmesg | grep -C1 -E 'ALSA|HDA|sof|HDMI|snd[_-]|sound|hda.codec|hda.intel'
[sudo] password for tim:          
[    0.217741] ACPI: Added _OSI(Linux-Dell-Video)
[    0.217741] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.217742] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
--
[    1.664045] DMAR: Intel(R) Virtualization Technology for Directed I/O
[    1.664046] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    1.664047] software IO TLB: mapped [mem 0x7cda3000-0x80da3000] (64MB)
[    1.664472] check: Scanning for low memory corruption every 60 seconds
--
[    4.996293] iwlwifi 0000:00:14.3: Allocated 0x00400000 bytes for firmware monitor.
[    5.000094] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    5.000114] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    5.000303] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    5.000386] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    5.000446] snd_hda_intel 0000:01:00.1: Disabling MSI
[    5.000449] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    5.028762] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC287: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    5.028763] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.028764] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    5.028764] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    5.028765] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    5.028765] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
[    5.028766] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[    5.034773] nvidia: loading out-of-tree module taints kernel.
--
[    5.069735] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    5.070420] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18
[    5.083384] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
--
[    5.083882] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    5.093699] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input24
[    5.132057] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  450.80.02  Wed Sep 23 01:13:39 UTC 2020
--
[    5.154461] thermal thermal_zone9: failed to read out thermal zone (-61)
[    5.173925] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input19
[    5.173965] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input20
[    5.174010] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input25
[    5.174095] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input26
[    5.174138] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
[    5.174312] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input22
[    5.174354] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input27
[    5.174378] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input28
[    5.174408] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input23
[    5.174497] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input29
[    5.174527] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input30
[    5.180767] iwlwifi 0000:00:14.3 wlp0s20f3: renamed from wlan0

Windows is not present anymore, and the suspend approach did not work sadly

I just wanted to say: Thank you for the help so far :)

p.s. atm I have a second monitor plugged in, which I'm not even sure if it has a speaker ^^'
User avatar
MrEen
Level 22
Level 22
Posts: 15238
Joined: Mon Jun 12, 2017 8:39 pm

Re: [Solved] Linux Mint 20 64 bit Cinnamon, no sound from built in speakers or headphones

Post by MrEen »

You're quite welcome.

One thing I didn't spot in what was tried earlier is blacklisting the realtek driver module. This has worked for a few users. Run this in the terminal:

Code: Select all

sudo tee /etc/modprobe.d/blacklist-realtek.conf <<<'blacklist snd_hda_codec_realtek'
Then shut down the computer. Don't reboot! I've had a few users find rebooting didn't help, then when the turned on the machine the next day, the sound was suddenly working. Wait a few minutes after shutting down, then boot into Mint and test the speakers.

A few have had that command break all their sound. If that happens to you, run this then reboot:

Code: Select all

sudo rm /etc/modprobe.d/blacklist-realtek.conf
Post Reply

Return to “Sound, Multimedia, & Codecs”