Sound not working iMac 27" 5k Retina

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ruien

Sound not working iMac 27" 5k Retina

Post by ruien »

Hi.

I have a Imac 27 wich i triple boot osx, win10 and mint 18.3. Everything works perfectly except the sound in linux. Wich is my main os so it would be nice to get sound working. I have tried every "solution" on internet but nothing seems to get the internal speakers and headphones to work. I have connected a bluetooth speaker for now and that works perfectly. The bars are moving when i play something in pavucontrol but no sound before i switch to bluetooth speaker.

What i done so far: Reinstalled alsa daily. Added model= imac27, auto and mbp55 to options snd-hda-intel in /etc/modprobe.d/alsa-base.conf. Forced reload of alsa. Deleted /~./config/pulse
and rebooted. Nothing helped. Currently model is set to imac27. I have unmuted everything i can with amixer set command.


Output of inxi -Fxz

Code: Select all

System:    Host: rune-iMac Kernel: 4.13.0-36-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.3 Sylvia
Machine:   System: Apple product: iMac18 3 v: 1.0
           Mobo: Apple model: Mac-BE088AF8C5EB4FA2 v: iMac18 3
           Bios: Apple v: IM183.88Z.0153.B00.1712141501 date: 12/14/2017
CPU:       Quad core Intel Core i5-7600K (-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 30336
           clock speeds: max: 4200 MHz 1: 3800 MHz 2: 3800 MHz 3: 3800 MHz 4: 3800 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Device 67df bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: ati,amdgpu (unloaded: fbdev,vesa,radeon)
           Resolution: 3840x2160@60.00hz
           GLX Renderer: AMD POLARIS10 (DRM 3.18.0 / 4.13.0-36-generic, LLVM 5.0.0)
           GLX Version: 3.0 Mesa 17.2.8 Direct Rendering: Yes
Audio:     Card-1 Advanced Micro Devices [AMD/ATI] Device aaf0 driver: snd_hda_intel bus-ID: 01:00.1
           Card-2 Intel Sunrise Point-H HD Audio driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.13.0-36-generic
Network:   Card-1: Broadcom BCM43602 802.11ac Wireless LAN SoC driver: brcmfmac bus-ID: 03:00.0
           IF: wlp3s0 state: down mac: <filter>
           Card-2: Broadcom NetXtreme BCM57766 Gigabit Ethernet PCIe driver: tg3 v: 3.137 bus-ID: 04:00.0
           IF: enp4s0f0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 4000.8GB (29.9% used) ID-1: /dev/nvme0n1 model: N/A size: 121.3GB
           ID-2: /dev/sda model: APPLE_HDD_ST2000 size: 2000.4GB
           ID-3: USB /dev/sdb model: Expansion size: 2000.4GB
Partition: ID-1: / size: 23G used: 7.7G (36%) fs: ext4 dev: /dev/sda4
           ID-2: /home size: 997G used: 2.7G (1%) fs: ext4 dev: /dev/sda6
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 47.0C mobo: N/A gpu: 42.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 228 Uptime: 1 day Memory: 2534.0/40131.0MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
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 pactl set-sink-mute 0 0 ; pactl list sinks ; lspci -v | grep -A7 -i "audio" ; lsmod

Code: Select all

Utgang #0
	Status: SUSPENDED
	Navn: alsa_output.pci-0000_01_00.1.hdmi-stereo
	Beskrivelse: HDA ATI HDMI Digital Stereo (HDMI)
	Driver: module-alsa-card.c
	Sample-spesifikasjon: s16le 2ch 44100Hz
	Kanalkart: front-left,front-right
	Eiermodul: 6
	Dempet: nei
	Volum: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balanse 0,00
	Grunnvolum: 65536 / 100% / 0,00 dB
	Lyttekilde: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
	Forsinkelse: 0 usek, justert 0 usec
	Valg: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
	Egenskaper:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 0"
		alsa.id = "HDMI 0"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "1"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0x92660000 irq 54"
		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.string = "hdmi:1"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo"
		device.profile.description = "Digital Stereo (HDMI)"
		device.description = "HDA ATI HDMI Digital Stereo (HDMI)"
		alsa.mixer_name = "ATI R6xx HDMI"
		alsa.components = "HDA:1002aa01,00aa0100,00100700"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Porter:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, not available)
	Aktiv port: hdmi-output-0
	Formater:
		pcm

