Imac 2017 no audio

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Imac 2017 no audio

Post by -Max- »

This is my first attempt at getting Linux running on my Imac retina 27" 2017. I have completely removed OSX and installed Linux mint 20.0 (Cinnamon), which went fine. Most things seems to be working, except audio, where I get no sound at all. I can also see from the forum, that I'm not alone, but most posts seems to be from last year.

I should probably mention that my Linux skills are fairly.... well unskilled.

I've tried including what I think might be relevant outputs.

I'd be very grateful, if anybody could help me out here.

Output of inxi -Fxz

Code: Select all

System:
  Kernel: 5.4.0-81-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 5.0.5 Distro: Linux Mint 20.2 Uma 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: Apple product: iMac18,3 v: 1.0 serial: <filter> 
  Mobo: Apple model: Mac-BE088AF8C5EB4FA2 v: iMac18,3 serial: <filter> 
  UEFI: Apple v: 429.140.8.0.0 date: 06/13/2021 
Battery:
  Device-1: hidpp_battery_0 model: Logitech Anywhere MX charge: 20% 
  status: Discharging 
CPU:
  Topology: Quad Core model: Intel Core i7-7700K bits: 64 type: MT MCP 
  arch: Kaby Lake rev: 9 L2 cache: 8192 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 67200 
  Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
  vendor: Apple driver: amdgpu v: kernel bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 3840x2160~60Hz 
  OpenGL: renderer: AMD POLARIS10 (DRM 3.35.0 5.4.0-81-generic LLVM 12.0.0) 
  v: 4.6 Mesa 21.0.3 direct render: Yes 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k5.4.0-81-generic 
Network:
  Device-1: Broadcom and subsidiaries BCM43602 802.11ac Wireless LAN SoC 
  vendor: Apple driver: brcmfmac v: kernel port: 3000 bus ID: 03:00.0 
  IF: wlp3s0 state: down mac: <filter> 
  Device-2: Broadcom and subsidiaries NetXtreme BCM57766 Gigabit Ethernet 
  PCIe 
  driver: tg3 v: 3.137 port: 3000 bus ID: 04:00.0 
  IF: enp4s0f0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 465.92 GiB used: 9.16 GiB (2.0%) 
  ID-1: /dev/nvme0n1 vendor: Apple model: SSD SM0512L size: 465.92 GiB 
Partition:
  ID-1: / size: 457.11 GiB used: 9.15 GiB (2.0%) fs: ext4 
  dev: /dev/nvme0n1p2 
Sensors:
  System Temperatures: cpu: 57.0 C mobo: N/A gpu: amdgpu temp: 56 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 265 Uptime: 1h 55m Memory: 31.26 GiB used: 1.79 GiB (5.7%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 
Output of aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Output of pacmd list-cards

Code: Select all

2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_01_00.1>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "1"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0x92660000 irq 59"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "aaf0"
		device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
		device.string = "1"
		device.description = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (priority 5700, available: no)
		output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (priority 600, available: no)
		output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-6: HDMI / DisplayPort 7 (priority 5300, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_00_1f.3>
	driver: <module-alsa-card.c>
	owner module: 8
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x92720000 irq 58"
		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 = "a170"
		device.product.name = "100 Series/C230 Series Chipset Family HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 32833, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 39268, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 39333, available: unknown)
		output:analog-surround-21: Analog Surround 2.1 Output (priority 34068, available: unknown)
		output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 34133, available: unknown)
		output:analog-surround-40: Analog Surround 4.0 Output (priority 33968, available: unknown)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 34033, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
		alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		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: unknown)
			properties:
				device.icon_name = "audio-headphones"
Output of dmesg | grep snd

Code: Select all

[    4.252931] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    4.252966] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    4.252966] snd_hda_intel 0000:01:00.1: Force to non-snoop mode
[    4.267608] snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    4.275755] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=2 (0x24/0x25/0x0/0x0/0x0) type:speaker
[    4.275756] snd_hda_codec_generic hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    4.275757] snd_hda_codec_generic hdaudioC0D0:    hp_outs=1 (0x2c/0x0/0x0/0x0/0x0)
[    4.275757] snd_hda_codec_generic hdaudioC0D0:    mono: mono_out=0x0
[    4.275758] snd_hda_codec_generic hdaudioC0D0:    inputs:
[    4.275759] snd_hda_codec_generic hdaudioC0D0:      Internal Mic=0x45
[    4.275760] snd_hda_codec_generic hdaudioC0D0:      Mic=0x3c
Output of

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
https://termbin.com/zb0n
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

Anyone please ??
Pinokkio
Level 2
Level 2
Posts: 75
Joined: Thu Mar 09, 2017 3:25 am

Re: Imac 2017 no audio

Post by Pinokkio »

I am not an expert , but sometimes one oversees the most simple thing ( for example the computer or TV doesn't start anymore and then to find that the electric cable isn't connected . :oops:
So in Preferences ==> Sound are the internal speakers selected and volume up high ?
For more technical info see MrEen :

http://mreen.epizy.com/SoundFixTips.html?i=1
from Topic :
viewtopic.php?t=294619
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

Thanks for the links Pinokkio. I will try those and see where it takes me. :)
jamiemint
Level 4
Level 4
Posts: 207
Joined: Fri Jun 26, 2020 12:39 pm

Re: Imac 2017 no audio

Post by jamiemint »

All of your outputs look almost identical to mine (iMac 13,1) but my audio works. I would try "alsamixer" and see what that gives you. Up arrow increases values.

Jamie
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Imac 2017 no audio

Post by absque fenestris »

https://archived.forum.manjaro.org/t/so ... na/43638/8

