在 ubuntu 18.04 中获取虚拟输出,没有声音

在 ubuntu 18.04 中获取虚拟输出,没有声音

声音设置截图

硬件:

  • 主板:m5a97 r2.0
  • 显卡:GForce GT 630(nvidia-driver-390)
  • 耳机:Kensington 型号:33137

软件:Ubuntu 18.04 全新安装/全面更新

ubuntu-drivers devices

== /sys/devices/pci0000:00/0000:00:15.0/0000:06:00.0 ==
modalias : pci:v000010DEd00000F00sv00001462sd00008A90bc03sc00i00
vendor   : NVIDIA Corporation
model    : GF108 [GeForce GT 630]
driver   : nvidia-driver-390 - third-party free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

== /sys/devices/pci0000:00/0000:00:15.0/0000:06:00.1 ==
modalias : pci:v000010DEd00000BEAsv00001462sd00008A90bc04sc03i00
vendor   : NVIDIA Corporation
model    : GF108 High Definition Audio Controller
driver   : oem-audio-hda-daily-dkms - third-party free

lspci -nnk | grep -A2 Audio

06:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] GF108 High Definition Audio Controller [1462:8a90]
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

sudo lshw -c sound

*-multimedia              
       description: Audio device
       product: GF108 High Definition Audio Controller
       vendor: NVIDIA Corporation
       physical id: 0.1
       bus info: pci@0000:06:00.1
       version: a1
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:21 memory:fe080000-fe083fff

sudo lsof /dev/snd/*

lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
COMMAND     PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi  1372    gdm   18u   CHR 116,10      0t0  471 /dev/snd/controlC0
pulseaudi 10150 walter   17u   CHR 116,10      0t0  471 /dev/snd/controlC0

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

dpkg -l | grep audio

ii  gstreamer1.0-pulseaudio:amd64              1.14.1-1ubuntu1~ubuntu18.04.1                amd64        GStreamer plugin for PulseAudio
ii  libaudio2:amd64                            1.9.4-6                                      amd64        Network Audio System - shared libraries
ii  libavc1394-0:amd64                         0.5.4-4build1                                amd64        control IEEE 1394 audio/video devices
ii  libavcodec-extra57:amd64                   7:3.4.4-0ubuntu0.18.04.1                     amd64        FFmpeg library with additional de/encoders for audio/video codecs
ii  libcdio-cdda2:amd64                        10.2+0.94+2-2build1                          amd64        library to read and control digital audio CDs
ii  libcdio-paranoia2:amd64                    10.2+0.94+2-2build1                          amd64        library to read digital audio CDs with error correction
ii  libcdparanoia0:amd64                       3.10.2+debian-13                             amd64        audio extraction tool for sampling CDs (library)
ii  libchromaprint1:amd64                      1.4.3-1                                      amd64        audio fingerprint library
ii  libmpg123-0:amd64                          1.25.10-1                                    amd64        MPEG layer 1/2/3 audio decoder (shared library)
ii  libpcaudio0                                1.0-1                                        amd64        C API to different audio devices - shared library
ii  librubberband2:amd64                       1.8.1-7ubuntu2                               amd64        audio time-stretching and pitch-shifting library
ii  libsndfile1:amd64                          1.0.28-4                                     amd64        Library for reading/writing audio files
ii  libswresample2:amd64                       7:3.4.4-0ubuntu0.18.04.1                     amd64        FFmpeg library for audio resampling, rematrixing etc. - runtime files
ii  libtag1v5:amd64                            1.11.1+dfsg.1-0.2build2                      amd64        audio meta-data library
ii  libtag1v5-vanilla:amd64                    1.11.1+dfsg.1-0.2build2                      amd64        audio meta-data library - vanilla flavour
ii  libvisual-0.4-0:amd64                      0.4.0-11                                     amd64        audio visualization framework
ii  libwavpack1:amd64                          5.1.0-2ubuntu1.2                             amd64        audio codec (lossy and lossless) - library
ii  libwebrtc-audio-processing1:amd64          0.3-1                                        amd64        AudioProcessing module from the WebRTC project.
ii  pulseaudio                                 1:11.1-1ubuntu7.1                            amd64        PulseAudio sound server
ii  pulseaudio-equalizer                       1:11.1-1ubuntu7.1                            amd64        Equalizer sink module for PulseAudio sound server
ii  pulseaudio-module-bluetooth                1:11.1-1ubuntu7.1                            amd64        Bluetooth module for PulseAudio sound server
ii  pulseaudio-utils                           1:11.1-1ubuntu7.1                            amd64        Command line tools for the PulseAudio sound server
ii  speech-dispatcher-audio-plugins:amd64      0.8.8-1ubuntu1                               amd64        Speech Dispatcher: Audio output plugins
ii  ubuntu-sounds                              0.13                                         all          Ubuntu's GNOME audio theme

dkms status

nvidia, 390.77, 4.18.0-15-generic, x86_64: installed

sudo apt-get remove oem-audio-hda-daily-dkms

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'oem-audio-hda-daily-dkms' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

sudo lshw -c video

  *-display                 
       description: VGA compatible controller
       product: GF108 [GeForce GT 630]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:06:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:44 memory:fd000000-fdffffff memory:f0000000-f7ffffff memory:f8000000-f9ffffff ioport:d000(size=128) memory:c0000-dffff

答案1

我不确定是什么原因造成的,但在使用 Linux Mint 19.1 几个月时我也遇到了同样的问题。

sudo alsa force-reload

这可以帮我解决问题,但不是永久的。我已将此命令保存在主文件夹中的文档中,以备不时之需。

如果有人能告诉我为什么会发生这种情况/修复情况,我将不胜感激。这样的问题正是阻止 Windows 用户转向 Linux 的原因。

相关内容