Utgang #1
	Status: SUSPENDED
	Navn: alsa_output.pci-0000_00_1f.3.analog-stereo
	Beskrivelse: Innebygd lydenhet Analog stereokanal
	Driver: module-alsa-card.c
	Sample-spesifikasjon: s16le 2ch 44100Hz
	Kanalkart: front-left,front-right
	Eiermodul: 7
	Dempet: nei
	Volum: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balanse 0,00
	Grunnvolum: 65536 / 100% / 0,00 dB
	Lyttekilde: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
	Forsinkelse: 0 usek, justert 0 usec
	Valg: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Egenskaper:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "Generic Analog"
		alsa.id = "Generic 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 0x92720000 irq 53"
		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 = "Sunrise Point-H HD Audio"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog stereokanal"
		device.description = "Innebygd lydenhet Analog stereokanal"
		alsa.mixer_name = "Cirrus Logic Generic"
		alsa.components = "HDA:10138409,106b1000,00100100"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Porter:
		analog-output-speaker: Høyttalere (priority: 10000)
		analog-output-headphones: Hodetelefoner (priority: 9000)
	Aktiv port: analog-output-headphones
	Formater:
		pcm
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
	Subsystem: Intel Corporation Sunrise Point-H HD Audio
	Flags: bus master, fast devsel, latency 64, IRQ 53
	Memory at 92720000 (64-bit, non-prefetchable) [size=16K]
	Memory at 90000000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

--
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aaf0
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device aaf0
	Flags: bus master, fast devsel, latency 0, IRQ 54
	Memory at 92660000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

Module                  Size  Used by
uas                    24576  1
usb_storage            69632  1 uas
snd_seq_dummy          16384  0
snd_hrtimer            16384  0
rfcomm                 77824  14
bnep                   20480  2
binfmt_misc            20480  1
snd_hda_codec_generic    73728  1
snd_hda_codec_hdmi     49152  1
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             548864  41 btrtl,btintel,bnep,btbcm,rfcomm,btusb
ecdh_generic           24576  1 bluetooth
uvcvideo               90112  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         40960  2 uvcvideo,videobuf2_v4l2
videodev              176128  3 uvcvideo,videobuf2_core,videobuf2_v4l2
joydev                 20480  0
input_leds             16384  0
media                  40960  2 uvcvideo,videodev
snd_hda_intel          40960  9
snd_hda_codec         126976  3 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_hda_core           81920  4 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic
applesmc               20480  0
input_polldev          16384  1 applesmc
nls_iso8859_1          16384  1
intel_rapl             20480  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             204800  0
kvm                   589824  1 kvm_intel
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
pcbc                   16384  0
snd_hwdep              20480  1 snd_hda_codec
snd_seq_midi           16384  0
snd_pcm                98304  6 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_seq_midi_event     16384  1 snd_seq_midi
aesni_intel           188416  0
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel,aesni_intel
intel_cstate           20480  0
snd_rawmidi            32768  1 snd_seq_midi
intel_rapl_perf        16384  0
snd_seq                65536  4 snd_seq_midi_event,snd_seq_dummy,snd_seq_midi
brcmfmac              319488  0
brcmutil               16384  1 brcmfmac
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  3 snd_seq,snd_hrtimer,snd_pcm
cfg80211              614400  1 brcmfmac
thunderbolt            81920  0
snd                    81920  27 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_pcm
soundcore              16384  1 snd
mei_me                 40960  0
mei                   102400  1 mei_me
shpchp                 36864  0
acpi_als               16384  0
kfifo_buf              16384  1 acpi_als
industrialio           69632  2 acpi_als,kfifo_buf
mac_hid                16384  0
apple_bl               16384  0
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,parport_pc,ppdev
autofs4                40960  2
btrfs                1101824  0
xor                    24576  1 btrfs
raid6_pq              118784  1 btrfs
dm_mirror              24576  0
dm_region_hash         20480  1 dm_mirror
dm_log                 20480  2 dm_mirror,dm_region_hash
hid_generic            16384  0
usbhid                 49152  0
hid                   118784  2 hid_generic,usbhid
amdkfd                188416  1
amd_iommu_v2           20480  1 amdkfd
amdgpu               2027520  17
i2c_algo_bit           16384  1 amdgpu
ttm                    94208  1 amdgpu
drm_kms_helper        167936  1 amdgpu
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
tg3                   172032  0
sysimgblt              16384  1 drm_kms_helper
nvme                   32768  1
sdhci_pci              28672  0
fb_sys_fops            16384  1 drm_kms_helper
nvme_core              53248  3 nvme
ptp                    20480  1 tg3
sdhci                  45056  1 sdhci_pci
pps_core               20480  1 ptp
drm                   360448  6 amdgpu,ttm,drm_kms_helper
ahci                   36864  2
libahci                32768  1 ahci
video                  40960  0

Maybe i missed something or there are no solution for this problem since there are more ppl out there have the excact same problem. Not only on iMac's but any computer.

I would be gratefull for any help .

