AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1479661
Accepted
con
con
Asked: 2023-07-26 06:42:55 +0800 CST2023-07-26 06:42:55 +0800 CST 2023-07-26 06:42:55 +0800 CST

新的 22.04 安装无法在扬声器上播放声音

  • 772

我全新安装了 Ubuntu 22.04。Bang & Olufsen 扬声器不播放声音。

我已经浏览过https://help.ubuntu.com/stable/ubuntu-help/sound-nosound.html.en但没有任何帮助。

我可以通过耳机听到声音,但是当我拔出耳机时,即使音量设置为最大,声音也消失了。

Speaker - sof-hda-dsp在设置中显示为已识别,但未使用。当我拔出耳机时,Output device开关。

sudo lspci -v给出:

00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01)
    Subsystem: Hewlett-Packard Company Device 8bdd
    Flags: bus master, fast devsel, latency 32, IRQ 204, IOMMU group 15
    Memory at 601d1d0000 (64-bit, non-prefetchable) [size=16K]
    Memory at 601d000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [50] Power Management version 3
    Capabilities: [80] Vendor Specific Information: Len=14 <?>
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: sof-audio-pci-intel-tgl
    Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

同样,我有一台旧笔记本电脑,其设置几乎相同,实际上可以工作:

lspci -v | fgrep -m1 -A19 '00:1f.3'

给出

   00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH-LP cAVS
    Subsystem: Hewlett-Packard Company Comet Lake PCH-LP cAVS
    Flags: bus master, fast devsel, latency 32, IRQ 154
    Memory at b431c000 (64-bit, non-prefetchable) [size=16K]
    Memory at b4000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [50] Power Management version 3
    Capabilities: [80] Vendor Specific Information: Len=14 <?>
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_sof_pci_intel_cnl

也许切换正在使用的内核驱动程序是关键?如果有帮助的话,我该怎么做?

声卡未检测到并且命令sudo apt-get install build-essential linux-headers-uname -r alsa-base alsa-firmware-loaders alsa-oss alsa-source alsa-tools alsa-tools-gui alsa-utils alsamixergui没有解决问题。

如何为 HP 笔记本电脑安装 Bang and Olufsen 音频驱动程序?未能解决我的问题。

ubuntu(及其变体)上带有 sof-hda-dsp 音频的耳机没有声音也失败。

当耳机连接或断开连接也没有帮助时,音频输出不会切换。

Ubuntu 20.04 - 没有声音也失败

cat /proc/asound/cards产生以下输出:

 0 [sofhdadsp      ]: sof-hda-dsp - sof-hda-dsp
                      HP-HPEnvyLaptop17_cw0xxx-Type1ProductConfigId-8BDD



sudo gedit /etc/modprobe.d/alsa-base.conf

并添加

options snd-hda-intel model=generic

正如建议的Ubuntu 20.04 - 没有声音也失败了。

按照未检测到声卡 - Ubuntu 20.04 - sof-audio-pci 的建议使用 sof-bin也失败了。

我也得到了

[    0.475866] pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid
[    0.476486] pci 0000:00:07.2: DPC: RP PIO log size 0 is invalid

在启动过程中。这是否与我的扬声器不工作有关?

我也做了标准sudo apt update && sudo apt upgrade但无济于事。

当我 grep 中的音频时dmesg:

[    0.116257] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    7.147645] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    7.147677] sof-audio-pci-intel-tgl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    7.147696] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    7.148080] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    8.341717] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    8.407947] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    8.441644] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
[    8.441649] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    8.441653] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[    8.442691] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    8.442695] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:21:0
[    8.442697] sof-audio-pci-intel-tgl 0000:00:1f.3: FW ABI is more recent than kernel
[    8.442701] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[    8.538642] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    8.538647] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:21:0
[    8.538649] sof-audio-pci-intel-tgl 0000:00:1f.3: FW ABI is more recent than kernel
[    8.555720] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:21:0
[    8.555726] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: topology ABI is more recent than kernel
[    8.585014] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC245: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    8.585021] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    8.585023] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    8.585025] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[    8.585026] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[    8.585028] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[    8.634984] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[    8.634992] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten

我也尝试添加snd-intel-dspcfg.dsp_driver=1,/boot/grub/grub.cfg但没有改变任何东西https://bbs.archlinux.org/viewtopic.php?id=275737

cat /proc/asound/cards给出输出:

 0 [sofhdadsp      ]: sof-hda-dsp - sof-hda-dsp
                      HP-HPEnvyLaptop17_cw0xxx-Type1ProductConfigId-8BDD

sudo aplay -l

给出输出:

card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

如何让扬声器发出声音?

sound
  • 1 1 个回答
  • 77 Views

1 个回答

  • Voted
  1. Best Answer
    mhdadk
    2023-07-27T07:30:35+08:002023-07-27T07:30:35+08:00

    事实证明,这是一个众所周知的问题,目前还不容易解决。详细信息请参见此处。该帖子中提到的笔记本电脑是 HP ENVY x360 15-ey0xxx,它也使用 Bang & Olufsen 扬声器。这篇问答帖子非常活跃,截至撰写本文时的最新回复日期为昨天(2023 年 7 月 25 日)。我做了一些挖掘,似乎你有两个选择:

    1. 如此回复所示,将您的 Linux 内核版本更新到 6.3.2 。为此,您可以按照此处的说明进行操作。但是,正如这些答案中所解释的,不建议这样做。因此,您可能需要安装非 LTS 版本的 Ubuntu,例如发布的 23.04 或 23.10。
    2. 正如此回复中所指出的,您可以按照此处的说明安装可修复该问题的 DKMS 模块。但是,对于此选项,请注意回复下的以下警告极其重要:
    Thanks for the patch, but note that this change can't be taken.
    It's dangerous and may burn speakers on other machines that don't use
    this configuration.
    
    For now, those info relies on the BIOS ACPI setup with _DSD entry, and
    vendors should fix it with BIOS updates.
    
    There have been already discussions how to deal with vendors who don't
    cooperate well.
    

    我认为这两个选项都不理想,我个人会等到这个问题在 Ubuntu 的未来版本中得到解决。

    • 1

相关问题

  • 从网络广播录制声音

  • 播放声音时延迟

  • 5.1环绕声[关闭]

  • 声音,在多个程序之间停止

  • 即使插入耳机,我的扬声器也会发出声音[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve