You are not logged in.

#1 2016-03-30 16:50:36

archymedes
Member
Registered: 2012-09-25
Posts: 16

[Solved]Sound not working on iMac 4K

Hello everybody. I've installed ArchLinux on an iMac 4k (2015 model) and I have not sound output. I tried some other live-cd like Opensuse or Ubuntu to get a try if they could do it work, but nothing.
These are my soundcards

lluis@cajal [~]$ lspci -v | grep -i audio
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 0a)
00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller
lluis@cajal [~]$ 

It seems I've got two soundcards. I've uninstalled alsa and I've got pulseaudio only.
Some help? thanks

Last edited by archymedes (2016-04-02 10:40:04)

Offline

#2 2016-03-30 17:17:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved]Sound not working on iMac 4K

What have you tried? Have you worked through the troubleshooting pages on the wiki? What makes you think uninstalling alsa is a good idea?


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-03-30 17:38:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: [Solved]Sound not working on iMac 4K

archymedes wrote:

I had alsa and pulseaudio both installed. An ArchLinux user in an irc told me that both don't must be installed. He told me to have only pulseaudio.
I've tried to add a /etc/modprobe.d/sound.conf like the wiki says, with my model (21,5 ; or 21 ; or 4k...I do not know how to name it) and it doesn't work

I think you hit the 'report' link, not the 'reply' link.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2016-03-30 17:40:30

archymedes
Member
Registered: 2012-09-25
Posts: 16

Re: [Solved]Sound not working on iMac 4K

I had alsa and pulseaudio both installed. Then I only had one card detected. An ArchLinux user from an irc told me that I had to choose one, so I keep pulseaudio. Now, in KDE system preferences I can see both sound cards.
I've also tried to add a /etc/modprobe.d/sound.conf file with my model as mention in https://wiki.archlinux.org/index.php/IM … work_right, but I do not know how to name it. I've tried model=24, model=21,5, model=4k ...etc but it doesn't work

Offline

#5 2016-03-30 18:04:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,754

Re: [Solved]Sound not working on iMac 4K

Post

aplay -lL
pacmd list-cards

For starters, and no you shouldn't try to uninstall ALSA, what the dude on IRC likely meant, was that you shouldn't have a specific config file for ALSA while using pulseaudio (if he literally meant uninstalling ALSA, well...)

Offline

#6 2016-03-31 08:44:36

archymedes
Member
Registered: 2012-09-25
Posts: 16

Re: [Solved]Sound not working on iMac 4K

Thanks for the reply.
The ArchLinux user that tried to help me, said me to specifically uninstall alsa.
The output is:
*I had to install alsa-utils to have the aplay output

lluis@cajal [~]$ aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
    HDA Intel HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA Intel HDMI, HDMI 1
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
    HDA Intel HDMI, HDMI 2
    HDMI Audio Output
default:CARD=PCH
    HDA Intel PCH, CS4208 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, CS4208 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, CS4208 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, CS4208 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, CS4208 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, CS4208 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, CS4208 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, CS4208 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, CS4208 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, CS4208 Digital
    IEC958 (S/PDIF) Digital Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: CS4208 Digital [CS4208 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
lluis@cajal [~]$ pacmd list-cards
2 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_03.0>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel HDMI"
                alsa.long_card_name = "HDA Intel HDMI at 0xb1610000 irq 42"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:03.0"
                sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "160c"
                device.product.name = "Broadwell-U Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Audio Interno"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: unknown)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: unknown)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: unknown)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: unknown)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: unknown)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: unknown)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5200, available: unknown)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 100, available: unknown)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 100, available: unknown)
                off: Apagado (priority 0, available: unknown)
        active profile: <output:hdmi-stereo>
        sinks:
                alsa_output.pci-0000_00_03.0.hdmi-stereo/#0: Audio Interno Digital Stereo (HDMI)
        sources:
                alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor/#0: Monitor of Audio Interno Digital Stereo (HDMI)
        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"
    index: 1
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xb1614000 irq 40"
                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 = "8ca0"
                device.product.name = "9 Series Chipset Family HD Audio Controller"
                device.form_factor = "internal"
                device.string = "1"
                device.description = "Audio Interno"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Estéreo Analógico Input (priority 60, available: unknown)
                output:analog-stereo: Estéreo Analógico Output (priority 6000, available: unknown)
                output:analog-stereo+input:analog-stereo: Estéreo Analógico.Duplex (priority 6060, available: unknown)
                output:analog-surround-21: Análogico Envolvente 2.1 Output (priority 800, available: unknown)
                output:analog-surround-21+input:analog-stereo: Análogico Envolvente 2.1 Output + Estéreo Analógico Input (priority 860, available: unknown)
                output:analog-surround-40: Análogo Envolvente 4.0 Output (priority 700, available: unknown)
                output:analog-surround-40+input:analog-stereo: Análogo Envolvente 4.0 Output + Estéreo Analógico Input (priority 760, available: unknown)
                output:iec958-stereo: Estéreo Digital (IEC958) Output (priority 5500, available: unknown)
                output:iec958-stereo+input:analog-stereo: Estéreo Digital (IEC958) Output + Estéreo Analógico Input (priority 5560, available: unknown)
                off: Apagado (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#1: Audio Interno Estéreo Analógico
        sources:
                alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#1: Monitor of Audio Interno Estéreo Analógico
                alsa_input.pci-0000_00_1b.0.analog-stereo/#2: Audio Interno Estéreo Analógico
        ports:
                analog-input-internal-mic: Micrófono interno (priority 8900, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-mic: Micrófono (priority 8700, latency offset 0 usec, available: no)
                        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: Auriculares analógicos (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
                iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

Offline

#7 2016-03-31 10:54:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,754

Re: [Solved]Sound not working on iMac 4K

Whoever that person was, doesn't know what he's talking about. (Maybe I should pop into the IRC and reddit as well to prevent misinformation like that from spreading...)

The "problem" here is that your default output is set to the HDMI card, and as you likely haven't configured pulseaudio yet, all applications default to play to HDMI. Go into pavucontrol and move your analog card to be the fallback sink in the output tab, move any applications that still default to HDMI to the analog card, install pulseaudio-alsa while you are at it. If using KDE you should also setup its multimediasettings so that your analog card is on top in all categories

If the problem persists even after you have done this, post

fuser -v /dev/snd/*
pacmd list-sinks
pacmd list-sink-inputs #While playing something

You might also want to add a link to the output of the alsa-info.sh script

Offline

#8 2016-03-31 18:52:50

archymedes
Member
Registered: 2012-09-25
Posts: 16

Re: [Solved]Sound not working on iMac 4K

Thanks a lot. I installed pulseaudio-alsa and configured it. It was a mix of non-well configurations. Now HDMI is turned off and only internal audio is on, and after choose the correct profile, it's working now.
Finally it was easy to solve. I was becoming crazy.
Thanks again

Offline

#9 2016-03-31 20:04:05

MCSH
Member
Registered: 2016-03-29
Posts: 14

Re: [Solved]Sound not working on iMac 4K

If the issue is resolved, please edit the title adding [solved] to the beginning.


Sajjad Heydari

Offline

Board footer

Powered by FluxBB