解决Ubuntu播放声音卡顿和爆音


播放声音卡顿

安装完Ubuntu18.04后,用网易云音乐听歌时,声音总是每隔几秒卡顿一下,特此记录一下解决方法。

用命令sudo lspci -v | grep -A7 Audio查看系统的使用的声卡设备是Intel Corporation 200 Series PCH HD Audio,使用的驱动时snd_hda_intel

~ sudo lspci -v | grep -A7 Audio
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
    Subsystem: Gigabyte Technology Co., Ltd 200 Series PCH HD Audio
    Flags: bus master, fast devsel, latency 32, IRQ 125
    Memory at f7140000 (64-bit, non-prefetchable) [size=16K]
    Memory at f7120000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: [50] Power Management version 3
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
--
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
    Subsystem: NVIDIA Corporation GP107GL High Definition Audio Controller
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at f7080000 (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
    Kernel driver in use: snd_hda_intel

播放声音爆音

有时电脑重启后,声音就一直每隔几秒爆音一下,重启也没用。可以执行一下命令,重启一下pulseaudio

pulseaudio --kill \
  && rm -r ~/.config/pulse/* \
  && pulseaudio --start

文章作者: Kiba Amor
版权声明: 本博客所有文章除特別声明外,均采用 CC BY-NC-ND 4.0 许可协议。转载请注明来源 Kiba Amor !
  目录