我的 hp envy 15 没有声音,apparmour 和 pulseaudio 出现错误

我的 hp envy 15 没有声音,apparmour 和 pulseaudio 出现错误

我的 hp 声音有问题,扬声器不工作,但耳机可以工作,我看过有关此问题的所有其他帖子。所有解决方案都不起作用,但我找到了这条消息,我猜这就是我的情况中的问题。

13:37:11 ig0r-hp-envy-x360 kernel: [   42.658680] kauditd_printk_skb: 98 callbacks suppressed
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.658684] audit: type=1400 audit(1714736231.214:899): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.659032] audit: type=1400 audit(1714736231.214:900): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.659372] audit: type=1400 audit(1714736231.214:901): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.659708] audit: type=1400 audit(1714736231.214:902): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.660038] audit: type=1400 audit(1714736231.214:903): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.660367] audit: type=1400 audit(1714736231.214:904): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.660732] audit: type=1400 audit(1714736231.218:905): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.661061] audit: type=1400 audit(1714736231.218:906): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.661389] audit: type=1400 audit(1714736231.218:907): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 kernel: [   42.661721] audit: type=1400 audit(1714736231.218:908): apparmor="DENIED" operation="open" class="file" profile="snap.pulseaudio>
May  3 13:37:11 ig0r-hp-envy-x360 pulseaudio.pulseaudio[1017]: E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
May  3 13:37:11 ig0r-hp-envy-x360 pulseaudio.pulseaudio[1017]: E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="2" name="pci-0000_04>
May  3 13:37:12 ig0r-hp-envy-x360 systemd[1]: fprintd.service: Deactivated successfully.
May  3 13:37:17 ig0r-hp-envy-x360 systemd[1]: pulseaudio.service: Scheduled restart job, restart counter is at 4.
May  3 13:37:17 ig0r-hp-envy-x360 systemd[1]: Stopped PulseAudio Sound Server.
May  3 13:37:17 ig0r-hp-envy-x360 systemd[1]: Started PulseAudio Sound Server.
May  3 13:37:17 ig0r-hp-envy-x360 systemd[3416]: pulseaudio.service: Failed to determine user credentials: No such process
May  3 13:37:17 ig0r-hp-envy-x360 systemd[3416]: pulseaudio.service: Failed at step USER spawning /usr/bin/pulseaudio: No such process
May  3 13:37:17 ig0r-hp-envy-x360 systemd[1]: pulseaudio.service: Main process exited, code=exited, status=217/USER
May  3 13:37:17 ig0r-hp-envy-x360 systemd[1]: pulseaudio.service: Failed with result 'exit-code'.
May  3 13:37:18 ig0r-hp-envy-x360 kernel: [   49.597283] kauditd_printk_skb: 41 callbacks suppressed

我已经四处寻找了,但我真的不知道如何处理 apparmor,我刚刚听说过它。

请帮忙,如果您需要我提供任何其他信息,我可以提供给您。

编辑 禁用 apparmor 并尝试启动 pulseaudio 后,我收到错误:步骤 USER 生成 /usr/bin/pulseaudio 失败:没有这样的进程 然后我更改了 pulseaudio.service 文件,我将用户设置为我的用户的名称,并将组设置为 nog​​roup。现在我收到以下错误:

May  3 15:51:58 ig0r-hp-envy-x360 pulseaudio.pulseaudio[1002]: E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
May  3 15:51:58 ig0r-hp-envy-x360 pulseaudio.pulseaudio[1002]: E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="2" name="pci-0000_04_00.5-platform-acp_pdm_mach.0">
May  3 15:52:08 ig0r-hp-envy-x360 systemd[1]: pulseaudio.service: Scheduled restart job, restart counter is at 10.
May  3 15:52:08 ig0r-hp-envy-x360 systemd[1]: Stopped PulseAudio Sound Server.
May  3 15:52:08 ig0r-hp-envy-x360 systemd[1]: Started PulseAudio Sound Server.
May  3 15:52:09 ig0r-hp-envy-x360 rtkit-daemon[799]: Supervising 7 threads of 3 processes of 1 users.
May  3 15:52:09 ig0r-hp-envy-x360 rtkit-daemon[799]: message repeated 4 times: [ Supervising 7 threads of 3 processes of 1 users.]
May  3 15:52:09 ig0r-hp-envy-x360 pulseaudio[3513]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
May  3 15:52:09 ig0r-hp-envy-x360 pulseaudio[3513]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
May  3 15:52:09 ig0r-hp-envy-x360 systemd[1]: pulseaudio.service: Deactivated successfully.


相关内容