几周前,我在使用 skype 和 pulseaudio/alsa 时遇到了问题,所以我去了此链接并找到了一种可以随意终止和启动 pulseaudio 的方法。因此,在 etc/pulse/client.conf 中,我添加了以下内容:
autospawn = no
daemon-binary = /bin/true
然后我删除了
/etc/rc2.d/S50pulseaudio
它起初有效,但现在已经过去了几周,我通过 Hydrogen 播放音频,大概是使用 PulseAudio(它似乎从来不需要 JACK),现在其他声音无法播放,例如在 Chrome 上。
嗯,基本上,这些都是我尝试过的方法:
┌─( apodio ) - ( 3.2.0-43-generic ) - ( ~ )
└─> pulseaudio --start
N: [pulseaudio] main.c: User-configured server at {b66743961e53727ca323de3b0000001b}unix:/home/apodio/.pulse/b66743961e53727ca323de3b0000001b-runtime/native, which appears to be local. Probing deeper.
┌─( apodio ) - ( 3.2.0-43-generic ) - ( ~ )
└─> sudo alsa force-reload
[sudo] password for apodio:
/sbin/alsa: Warning: Processes using sound devices: 12442(jackd).
Unloading ALSA sound driver modules: snd-hda-codec-conexant snd-hda-codec-hdmi snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc (failed: modules still loaded: snd-hda-codec-conexant snd-hda-codec-hdmi snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-seq snd-timer snd-seq-device snd-page-alloc).
Loading ALSA sound driver modules: snd-hda-codec-conexant snd-hda-codec-hdmi snd-hda-intel snd-hda-codec snd-hwdep snd-pcm snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc.
┌─( apodio ) - ( 3.2.0-43-generic ) - ( ~ )
└─> pulseaudio --kill
┌─( apodio ) - ( 3.2.0-43-generic ) - ( ~ )
└─> pulseaudio --start
┌─( apodio ) - ( 3.2.0-43-generic ) - ( ~ )
└─> sudo pulseaudio --start
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
E: [autospawn] core-util.c: Home directory /home/apodio not ours.
W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
E: [pulseaudio] main.c: Failed to acquire autospawn lock
┌─( apodio ) - ( 3.2.0-43-generic ) - ( ~ )
└─> sudo pulseaudio --kill
E: [pulseaudio] core-util.c: Home directory /home/apodio not ours.
E: [pulseaudio] main.c: Failed to kill daemon: Permission denied
┌─( apodio ) - ( 3.2.0-43-generic ) - ( ~ )
└─> sudo pulseaudio --start
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
E: [autospawn] core-util.c: Home directory /home/apodio not ours.
W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
E: [pulseaudio] main.c: Failed to acquire autospawn lock
我认为我是 root,因为我是唯一的用户等等。我还匆忙地将自己添加到了音频组。
PS,我知道它说“使用声音设备的进程:12442(jackd)”,但我刚刚启动 qjackctl,像往常一样,它说无法连接,所以我觉得它实际上并没有运行。
但是...自动生成锁定?权限被拒绝?主目录不是我们的?我是这台电脑上唯一的用户!发生了什么事?
基本上,自从我使用了 Hydrogen 以来,有些东西现在正在使用我的声卡,但我不知道该怎么做或如何阻止它。