安装 Ubuntu 20.04 后,我注意到我根本没有声音。我还安装了 22.04 认为可能较新的版本已经解决了这个问题,结果证明是错误的。22.04 也存在这个问题。
这是lspci -v
重要的情况下的输出:
hossein@hossein-pc:~$ sudo lspci -v
00:00.0 Host bridge: Intel Corporation Device 4668 (rev 02)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, fast devsel, latency 0
Memory at <ignored> (32-bit, non-prefetchable)
00:01.0 PCI bridge: Intel Corporation Device 460d (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 121
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00006000-00006fff [size=4K]
Memory behind bridge: 84000000-850fffff [size=17M]
Prefetchable memory behind bridge: 0000004000000000-0000004011ffffff [size=288M]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
Capabilities: [a0] Power Management version 3
Capabilities: [100] Advanced Error Reporting
Capabilities: [220] Access Control Services
Capabilities: [150] Precision Time Measurement
Capabilities: [a30] Secondary PCI Express
Capabilities: [a90] Data Link Feature <?>
Capabilities: [a9c] Physical Layer 16.0 GT/s <?>
Capabilities: [edc] Lane Margining at the Receiver <?>
Capabilities: [adc] Extended Capability ID 0x2a
Capabilities: [b0c] Extended Capability ID 0x2b
Kernel driver in use: pcieport
00:0a.0 Signal processing controller: Intel Corporation Device 467d (rev 01)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: fast devsel
Memory at 4014210000 (64-bit, non-prefetchable) [size=32K]
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [d0] Power Management version 3
Capabilities: [100] Designated Vendor-Specific <?>
Capabilities: [110] Designated Vendor-Specific <?>
Capabilities: [120] Designated Vendor-Specific <?>
Kernel driver in use: intel-pmt
Kernel modules: intel_pmt
00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Volume Management Device NVMe RAID Controller
Flags: bus master, fast devsel, latency 0
Memory at 4012000000 (64-bit, non-prefetchable) [size=32M]
Memory at 82000000 (32-bit, non-prefetchable) [size=32M]
Memory at 4014100000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [80] MSI-X: Enable+ Count=19 Masked-
Capabilities: [90] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [e0] Power Management version 3
Kernel driver in use: vmd
Kernel modules: vmd
00:14.0 USB controller: Intel Corporation Device 7ae0 (rev 11) (prog-if 30 [XHCI])
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, medium devsel, latency 0, IRQ 147
Memory at 4014200000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [70] Power Management version 2
Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
Capabilities: [90] Vendor Specific Information: Len=14 <?>
Capabilities: [b0] Vendor Specific Information: Len=00 <?>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Device 7aa7 (rev 11)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: fast devsel
Memory at 4014220000 (64-bit, non-prefetchable) [disabled] [size=16K]
Memory at 4014229000 (64-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: [80] Power Management version 3
00:14.3 Network controller: Intel Corporation Device 7af0 (rev 11)
DeviceName: Onboard - Ethernet
Subsystem: Intel Corporation Device 0074
Flags: fast devsel, IRQ 18
Memory at 401421c000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [80] MSI-X: Enable- Count=16 Masked-
Capabilities: [100] Latency Tolerance Reporting
Capabilities: [164] Vendor Specific Information: ID=0010 Rev=0 Len=014 <?>
Kernel modules: iwlwifi
00:15.0 Serial bus controller [0c80]: Intel Corporation Device 7acc (rev 11)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, fast devsel, latency 0, IRQ 27
Memory at 4014226000 (64-bit, non-prefetchable) [virtual] [size=4K]
Capabilities: [80] Power Management version 3
Capabilities: [90] Vendor Specific Information: Len=14 <?>
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:15.1 Serial bus controller [0c80]: Intel Corporation Device 7acd (rev 11)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, fast devsel, latency 0, IRQ 40
Memory at 4014227000 (64-bit, non-prefetchable) [virtual] [size=4K]
Capabilities: [80] Power Management version 3
Capabilities: [90] Vendor Specific Information: Len=14 <?>
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:15.2 Serial bus controller [0c80]: Intel Corporation Device 7ace (rev 11)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at 4014228000 (64-bit, non-prefetchable) [virtual] [size=4K]
Capabilities: [80] Power Management version 3
Capabilities: [90] Vendor Specific Information: Len=14 <?>
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Device 7ae8 (rev 11)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, fast devsel, latency 0, IRQ 167
Memory at 4014225000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 3
Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [a4] Vendor Specific Information: Len=14 <?>
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Device 7ae2 (rev 11) (prog-if 01 [AHCI 1.0])
DeviceName: Onboard - SATA
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 146
Memory at 86900000 (32-bit, non-prefetchable) [size=8K]
Memory at 86903000 (32-bit, non-prefetchable) [size=256]
I/O ports at 7050 [size=8]
I/O ports at 7040 [size=4]
I/O ports at 7020 [size=32]
Memory at 86902000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Kernel driver in use: ahci
Kernel modules: ahci
00:1a.0 PCI bridge: Intel Corporation Device 7ac8 (rev 11) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 122
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00005000-00005fff [size=4K]
Memory behind bridge: 85b00000-864fffff [size=10M]
Prefetchable memory behind bridge: 0000004014300000-00000040144fffff [size=2M]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
Capabilities: [a0] Power Management version 3
Kernel driver in use: pcieport
00:1c.0 PCI bridge: Intel Corporation Device 7ab8 (rev 11) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 123
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 00004000-00004fff [size=4K]
Memory behind bridge: 85100000-85afffff [size=10M]
Prefetchable memory behind bridge: 0000004014500000-00000040146fffff [size=2M]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
Capabilities: [a0] Power Management version 3
Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation Device 7ab9 (rev 11) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 124
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: 00003000-00003fff [size=4K]
Memory behind bridge: 86800000-868fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
Capabilities: [a0] Power Management version 3
Capabilities: [100] Advanced Error Reporting
Capabilities: [220] Access Control Services
Capabilities: [150] Precision Time Measurement
Capabilities: [a30] Secondary PCI Express
Capabilities: [a90] Data Link Feature <?>
Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation Device 7abb (rev 11) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 125
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: 86500000-866fffff [size=2M]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
Capabilities: [a0] Power Management version 3
Capabilities: [100] Advanced Error Reporting
Capabilities: [220] Access Control Services
Capabilities: [150] Precision Time Measurement
Capabilities: [a30] Secondary PCI Express
Capabilities: [a90] Data Link Feature <?>
Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Device 7ab4 (rev 11) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 126
Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: 86700000-867fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 8694
Capabilities: [a0] Power Management version 3
Capabilities: [100] Advanced Error Reporting
Capabilities: [220] Access Control Services
Capabilities: [150] Precision Time Measurement
Capabilities: [a30] Secondary PCI Express
Capabilities: [a90] Data Link Feature <?>
Capabilities: [a9c] Physical Layer 16.0 GT/s <?>
Capabilities: [edc] Lane Margining at the Receiver <?>
Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Device 7a84 (rev 11)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, fast devsel, latency 0
00:1f.3 Audio device: Intel Corporation Device 7ad0 (rev 11)
DeviceName: Onboard - Sound
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: bus master, fast devsel, latency 32, IRQ 168
Memory at 4014218000 (64-bit, non-prefetchable) [size=16K]
Memory at 4014000000 (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_tgl
00:1f.4 SMBus: Intel Corporation Device 7aa3 (rev 11)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: medium devsel, IRQ 18
Memory at 4014224000 (64-bit, non-prefetchable) [size=256]
I/O ports at efa0 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device 7aa4 (rev 11)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device 8694
Flags: fast devsel
Memory at 80800000 (32-bit, non-prefetchable) [size=4K]
01:00.0 VGA compatible controller: NVIDIA Corporation Device 2206 (rev a1) (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Device 403f
Flags: bus master, fast devsel, latency 0, IRQ 169
Memory at 84000000 (32-bit, non-prefetchable) [size=16M]
Memory at 4000000000 (64-bit, prefetchable) [size=256M]
Memory at 4010000000 (64-bit, prefetchable) [size=32M]
I/O ports at 6000 [size=128]
Expansion ROM at 85000000 [virtual] [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Legacy Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [250] Latency Tolerance Reporting
Capabilities: [258] L1 PM Substates
Capabilities: [128] Power Budgeting <?>
Capabilities: [420] Advanced Error Reporting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] Secondary PCI Express
Capabilities: [bb0] Resizable BAR <?>
Capabilities: [c1c] Physical Layer 16.0 GT/s <?>
Capabilities: [d00] Lane Margining at the Receiver <?>
Capabilities: [e00] Data Link Feature <?>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation Device 1aef (rev a1)
Subsystem: Gigabyte Technology Co., Ltd Device 403f
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at 85080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [160] Data Link Feature <?>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02) (prog-if 01 [AHCI 1.0])
Subsystem: ASUSTeK Computer Inc. ASM1062 Serial ATA Controller
Flags: bus master, fast devsel, latency 0, IRQ 154
I/O ports at 3050 [size=8]
I/O ports at 3040 [size=4]
I/O ports at 3030 [size=8]
I/O ports at 3020 [size=4]
I/O ports at 3000 [size=32]
Memory at 86800000 (32-bit, non-prefetchable) [size=512]
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Kernel driver in use: ahci
Kernel modules: ahci
05:00.0 Ethernet controller: Intel Corporation Device 15f3 (rev 03)
Subsystem: ASUSTeK Computer Inc. Device 87d2
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at 86500000 (32-bit, non-prefetchable) [size=1M]
Memory at 86600000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
Capabilities: [70] MSI-X: Enable+ Count=5 Masked-
Capabilities: [a0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 04-42-1a-ff-ff-31-84-6b
Capabilities: [1c0] Latency Tolerance Reporting
Capabilities: [1f0] Precision Time Measurement
Capabilities: [1e0] L1 PM Substates
Kernel driver in use: igc
Kernel modules: igc
06:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a809 (prog-if 02 [NVM Express])
Subsystem: Samsung Electronics Co Ltd Device a801
Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0
Memory at 86700000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [b0] MSI-X: Enable+ Count=13 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00
Capabilities: [158] Power Budgeting <?>
Capabilities: [168] Secondary PCI Express
Capabilities: [188] Latency Tolerance Reporting
Capabilities: [190] L1 PM Substates
Kernel driver in use: nvme
Kernel modules: nvme
如您所见,似乎检测到了音频设备,但仍然没有任何声音!
我该如何解决这个问题?
更新1:
我注意到后面板的声音似乎还可以,但前面板没有声音。我检查了前面板和后面板在windows下都有声音,但前面板仅在ubuntu中不起作用!这怎么可能?这仍然是驱动程序问题吗?
编辑:这个答案对我有用!请在下面查看此答案:https ://askubuntu.com/a/1420082/1602652 。我运行了这两个命令,现在我在带有 Z690 主板和内核 5.18 的 Ubuntu 22.04 上有声音。似乎它与内核无关,因为 OP 的答案有 5.15 内核。
此外,如果您希望此修复在重新启动后持续存在,请在 /etc/pulse/default.pa 文件底部附近添加以下内容:
pacmd load-module module-alsa-sink device=hw:Audio,1 control=PCM,1
确保文件中没有单引号或双引号
我和你有同样的硬件问题。从我读到的内容看来,我们拥有的声卡似乎不受内核支持,或者 snd-hda-intel 驱动程序没有正确加载。
我们可能暂时不走运。我已经尝试了从编辑 alsa-base.conf 文件到将内核更新到 5.18.2 的所有方法,但没有任何效果。
一位用户好心地发布了一个答案并链接到此reddit 帖子,其中包含解决此问题的解决方法。几分钟后,他不知何故删除了他的答案。我在提到的 reddit-post 的末尾找到了我的解决方法,这是一个单行!
解决我的问题的是此链接中解释的解决方法。我所做的只是简单地运行以下命令:首先我使用了这个命令:
这没有用,但在运行以下命令后,fornt jack 开始工作得很好:
device
名字必须是hw:Audio
,因为我是从跑步中得到的(alsa-info
这是我的参考信息)在那之后,我注意到设置/声音部分有一个新条目,谢天谢地,正面和背面都有声音。