EDIT: See workaround.
I’ve tried Ubuntu 18.04 with 4.18.11 kernel, Ubuntu 18.10 Beta, Fedora Rawhide and Arch Linux and I cannot get sound to work with speakers plugged to the rear panel line-out (green). Detection seems to work because when I (un)plug the mini-jack line out device (dis)appears in Gnome settings.
If I plug headphones to the front panel or pass it through Display Port it works fine although monitor’s built in speakers are terrible. Windows 10 works fine which so it must be Linux Realtek driver issue.
Bios is updated to latest F5 version.
Ubuntu 18.04 with 4.18.11 kernel:
dmesg
$ dmesg | grep -i "hda\|audio"
[ 23.215663] snd_hda_intel 0000:09:00.1: Disabling MSI
[ 23.215670] snd_hda_intel 0000:09:00.1: Handle vga_switcheroo audio client
[ 23.215751] snd_hda_intel 0000:0b:00.3: enabling device (0000 -> 0002)
[ 23.279402] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC1220: line_outs=3 (0x1b/0x15/0x16/0x0/0x0) type:line
[ 23.279403] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 23.279405] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x14/0x0/0x0/0x0/0x0)
[ 23.279405] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
[ 23.279406] snd_hda_codec_realtek hdaudioC1D0: dig-out=0x1e/0x0
[ 23.279407] snd_hda_codec_realtek hdaudioC1D0: inputs:
[ 23.279408] snd_hda_codec_realtek hdaudioC1D0: Front Mic=0x19
[ 23.279409] snd_hda_codec_realtek hdaudioC1D0: Rear Mic=0x18
[ 23.279409] snd_hda_codec_realtek hdaudioC1D0: Line=0x1a
[ 23.291938] input: HD-Audio Generic Front Mic as /devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1/input18
[ 23.291984] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1/input19
[ 23.292029] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1/input20
[ 23.292067] input: HD-Audio Generic Line Out Front as /devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1/input21
[ 23.292103] input: HD-Audio Generic Line Out Surround as /devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1/input22
[ 23.292142] input: HD-Audio Generic Line Out CLFE as /devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1/input23
[ 23.292182] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1/input24
[ 24.196888] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input25
[ 24.196952] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input26
[ 24.197004] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input27
[ 24.197052] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0/input28
Suspend seems to be fine:
sinks with line out selected
$ pacmd list-sinks
2 sink(s) available.
index: 0
name: <alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9030
volume: front-left: 22696 / 35% / -27,63 dB, front-right: 22696 / 35% / -27,63 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: 0
sample spec: s16le 2 k 44100 Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0,00 ms; range is 0,50 .. 371,52 ms
card: 0 <alsa_card.pci-0000_09_00.1>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 1"
alsa.id = "HDMI 1"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "7"
alsa.card = "0"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 125"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:09:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0"
device.bus = "pci"
device.vendor.id = "10de"
device.vendor.name = "NVIDIA Corporation"
device.product.id = "10f0"
device.product.name = "GP104 High Definition Audio Controller"
device.string = "hdmi:0,1"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo-extra1"
device.profile.description = "Digital Stereo (HDMI 2)"
device.description = "GP104 High Definition Audio Controller Digital Stereo (HDMI 2)"
alsa.mixer_name = "Nvidia GPU 83 HDMI/DP"
alsa.components = "HDA:10de0083,14583717,00100100"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "PHL 278E8Q
"
active port: <hdmi-output-1>
* index: 1
name: <alsa_output.pci-0000_0b_00.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:
priority: 9039
volume: front-left: 33805 / 52% / -17,25 dB, front-right: 33805 / 52% / -17,25 dB
balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 24,95 ms
max request: 4 KiB
max rewind: 64 KiB
monitor source: 1
sample spec: s16le 2 k 44100 Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 25,01 ms; range is 0,50 .. 371,52 ms
card: 1 <alsa_card.pci-0000_0b_00.3>
module: 8
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC1220 Analog"
alsa.id = "ALC1220 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xf7a00000 irq 127"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:0b:00.3"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1457"
device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
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 = "Analogowe stereo"
device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Analogowe stereo"
alsa.mixer_name = "Realtek ALC1220"
alsa.components = "HDA:10ec1220,1458a0cc,00100101"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Wyjście liniowe (priority 9900, latency offset 0 usec, available: yes)
properties:
analog-output-headphones: Słuchawki (priority 9000, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-lineout>
sinks with Display port selcted
2 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 9030
volume: front-left: 22696 / 35% / -27,63 dB, front-right: 22696 / 35% / -27,63 dB
balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 24,96 ms
max request: 4 KiB
max rewind: 64 KiB
monitor source: 0
sample spec: s16le 2 k 44100 Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 25,01 ms; range is 0,50 .. 371,52 ms
card: 0 <alsa_card.pci-0000_09_00.1>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 1"
alsa.id = "HDMI 1"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "7"
alsa.card = "0"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 126"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:09:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0"
device.bus = "pci"
device.vendor.id = "10de"
device.vendor.name = "NVIDIA Corporation"
device.product.id = "10f0"
device.product.name = "GP104 High Definition Audio Controller"
device.string = "hdmi:0,1"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo-extra1"
device.profile.description = "Digital Stereo (HDMI 2)"
device.description = "GP104 High Definition Audio Controller Digital Stereo (HDMI 2)"
alsa.mixer_name = "Nvidia GPU 83 HDMI/DP"
alsa.components = "HDA:10de0083,14583717,00100100"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "PHL 278E8Q
"
active port: <hdmi-output-1>
index: 1
name: <alsa_output.pci-0000_0b_00.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9039
volume: front-left: 34658 / 53% / -16,60 dB, front-right: 34658 / 53% / -16,60 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: 1
sample spec: s16le 2 k 44100 Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0,00 ms; range is 0,50 .. 371,52 ms
card: 1 <alsa_card.pci-0000_0b_00.3>
module: 8
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC1220 Analog"
alsa.id = "ALC1220 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xf7a00000 irq 128"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:0b:00.3"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1457"
device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
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 = "Analogowe stereo"
device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Analogowe stereo"
alsa.mixer_name = "Realtek ALC1220"
alsa.components = "HDA:10ec1220,1458a0cc,00100101"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Wyjście liniowe (priority 9900, latency offset 0 usec, available: yes)
properties:
analog-output-headphones: Słuchawki (priority 9000, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-lineout>
AlsaInfo output is here.