...select "off" in the top menu that propose to setup the Digital Surround
...select Analog Surround 2.1 Output or Analog Surround 2.1 Output + Analog Stereo Input
...Now the sound works!
also an iMac 2017 ...
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

Hi Jamie and absque

I tried alsamixer. No dice.

I also tried the solution from manjaro, but no luck there either. Of course, I do not have a configuration page in sound mixer, but installing pavucontrol gives me the configuration page. Choosing the same values yields nothing.

I should add, that when testing the sound, the volume bar in Volume Control/Output Devices in Pavucontrol shows output (the VU meter bar flickers), but no sound from the speakers.
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Imac 2017 no audio

Post by absque fenestris »

Hi Max
I don't know if it fixes the annoying fault, but try all the tips that forum member Portreve has listed.
Maybe just resetting the parameter RAM will help.

viewtopic.php?f=61&t=355473
jamiemint
Level 4
Level 4
Posts: 207
Joined: Fri Jun 26, 2020 12:39 pm

Re: Imac 2017 no audio

Post by jamiemint »

-Max- wrote: Thu Sep 09, 2021 1:25 pm I should add, that when testing the sound, the volume bar in Volume Control/Output Devices in Pavucontrol shows output (the VU meter bar flickers), but no sound from the speakers.
Well, if that's the case, it sounds more like a hardware issue. Can you plug in an old pair of speakers or headphones and change the Output Device?

Jamie
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

Thanks both for the suggestions.

I tried running through the link suggestions, but to no avail. I also tried with headphones. The headphones seems to get registered, I see the flickering VU bar in the sound settings, but still no sound.
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

Pinokkio wrote: Wed Sep 01, 2021 1:53 am I am not an expert , but sometimes one oversees the most simple thing ( for example the computer or TV doesn't start anymore and then to find that the electric cable isn't connected . :oops:
So in Preferences ==> Sound are the internal speakers selected and volume up high ?
For more technical info see MrEen :

http://mreen.epizy.com/SoundFixTips.html?i=1
from Topic :
viewtopic.php?t=294619
I have also tried steps 1 to 6 in the "No sound Fix Tips" in the link, but no sound so far
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Imac 2017 no audio

Post by MrEen »

Hi -Max-,

Let's get a look at your sound setup with this command:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
The last line of output will have a URL pointing to the info. Pasting that URL is all I need.

EDIT: Whoops, you already did that! I'll try going through the output and see if I can spot something out of place. In your PM, you mentioned another thread with a less-than-ideal solution. Just in case, do you still have a link to that other thread?
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Imac 2017 no audio

Post by MrEen »

Looking though the output so far has revealed one thing to note. You have 2 speaker pins instead of just one, so this might make a difference:

On the Configuration tab of pavucontrol change the Analog Stereo Duplex setting to one of the Surround options then test your sound. Your lack of headphone sound indicates this may not make any difference, but I'd like you try it anyway.

I'll try to keep looking through the output for anything else amiss, but my time is a bit limited.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Imac 2017 no audio

Post by MrEen »

And when that fails, see my post here and try the same things: viewtopic.php?p=1878491#p1878491
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

MrEen wrote: Sun Sep 26, 2021 3:35 pm Looking though the output so far has revealed one thing to note. You have 2 speaker pins instead of just one, so this might make a difference:

On the Configuration tab of pavucontrol change the Analog Stereo Duplex setting to one of the Surround options then test your sound. Your lack of headphone sound indicates this may not make any difference, but I'd like you try it anyway.

I'll try to keep looking through the output for anything else amiss, but my time is a bit limited.
Regardless of which configuration profile, I choose, whether it is Stereo Duplex or any of the surround options, I get no sound. On the "Output Devices" tab I do see the VU sound indicator bar move.

I'll move on to the next suggestion
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

MrEen wrote: Sun Sep 26, 2021 3:42 pm And when that fails, see my post here and try the same things: viewtopic.php?p=1878491#p1878491
I tried the 3 code fixes in the post, with reboots afterwards, but no success, regardless of configuration in pavucontrol. VU bar in pavucontrol shows activity under all 3 commands.

So no luck so far.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Imac 2017 no audio

Post by MrEen »

Okay, I'm assuming one of those edits is still in place, so please run this again while trying to play something with sound so I can see if we've made any progress at all:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

MrEen wrote: Tue Sep 28, 2021 8:10 pm Okay, I'm assuming one of those edits is still in place, so please run this again while trying to play something with sound so I can see if we've made any progress at all:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
When running this code, I get this output link: https://termbin.com/u82m
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Imac 2017 no audio

Post by MrEen »

I still see nothing unusual. Remove the last edit with this:

Code: Select all

sudo rm /etc/modprobe.d/mac-fix.conf
Reboot and test your sound just in case. When it still doesn't work, try suspending the machine then waking it back up and test the sound again.
-Max-
Level 1
Level 1
Posts: 31
Joined: Thu Aug 26, 2021 4:02 am

Re: Imac 2017 no audio

Post by -Max- »

MrEen wrote: Wed Sep 29, 2021 7:07 pm I still see nothing unusual. Remove the last edit with this:

Code: Select all

sudo rm /etc/modprobe.d/mac-fix.conf
Reboot and test your sound just in case. When it still doesn't work, try suspending the machine then waking it back up and test the sound again.
I tried running the code, and rebooted. Result:No sound from speakers or headphones. Suspended the machine and logged on again. Result: No audio from speakers or headphones. VU bar in pavucontrol/Output Devices/Speakers still shows activity.

The result from the curl command done after doing the above and playing a video in firefox, is here: https://termbin.com/smwf
Locked

Return to “Hardware Support”