Cheers
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.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Sound not working iMac 27" 5k Retina

Post by catweazel »

ruien wrote: Sun Mar 04, 2018 2:20 am Maybe i missed something or there are no solution for this problem since there are more ppl out there have the excact same problem. Not only on iMac's but any computer.
Install pavucontrol and use it to determine if the sound device can be selected.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
asinoro
Level 6
Level 6
Posts: 1285
Joined: Mon Feb 12, 2018 11:43 am

Re: Sound not working iMac 27" 5k Retina

Post by asinoro »

Code: Select all

sudo apt-get install qasmixer
After you start it > View > show device selection > On the right try cards and adjustments.
ruien

Re: Sound not working iMac 27" 5k Retina

Post by ruien »

Thanks for replies:)
asinoro wrote: Sun Mar 04, 2018 3:34 am

Code: Select all

sudo apt-get install qasmixer
After you start it > View > show device selection > On the right try cards and adjustments.
catweazel wrote: Sun Mar 04, 2018 3:27 am
ruien wrote: Sun Mar 04, 2018 2:20 am Maybe i missed something or there are no solution for this problem since there are more ppl out there have the excact same problem. Not only on iMac's but any computer.
Install pavucontrol and use it to determine if the sound device can be selected.
I have them both and i can select sound device. Unmuted using amixer. See link to pics.
asinoro
Level 6
Level 6
Posts: 1285
Joined: Mon Feb 12, 2018 11:43 am

Re: Sound not working iMac 27" 5k Retina

Post by asinoro »

I am curious if you try to install the first lts Kernel: 4.4.0-21.
ruien

Re: Sound not working iMac 27" 5k Retina

Post by ruien »

asinoro wrote: Sun Mar 04, 2018 7:08 am I am curious if you try to install the first lts Kernel: 4.4.0-21.
Nope i did not because it doesnt work any better according to posts around internet. My imac is mid 2017. Older imacs benefit more from older kernels. I installed 4.15 kernel and installed the latest alsa drivers but nothing different. Excactly the same. Running 4.15 now and this kernel is working fine with everything but sound.
asinoro
Level 6
Level 6
Posts: 1285
Joined: Mon Feb 12, 2018 11:43 am

Re: Sound not working iMac 27" 5k Retina

Post by asinoro »

Here with the same sound card and 4.10 kernel works.
https://forum.manjaro.org/t/crackling-s ... cher/18153
ruien

Re: Sound not working iMac 27" 5k Retina

Post by ruien »

asinoro wrote: Sun Mar 04, 2018 8:25 am Here with the same sound card and 4.10 kernel works.
https://forum.manjaro.org/t/crackling-s ... cher/18153
I have 2 sound devices. One HDMI wich is the AMD/ATI and one Intel Sunrise Point-H HD wich is the internal soundcard.

Card-1 Advanced Micro Devices [AMD/ATI] Device aaf0 driver: snd_hda_intel bus-ID: 01:00.1
Card-2 Intel Sunrise Point-H HD Audio driver: snd_hda_intel bus-ID: 00:1f.3


I dont need sound via HDMI . I rather use bluetooth speakers wich is working fine. I need to make the Intel card work with the internal speakers and mic. His is Azalia chip and mine is Cirrus logic chip. The device bus on the asus and imac is different also.
So they are not all the same. I ran 4.10, 4.13 and now 4.15 on this imac and it never worked and still dont.

But thanks for taking an interest :)
asinoro
Level 6
Level 6
Posts: 1285
Joined: Mon Feb 12, 2018 11:43 am

Re: Sound not working iMac 27" 5k Retina

Post by asinoro »

Check also this who somebody with Ubuntu 14.04 kernel 3.13 and the same as your second sound card found a solution.
https://ubuntuforums.org/showthread.php?t=2352849
ruien

Re: Sound not working iMac 27" 5k Retina

Post by ruien »

asinoro wrote: Sun Mar 04, 2018 11:49 am Check also this who somebody with Ubuntu 14.04 kernel 3.13 and the same as your second sound card found a solution.
https://ubuntuforums.org/showthread.php?t=2352849
I checked this out but his script download old alsa drivers (from 2007 and 2008).
1.0.15 and 1.0.16. There are newer drivers in the repo's.
ruien

Re: Sound not working iMac 27" 5k Retina

Post by ruien »

Nobody is able to help out with this issue?
ruien

Re: Sound not working iMac 27" 5k Retina

Post by ruien »

asinoro wrote: Tue Mar 13, 2018 3:24 pm Did you try this?
https://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/
Sorry but i uninstalled Mint due to the sound issue. When I find a solution that actually works I will install linux again.
Locked

Return to “Sound”