Built-in speakers don't work in imac 27 2019

Built-in speakers don’t work in imac 27 2019, I’m new to Linux, just installed. Tried to find information on the Internet - empty.

Hello and welcome to the Forum! :vulcan_salute:

Unfortunately it is a known issue with some iMacs and the only workaround is to plug in a USB audio interface.

It may help, of course, if you can provide some system info, starting with:

inxi -zv8 

… copy the whole Terminal output, paste here, select all the pasted text and click the </> button at the top of the reply window.

Cheers! :wink:

ETA: I have a friend who knows a lot about iMacs. Knowing the full specs will mean I can ask her if it’s one of the affected models.

My parents had that same Mac and I ran DeLinuxCo on that thing for three years for them until the whole SMC controller finally died.I don’t have this page linked on the main menu of the site, but you can check it out here.

System:
  Kernel: 6.12.34-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 15.1.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.12-x86_64
    root=UUID=4173651d-bc42-43da-9970-3804f242ecba rw rootflags=subvol=@
    quiet splash apparmor=1 security=apparmor udev.log_priority=3
  Desktop: GNOME v: 48.2 tk: GTK v: 3.24.49 wm: gnome-shell
    tools: gsd-screensaver-proxy dm: GDM v: 48.0 Distro: Manjaro
    base: Arch Linux
Machine:
  Type: Laptop System: Apple product: iMac19,1 v: 1.0
    serial: <superuser required> Chassis: type: 9 v: Mac-AA95B1DDAB278B95
    serial: <superuser required>
  Mobo: Apple model: Mac-AA95B1DDAB278B95 v: iMac19,1
    serial: <superuser required> uuid: <superuser required> UEFI: Apple
    v: 2020.40.3.0.0 date: 08/06/2023
Battery:
  Message: No system battery data found. Is one present?
