admin管理员组

文章数量:1629903

目录

  • 25/04/2021 Update
  • 30/10/2020 Update
  • 问题背景
  • 问题描述
    • 查看声卡
    • 查看音频相关的pci设备
    • 直接硬件访问再次查看音频相关的pci设备
  • 解决方法
    • 方法一:重新扫描声卡
    • 方法二:编写重扫脚本
    • 方法三:安装控制模块
      • 安装模块
      • 加载模块
      • 打开HDMI声卡
      • 配置模块自动加载及声卡自动开启
        • 自动加载模块
        • 自动开启声卡
      • 查看声卡状态
      • 关闭HDMI声卡
  • 问题原因

25/04/2021 Update

Unfortunately, the problem still exits, and it influences the system upgraded from 18.04 where the system has already installed this patch. Before re-install nvhda, it demands to uninstall it with the command:

sudo make uninstall

30/10/2020 Update

It seems like the problem is fixed in Ubuntu 20.04. If there still exits the problem, this method works anyway.

问题背景

Ubuntu系统经常出现没有声音的情况,大部分问题都可以在目前的中文网络上找到相对应的文章并进行解决。其中HDMI无法输出声音的问题,通常都可以通过:在“Settings-Sounds”切换输出设备、安装pavucontrol切换配置文件、运行alsamixer取消mute,这几个方法进行解决。

但是,笔者17年购入了目前所使用的Thinkpad P51(i7+M1200,联想官方声称该机型通过了ubuntu认证)并安装了Ubuntu 16.04,就遇到了通过HDMI接口外接显示器(或电视)后,无法通过显示器(或电视)端的声音设备输出声音的问题,且在尝试上述的三种解决方法时都无法找到切换为HDMI的选项,HDMI的声音输出选项仿佛在电脑中消失了。系统更新为18.04后该问题依然存在。

该问题长期悬而未决,终于近日(3年后的昨天)让笔者在Nvidia的开发者社区和freedesktop上找到了解决方法,记录在此供将来重装系统参考。

问题描述

事实上,这个问题14年就在freedesktop上被报告

本文标签: 声音输出设备nvhdaUbuntuHDMI