没有检测到我的声卡HDMI
主要是声音只能在电脑中听到,而不是在电视上,我对video没有任何问题,它的工作正常。
Ubuntu从未检测到我的声卡hdmi
。
命令:
aplay -l
结果:
**** Lista de PLAYBACK dispositivos hardware **** tarjeta 0: PCH [HDA Intel PCH], dispositivo 0: ALC269VB Analog [ALC269VB Analog] Subdispositivos: 1/1 Subdispositivo #0: subdevice #0
我尝试使用以下命令安装声音驱动程序,但仍然没有成功。
sudo add-apt-repository ppa:ubuntu-audio-dev/alsa-daily sudo apt-get update sudo apt-get install oem-audio-hda-daily-dkms
我尝试用以下命令检测我的声卡hdmi但仍然没有成功。 ( 来源 )。
命令:
echo "Sound cards recognized by the system:"; lspci -nn | grep --color=none '\[04[80][13]\]'; echo "Sound cards recognized by ALSA:"; lspci -nn | grep '\[04[80][13]\]' | while read line; do lspci -nnk | grep -A 3 '\[04[80][13]\]' | grep -e 'Kernel modules: ..*' -e '\[04[80][13]\]' | grep --color=none -F "$line"; done; echo "Sound cards recognized by ALSA, and activated:"; lspci -nn | grep '\[04[80][13]\]' | while read line; do lspci -nnk | grep -A 3 '\[04[80][13]\]' | grep -e 'Kernel drivers in use: ..*' -e '\[04[80][13]\]' | grep --color=none -F "$line"; done
结果:
Sound cards recognized by the system: 00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05) Sound cards recognized by ALSA: 00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05) Sound cards recognized by ALSA, and activated: 00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
所以我决定在“附加驱动程序”中为Nvidia安装另一个video驱动程序。
安装“NVIDIA二进制驱动程序 – 版本346.59从nvidia-346(专有,测试)”后,在启动Ubuntu时,我发出以下消息:
ACPI PPC Probe failed. Starting version 219
我仍然没有检测到我的声卡HDMI
。
有人可以帮帮我吗?
感谢您的关注。
2015年7月13日更新
命令:
lspci
结果:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05) 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) 00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5) 00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5) 00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) 00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05) 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05) 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev a1) 02:00.0 Network controller: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] (rev 34) 03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04) 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
命令:
sudo lspci -H1
结果:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05) 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) 00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5) 00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5) 00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) 00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05) 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05) 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev a1) 01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1) 02:00.0 Network controller: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] (rev 34) 03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04) 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
你注意到lspci -H1
的输出如何包含lspci -H1
中没有的lspci
:
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
那是你的hdmi音频芯片。 出了什么问题是Linux没有正确检测到卡,因此没有加载驱动程序。 好消息是芯片已经上电,因此我们可以欺骗Linux尝试再次检测它。 您需要遵循的步骤取决于您使用的驱动程序:nvidia或nouveau。
警告: 如果出现问题,这将导致内核崩溃并可能导致重新启动问题,尽管可以通过多次重启来解决这些问题; 在重新打开笔记本电脑之前等待2分钟; 并暂时取下电源和电池。
风格
-
第一步是确保驱动程序不使用GPU。 运行
lsmod | grep nouveau
lsmod | grep nouveau
。 如果它输出以nouveau
开头并以大于0的数字结尾的行,则它正在使用中。 一种可能的方法是停止X(因此要么打印出来,要么使用不同的机器,你可以读取它):- 按ctrl + alt + f1
- 运行运行
runlevel
并记下数字(在我的电脑中它是5)。 - 以root身份登录:
sudo su
- 运行
init 3
,其中3是一个小于你刚写下的数字的数字,但是大到1。 - 运行
lsmod | grep nouveau
lsmod | grep nouveau
再次确保不再使用nouveau驱动程序(应该没有输出;没有以nouveau开头的行;或者以nouveau开头的行以0结尾)。
-
作为完整性检查,请确保GPU及其音频芯片已通电:
- 运行
lspci -H1 | grep 01:00
lspci -H1 | grep 01:00
。 它应该输出两行。 - 运行
lsmod | grep nouveau
lsmod | grep nouveau
再次确保新的驱动程序仍然没有被使用。
- 运行
-
现在GPU没有驱动程序,我们将“删除”它:
- 运行
echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/remove
(如果GPU仍然加载/使用了驱动程序,这会导致内核崩溃)。 - 通过运行
echo 1 > /sys/bus/pci/rescan
检测GPU及其音频芯片。 - 运行
lspci | grep 01:00.1
lspci | grep 01:00.1
。 如果那输出任何东西,恭喜! 你的linux现在知道你的GPU音频芯片了。
- 运行
-
使用nouveau GPU运行X.
- 运行
init 5
其中5是运行运行runlevel
下的数字。 您现在应该再次看到X(否则请尝试按ctrl + alt + f7)。 - 如果你运行
aplay -l
,现在它应该输出HDMI输出(在我的电脑上有4个输出,只有1个工作)。
- 运行
的NVidia
-
第一步是确保驱动程序不使用GPU。 当您使用nvidia驱动程序时,您还必须使用prime。
- 运行
prime-select query
。 - 如果它输出
nvidia
,你可以通过运行sudo prime-select intel
并重新启动来禁用驱动程序。 - 如果它输出
unknown
那么上一步也可能有效,但也会破坏你的大黄蜂设置。
- 运行
-
作为完整性检查,请确保GPU及其音频芯片已通电:
- 以root身份登录:
sudo su
- 运行
lspci -H1 | grep 01:00
lspci -H1 | grep 01:00
。 它应该输出两行。 - 如果第一行以
(rev ff)
结束,则需要通过运行echo ON > /proc/acpi/bbswitch
GPUecho ON > /proc/acpi/bbswitch
。 - 如果缺少第二行,则意味着GPU音频芯片不再供电。 您可以尝试暂停笔记本电脑; 再次恢复; 并再次检查GPU音频芯片是否通电(我希望这对你有用,否则你运气不好,就像我一样)。
- 运行
lsmod | grep nvidia
lsmod | grep nvidia
再次确保nvidia驱动程序仍未使用。
- 以root身份登录:
-
现在GPU没有驱动程序,我们将“删除”它:
- 运行
echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/remove
(如果GPU仍然加载/使用了驱动程序,这会导致内核崩溃)。 - 通过运行
echo 1 > /sys/bus/pci/rescan
检测GPU及其音频芯片。 - 运行
lspci | grep 01:00.1
lspci | grep 01:00.1
。 如果那输出任何东西,恭喜! 你的linux现在知道你的GPU音频芯片了。
- 运行
-
使用nvidia GPU运行X.
- 运行
prime-select
。 如果输出intel
,请运行prime-select nvidia
。 - 退出并重新登录。
- 如果你现在运行播放
aplay -l
它应该输出HDMI输出(在我的电脑上有4个输出,只有1个工作)。
- 运行
顺便说一句。 这个bug已在启动板上报告: https ://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1377653 ? comment = all
连接电视后,是否在声音设置中更改了音频源?
见下图供参考。 您需要将其更改为HDMI /数字立体声。
我遇到了与HDMI相同的问题,
安装了脉冲音频后,解决了问题。 现在我可以在电视上看电影和听到声音