[Bug Report] VM虚拟机安装deepin25 出现声音卡顿现象
Tofloor
poster avatar
帕斯卡拉
deepin
2025-05-31 00:39
Author

VM虚拟机安装deepin25 出现声音卡顿现象

如题,用VM虚拟机安装deepin后 声音卡顿 一顿一顿的,。。。该怎么解决??声音就像卡了一样。。。。就像慢镜头那样的

Reply Favorite View the author
All Replies
2 / 2
To page
凌琳
deepin
2025-11-17 20:38
#21

根据pipewire官方文档的Troubleshooting部分可得原因与解决方法

“Normally this should not happen but is usually caused by jittery drivers. In a VM this is most common because the device is emulated.”

解决办法:

mkdir -p ~/.config/wireplumber/wireplumber.conf.d/

cd ~/.config/wireplumber/wireplumber.conf.d

使用你的文笔编辑器如vim nano等创建这个文件~/.config/wireplumber/wireplumber.conf.d/50-alsa-config.conf 并写入:


monitor.alsa.rules = [
  {
    matches = [
      # This matches the value of the 'node.name' property of the node.
      {
        node.name = "~alsa_output.*"
      }
    ]
    actions = {
      # Apply all the desired node specific settings here.
      update-props = {
        api.alsa.period-size   = 1024
        api.alsa.headroom      = 8192
      }
    }
  }
]

然后再

systemctl --user restart wireplumber pipewire pipewire-pulse

重启有关所有服务即可,注意这条命令不能加sudo

原文链接:Troubleshooting · Wiki · PipeWire / pipewire · GitLab

Reply View the author
An
deepin
2025-12-10 21:19
#22
小图巴巴

我是升级了beta版后发现声卡卡顿的情况,然后我删除了主目录里的.cache内的文件,重启动,好了 ,如果不行,你再删除.config里的pulse试试。一定要重启动

办法能解决问题,但刚打开音频的两秒还是有卡顿。

Reply View the author
pzm9012
Moderator
2025-12-10 21:37
#23
凌琳

根据pipewire官方文档的Troubleshooting部分可得原因与解决方法

“Normally this should not happen but is usually caused by jittery drivers. In a VM this is most common because the device is emulated.”

解决办法:

mkdir -p ~/.config/wireplumber/wireplumber.conf.d/

cd ~/.config/wireplumber/wireplumber.conf.d

使用你的文笔编辑器如vim nano等创建这个文件~/.config/wireplumber/wireplumber.conf.d/50-alsa-config.conf 并写入:


monitor.alsa.rules = [
  {
    matches = [
      # This matches the value of the 'node.name' property of the node.
      {
        node.name = "~alsa_output.*"
      }
    ]
    actions = {
      # Apply all the desired node specific settings here.
      update-props = {
        api.alsa.period-size   = 1024
        api.alsa.headroom      = 8192
      }
    }
  }
]

然后再

systemctl --user restart wireplumber pipewire pipewire-pulse

重启有关所有服务即可,注意这条命令不能加sudo

原文链接:Troubleshooting · Wiki · PipeWire / pipewire · GitLab

正解


我去,福瑞控(逃

Reply View the author
不能改名
deepin
2025-12-13 21:44
#24
It has been deleted!
2 / 2
To page