Memory:
  System RAM: total: 32 GiB available: 31.23 GiB used: 5.5 GiB (17.6%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 64 GiB slots: 4 modules: 2 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: ChannelA-DIMM0 type: DDR4 detail: synchronous size: 16 GiB
    speed: 2667 MT/s volts: curr: 1 width (bits): data: 64 total: 64
    manufacturer: Kingston part-no: KHX2666C16S4/16G serial: <filter>
  Device-2: ChannelA-DIMM1 type: no module installed
  Device-3: ChannelB-DIMM0 type: DDR4 detail: synchronous size: 16 GiB
    speed: 2667 MT/s volts: curr: 1 width (bits): data: 64 total: 64
    manufacturer: Kingston part-no: KHX2666C16S4/16G serial: <filter>
  Device-4: ChannelB-DIMM1 type: no module installed
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-8500 bits: 64 type: MCP arch: Coffee Lake
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xFA
  Topology: cpus: 1x dies: 1 clusters: 6 cores: 6 smt: <unsupported> cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 9 MiB desc: 1x9 MiB
  Speed (MHz): avg: 800 min/max: 800/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800
    bogomips: 36012
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp ibpb ibrs ida intel_pt
    invpcid lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep smap
    smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: KVM: Split huge pages
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS; IBPB: conditional; STIBP: disabled;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX
    470/480/570/570X/580/580X/590] vendor: Apple driver: amdgpu v: kernel
    arch: GCN-4 code: Arctic Islands process: GF 14nm built: 2016-20 pcie:
    gen: 3 speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1,DP-2,DP-3
    bus-ID: 01:00.0 chip-ID: 1002:67df class-ID: 0300 temp: 27.0 C
  Device-2: Apple FaceTime HD Camera (Built-in) driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-13:4
    chip-ID: 05ac:8511 class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.18 with: Xwayland v: 24.1.8
    compositor: gnome-shell driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: Apple iMac serial: <filter> built: 2018
    res: 3840x2160 dpi: 163 gamma: 1.2 chroma: red: x: 0.682 y: 0.322 green:
    x: 0.255 y: 0.698 blue: x: 0.149 y: 0.055 white: x: 0.314 y: 0.329
    size: 597x336mm (23.5x13.23") diag: 685mm (27") ratio: 16:9
    modes: 3840x2160, 3200x1800, 2560x1440, 1920x1200, 1920x1080, 1600x1200,
    1680x1050, 1280x1024, 1440x900, 1280x800, 1280x720, 1024x768, 800x600,
    640x480
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.1.4-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 470 Graphics
    (radeonsi polaris10 ACO DRM 3.61 6.12.34-1-MANJARO) device-ID: 1002:67df
    memory: 3.91 GiB unified: no display-ID: :0.0
  Info: Tools: api: eglinfo,glxinfo x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel v: kernel
    alternate: snd_soc_avs,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Device-2: Advanced Micro Devices [AMD/ATI] Ellesmere HDMI Audio [Radeon
    RX 470/480 / 570/580/590] driver: snd_hda_intel v: kernel pcie: gen: 3
    speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 1002:aaf0 class-ID: 0403
  Device-3: Logitech Logitech G PRO X Gaming Headset
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-10:3 chip-ID: 046d:0aaa class-ID: 0300
    serial: <filter>
  API: ALSA v: k6.12.34-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.4.5 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Broadcom BCM4364 802.11ac Wireless Network Adapter vendor: Apple
    driver: N/A modules: brcmfmac pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    bus-ID: 03:00.0 chip-ID: 14e4:4464 class-ID: 0280
  Device-2: Broadcom NetXtreme BCM57766 Gigabit Ethernet PCIe driver: tg3
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0
    chip-ID: 14e4:1686 class-ID: 0200
  IF: enp4s0f0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 957.59 GiB used: 9.88 GiB (1.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Apple model: SSD SM0032L
    size: 26.08 GiB block-size: physical: 4096 B logical: 4096 B
    speed: 15.8 Gb/s lanes: 2 tech: SSD serial: <filter> fw-rev: DXZ77A0Q
    temp: 23.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Apple model: HDD ST1000DM003
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: AQ04 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 9.88 GiB (1.1%) fs: btrfs dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 4173651d-bc42-43da-9970-3804f242ecba
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 928 KiB (0.3%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 6F92-EACE
  ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 9.88 GiB (1.1%) fs: btrfs dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 4173651d-bc42-43da-9970-3804f242ecba
  ID-4: /var/cache raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 9.88 GiB (1.1%) fs: btrfs dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 4173651d-bc42-43da-9970-3804f242ecba
  ID-5: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 9.88 GiB (1.1%) fs: btrfs dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 4173651d-bc42-43da-9970-3804f242ecba
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:3 size: 300 MiB fs: vfat label: EFI
    uuid: 5F66-17ED
  ID-2: /dev/nvme0n1p2 maj-min: 259:4 size: 25.78 GiB fs: apfs label: N/A
    uuid: 1d52e5e1-5083-4887-b63c-a27a21f3aac2
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-8:2 info: Logitech G631 Keyboard type: keyboard,mouse,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 98mA chip-ID: 046d:c53d class-ID: 0300
  Device-2: 1-10:3 info: Logitech Logitech G PRO X Gaming Headset
    type: audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4
    rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 046d:0aaa class-ID: 0300 serial: <filter>
  Device-3: 1-13:4 info: Apple FaceTime HD Camera (Built-in) type: video
    driver: uvcvideo interfaces: 3 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s)
    lanes: 1 mode: 2.0 power: 500mA chip-ID: 05ac:8511 class-ID: 0e02
    serial: <filter>
  Device-4: 1-14:5 info: Logitech G MX518 Gaming Mouse (MU0053)
    type: mouse,HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 300mA
    chip-ID: 046d:c08e class-ID: 0300 serial: <filter>
  Hub-2: 2-0:1 info: super-speed hub ports: 10 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 35.0 C pch: 42.0 C mobo: N/A gpu: amdgpu
    temp: 28.0 C
  Fan Speeds (rpm): N/A
Repos:
  Packages: pm: pacman pkgs: 1395 libs: 451 tools: gnome-software,pamac
    pm: flatpak pkgs: 0
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://ask4.mm.fcix.net/manjaro/stable/$repo/$arch
    2: https://ziply.mm.fcix.net/manjaro/stable/$repo/$arch
    3: https://muug.ca/mirror/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 400
  1: cpu: 30.6% command: kgx pid: 43374 mem: 278.9 MiB (0.8%)
  2: cpu: 2.9% command: zsh pid: 43382 mem: 10.2 MiB (0.0%)
  3: cpu: 0.9% command: localsearch-extractor-3 pid: 43418
    mem: 39.0 MiB (0.1%)
  4: cpu: 0.6% command: [kworker/u24:50-btrfs-endio] pid: 40752
    mem: 0.00 MiB (0.0%)
  5: cpu: 0.5% command: chromium pid: 25061 mem: 506.3 MiB (1.5%)
  Memory top: 5 of 400
  1: mem: 1110.6 MiB (3.4%) command: gnome-control-center pid: 24806
    cpu: 0.0%
  2: mem: 900.8 MiB (2.8%) command: pamac-manager pid: 2230 cpu: 0.0%
  3: mem: 506.3 MiB (1.5%) command: chromium pid: 25061 cpu: 0.5%
  4: mem: 473.5 MiB (1.4%) command: chromium pid: 21340 cpu: 0.2%
  5: mem: 303.0 MiB (0.9%) command: chromium pid: 21397 cpu: 0.2%
Info:
  Processes: 400 Power: uptime: 11h 57m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 1 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.47 GiB services: gsd-power,
    power-profiles-daemon, upowerd Init: systemd v: 257 default: graphical
    tool: systemctl
  Compilers: gcc: 15.1.1 Shell: Zsh v: 5.9 running-in: kgx inxi: 3.3.38

pamac install linux612-headers

I did as you said, the speakers worked, but now they are very noisy

If speakers are working, but noisy, the Cirrus CS8409 audio codec might be working OK but
the TAS5764L amplifier for the speakers might be misconfigured

I have found another GiHub project that might provide better working audio

GitHub - davidjo/snd_hda_macbookpro: Kernel audio driver for Macs with 8409 HDA chip + MAX98706/SSM3515 amps

This is a kernel driver for sound on Macs with Cirrus 8409 HDA chips. Sound output is now reasonably complete and integrated with Linux. Sound input still needs work.

Currently this works with MAX98706, SSM3515 and TAS5764L amplifiers. It will NOT work with other amplifiers as each amplifier requires specific programming.

snd-hda-macbookpro DKMS driver is available from AUR

pamac build snd-hda-macbookpro-dkms-git

should install dkms before building the driver

If speakers are still not working as expected after system has been restarted, post more information about audio devices and drivers:

inxi -Aaz

Can you verify that sof-firmware is inistalled?

yes, he’s installed

Audio:
Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel v: kernel
alternate: snd_soc_avs,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
chip-ID: 8086:a348 class-ID: 0403
Device-2: Advanced Micro Devices [AMD/ATI] Ellesmere HDMI Audio [Radeon
RX 470/480 / 570/580/590] driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 1002:aaf0 class-ID: 0403
Device-3: Logitech Logitech G PRO X Gaming Headset
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 1-10:3 chip-ID: 046d:0aaa class-ID: 0300
serial:
API: ALSA v: k6.12.34-1-MANJARO status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: JACK v: 1.9.22 status: off tools: N/A
Server-2: PipeWire v: 1.4.5 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
tools: pactl,pw-cat,pw-cli,wpctl