18.04 对hdmi 音频支持良好么

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
onhao
帖子: 101
注册时间: 2009-03-15 22:02

Re: 18.04 对hdmi 音频支持良好么

#16

帖子 onhao » 2018-08-18 23:59

sudo lshw -numeric -class multimedia
[sudo] wuhao 的密码:
*-multimedia:0
description: Audio device
product: Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:C0C]
vendor: Intel Corporation [8086]
physical id: 3
bus info: pci@0000:00:03.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:16 memory:d3710000-d3713fff
*-usb:0
description: Video
product: USB HD Webcam [4F2:B506]
vendor: Chicony Electronics Co.,Ltd. [4F2]
physical id: 4
bus info: usb@3:4
version: 38.11
serial: 0x0001
capabilities: usb-2.00
configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
*-multimedia:1
description: Audio device
product: 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8C20]
vendor: Intel Corporation [8086]
physical id: 1b
bus info: pci@0000:00:1b.0
version: 05
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:37 memory:d3714000-d3717fff
wuhao@wuhao-w:~$ sudo cat /proc/asound/card*/codec* | grep "Codec:"
Codec: Realtek ALC282
wuhao@wuhao-w:~$ dmesg | egrep 'EMU|probe|emu|ALSA|alsa|ac97|udi|snd|ound|irmware'
[ 0.000000] found SMP MP-table at [mem 0x000fe1b0-0x000fe1bf] mapped at [ (ptrval)]
[ 0.000000] No NUMA configuration found
[ 0.049115] audit: initializing netlink subsys (disabled)
[ 0.049115] audit: type=2000 audit(1534597642.048:1): state=initialized audit_enabled=0 res=1
[ 0.049115] core: PMU erratum BJ122, BV98, HSD29 worked around, HT is on
[ 0.062248] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.193981] pnp: PnP ACPI: found 6 devices
[ 1.172736] [Firmware Bug]: Invalid critical threshold (0)
[ 1.179638] libphy: Fixed MDIO Bus: probed
[ 1.200099] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.200308] hub 1-0:1.0: USB hub found
[ 1.224100] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.224306] hub 2-0:1.0: USB hub found
[ 1.225850] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.226055] hub 3-0:1.0: USB hub found
[ 1.229879] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.230078] hub 4-0:1.0: USB hub found
[ 1.248855] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[ 1.249875] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 1.696446] usb 1-1: New USB device found, idVendor=8087, idProduct=8008
[ 1.696726] hub 1-1:1.0: USB hub found
[ 1.724464] usb 2-1: New USB device found, idVendor=8087, idProduct=8000
[ 1.724720] hub 2-1:1.0: USB hub found
[ 1.753161] usb 3-4: New USB device found, idVendor=04f2, idProduct=b506
[ 1.785915] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.793342] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.992233] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[ 2.037567] usb 3-6: New USB device found, idVendor=1a81, idProduct=1004
[ 2.461144] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x461f16)
[ 4.529302] systemd[1]: Listening on Journal Audit Socket.
[ 4.567423] lp: driver loaded but no devices found
[ 5.134393] audit: type=1400 audit(1534597647.378:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=503 comm="apparmor_parser"
[ 5.139738] audit: type=1400 audit(1534597647.382:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/snap/core/4917/usr/lib/snapd/snap-confine" pid=499 comm="apparmor_parser"
[ 5.139743] audit: type=1400 audit(1534597647.382:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/snap/core/4917/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=499 comm="apparmor_parser"
[ 5.143555] audit: type=1400 audit(1534597647.386:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=504 comm="apparmor_parser"
[ 5.143566] audit: type=1400 audit(1534597647.386:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc//sanitized_helper" pid=504 comm="apparmor_parser"
[ 5.143800] audit: type=1400 audit(1534597647.386:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=502 comm="apparmor_parser"
[ 5.143805] audit: type=1400 audit(1534597647.386:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=502 comm="apparmor_parser"
[ 5.143808] audit: type=1400 audit(1534597647.386:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=502 comm="apparmor_parser"
[ 5.149278] audit: type=1400 audit(1534597647.394:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=506 comm="apparmor_parser"
[ 5.155623] audit: type=1400 audit(1534597647.398:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=507 comm="apparmor_parser"
[ 5.269652] wmi_bus wmi_bus-PNP0C14:01: WQ data block query control method not found
[ 5.269656] wmi_bus wmi_bus-PNP0C14:01: WQ data block query control method not found
[ 5.269660] wmi_bus wmi_bus-PNP0C14:01: WQ data block query control method not found
[ 5.269663] wmi_bus wmi_bus-PNP0C14:01: WQ data block query control method not found
[ 5.321064] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 5.502970] snd_hda_core: module verification failed: signature and/or required key missing - tainting kernel
[ 5.524073] snd_hda_intel 0000:00:03.0: Probing card using HDA DKMS, version 0.201808050301~ubuntu18.04.1
[ 5.524233] snd_hda_intel 0000:00:03.0: HSW/BDW HD-audio HDMI/DP requires binding with gfx driver
[ 5.524262] snd_hda_intel 0000:00:1b.0: Probing card using HDA DKMS, version 0.201808050301~ubuntu18.04.1
[ 5.548619] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC282: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 5.548623] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 5.548627] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 5.548629] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
[ 5.548631] snd_hda_codec_realtek hdaudioC1D0: inputs:
[ 5.548634] snd_hda_codec_realtek hdaudioC1D0: Mic=0x18
[ 5.548637] snd_hda_codec_realtek hdaudioC1D0: Internal Mic=0x12
[ 5.665052] intel_rapl: Found RAPL domain package
[ 5.665054] intel_rapl: Found RAPL domain core
[ 5.665056] intel_rapl: Found RAPL domain uncore
[ 5.665057] intel_rapl: Found RAPL domain dram
[ 5.773792] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input11
[ 5.773895] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input12
[ 7.102089] uvcvideo: Found UVC 1.00 device USB HD Webcam (04f2:b506)
[ 8.193716] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170831/nsarguments-100)
[ 13.345067] vboxdrv: Found 8 processor cores
[ 13.380947] vboxpci: IOMMU not found (not registered)
wuhao@wuhao-w:~$ LANGUAGE="en_US.UTF-8" aplay -L | grep -i HDMI
wuhao@wuhao-w:~$ LANGUAGE="en_US.UTF-8" aplay -l | grep -i HDMI
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 18.04 对hdmi 音频支持良好么

#17

帖子 poloshiao » 2018-08-19 7:59

sudo prime-select intel 设置了核显 依旧 无hdmi 选项
sudo cat /proc/asound/card*/codec* | grep "Codec:"
Codec: Realtek ALC282
LANGUAGE="en_US.UTF-8" aplay -L | grep -i HDMI
LANGUAGE="en_US.UTF-8" aplay -l | grep -i HDMI
1. 這些 顯示一致結果

2. sudo prime-select nvidia # 意思是 關閉 內建顯卡 下次開機 切換到 nVidia 顯卡
https://ubuntuforums.org/showthread.php ... st13661105
Reboot or Power Off, again select the nvidia GPU.
重開機 關閉電源 重開電源 登入 Bios 選擇 nVidia 獨顯 及 上面的音效 (把內建音效晶片 關閉)
重新啟動

3. 然後 試試 前面的各項指令 把結果不同的貼上來 (結果相同的不必貼)
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 18.04 对hdmi 音频支持良好么

#18

帖子 poloshiao » 2018-08-19 8:02

*-usb:0
description: Video
product: USB HD Webcam [4F2:B506]
1. 你的 Webcam 有沒有 麥克風 ?
1-1. 測試期間 開機前 先把 這個 USB 裝置拔出來 以免搗亂
1-2. 等現在這個問題釐清了 再裝上 試試
sudo cat /proc/asound/card*/codec* | grep "Codec:"
Codec: Realtek ALC282
2. 顯然 你的 Codec 存在許多問題
請耐心參閱 :
2-1. 最近版本的抓錯
2-1-1. https://wiki.ubuntu.com/DebuggingSoundProblems
DebuggingSoundProblems
2-1-1. https://wiki.ubuntu.com/Audio
Audio
2-2. 早期版本的抓錯
2-2-1. https://help.ubuntu.com/community/SoundTroubleshooting
SoundTroubleshooting
2-2-2. https://help.ubuntu.com/community/Sound ... gProcedure
SoundTroubleshootingProcedure
dmesg | egrep 'EMU|probe|emu|ALSA|alsa|ac97|udi|snd|ound|irmware'
跟 snd_hda 有關的 :
[ 5.502970] snd_hda_core: module verification failed: signature and/or required key missing - tainting kernel
[ 5.524073] snd_hda_intel 0000:00:03.0: Probing card using HDA DKMS, version 0.201808050301~ubuntu18.04.1
[ 5.524233] snd_hda_intel 0000:00:03.0: HSW/BDW HD-audio HDMI/DP requires binding with gfx driver
[ 5.524262] snd_hda_intel 0000:00:1b.0: Probing card using HDA DKMS, version 0.201808050301~ubuntu18.04.1
[ 5.548619] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC282: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 5.548623] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 5.548627] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 5.548629] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
[ 5.548631] snd_hda_codec_realtek hdaudioC1D0: inputs:
[ 5.548634] snd_hda_codec_realtek hdaudioC1D0: Mic=0x18
[ 5.548637] snd_hda_codec_realtek hdaudioC1D0: Internal Mic=0x12
3. 以上 先查閱 紅色字部份 再補充
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 18.04 对hdmi 音频支持良好么

#19

帖子 poloshiao » 2018-08-19 10:39

這一篇 一樣是 nVidia 卡 沒有 HDMI 跟你的情況 可能更接近
看看 他們 如何解決
https://devtalk.nvidia.com/default/topi ... d-azalia/1
No Audio over HDMI - Only HDA Intel detected
onhao
帖子: 101
注册时间: 2009-03-15 22:02

Re: 18.04 对hdmi 音频支持良好么

#20

帖子 onhao » 2018-08-21 0:11

感谢 论坛版主 poloshiao
的耐心解答! 我再尝试下 :Cool
回复