You are not logged in.

#1 2022-06-07 20:42:11

yuanhao
Member
From: Edinburgh, UK
Registered: 2021-11-12
Posts: 68
Website

[SOLVED]pipewire service error

My audio (speaker output) on my laptop sometimes not working, it has sound but a broken sound (small volume and broken sound), but there is no problem with headphone jack. And reboot the laptop will solve the problem for a while but it will happen again later in the day.
I tried to check the status for the pipewire service and its like this:

[yuanhao@yh-G14-GA402RK ~]$ systemctl --user status pipewire-pulse
● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; disabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-06-07 21:35:17 BST; 56s ago
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 1129 (pipewire-pulse)
      Tasks: 2 (limit: 37588)
     Memory: 9.7M
        CPU: 57ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─1129 /usr/bin/pipewire-pulse

Jun 07 21:35:17 yh-G14-GA402RK systemd[837]: Started PipeWire PulseAudio.
Jun 07 21:35:17 yh-G14-GA402RK pipewire-pulse[1129]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Jun 07 21:35:17 yh-G14-GA402RK pipewire-pulse[1129]: mod.rt: could not set nice-level to -11: No such file or directory
Jun 07 21:35:17 yh-G14-GA402RK pipewire-pulse[1129]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Jun 07 21:35:17 yh-G14-GA402RK pipewire-pulse[1129]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Jun 07 21:35:17 yh-G14-GA402RK pipewire-pulse[1129]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Jun 07 21:35:17 yh-G14-GA402RK pipewire-pulse[1129]: mod.rt: could not make thread 1135 realtime using RTKit: No such file or directory
Jun 07 21:35:17 yh-G14-GA402RK pipewire-pulse[1134]: 536870912
[yuanhao@yh-G14-GA402RK ~]$ systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-06-07 21:35:17 BST; 1min 0s ago
TriggeredBy: ● pipewire.socket
   Main PID: 1127 (pipewire)
      Tasks: 2 (limit: 37588)
     Memory: 7.2M
        CPU: 109ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1127 /usr/bin/pipewire

Jun 07 21:35:17 yh-G14-GA402RK systemd[837]: Started PipeWire Multimedia Service.
Jun 07 21:35:17 yh-G14-GA402RK pipewire[1127]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Jun 07 21:35:17 yh-G14-GA402RK pipewire[1127]: mod.rt: could not set nice-level to -11: No such file or directory
Jun 07 21:35:17 yh-G14-GA402RK pipewire[1127]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Jun 07 21:35:17 yh-G14-GA402RK pipewire[1127]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Jun 07 21:35:17 yh-G14-GA402RK pipewire[1127]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
Jun 07 21:35:17 yh-G14-GA402RK pipewire[1127]: mod.rt: could not make thread 1132 realtime using RTKit: No such file or directory
[yuanhao@yh-G14-GA402RK ~]$ pipewire
[W][01400.675666] mod.rt       | [     module-rt.c:  259 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][01400.675738] mod.rt       | [     module-rt.c:  578 set_nice()] could not set nice-level to -11: No such file or directory
[W][01400.676001] mod.rt       | [     module-rt.c:  259 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[E][01400.676113] mod.protocol-native | [module-protocol-:  708 lock_socket()] server 0x55a19d17ff30: unable to lock lockfile '/run/user/1000/pipewire-0.lock': Resource temporarily unavailable (maybe another daemon is running)
[E][01400.676149] pw.conf      | [          conf.c:  560 load_module()] 0x55a19d1410a0: could not load mandatory module "libpipewire-module-protocol-native": Resource temporarily unavailable
[E][01400.676195] default      | [      pipewire.c:  125 main()] failed to create context: Resource temporarily unavailable

what is happening and how to fix this?

Edit:
It will happen after wake up from sleep (I close the lid and then open to login)

UPDATE:
the rtkit warnings disappear after install the rtkit package, but the pipewire error still exits:

[yuanhao@yh-G14-GA402RK ~]$ pipewire
[W][01400.675666] mod.rt       | [     module-rt.c:  259 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][01400.675738] mod.rt       | [     module-rt.c:  578 set_nice()] could not set nice-level to -11: No such file or directory
[W][01400.676001] mod.rt       | [     module-rt.c:  259 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[E][01400.676113] mod.protocol-native | [module-protocol-:  708 lock_socket()] server 0x55a19d17ff30: unable to lock lockfile '/run/user/1000/pipewire-0.lock': Resource temporarily unavailable (maybe another daemon is running)
[E][01400.676149] pw.conf      | [          conf.c:  560 load_module()] 0x55a19d1410a0: could not load mandatory module "libpipewire-module-protocol-native": Resource temporarily unavailable
[E][01400.676195] default      | [      pipewire.c:  125 main()] failed to create context: Resource temporarily unavailable

SOLVED:
Solved by install and run the aur package update-grub, and follow this https://gitlab.com/marcaux/g14-2021-s3-dsdt

Last edited by yuanhao (2022-06-08 19:48:27)

Offline

#2 2022-06-08 08:26:04

yuanhao
Member
From: Edinburgh, UK
Registered: 2021-11-12
Posts: 68
Website

Re: [SOLVED]pipewire service error

I might just post this on EndeavourOS Forums.... having Arch and EndeavourOS at the same time, sometimes just forget with which I am using..
Sorry for any inconvenience caused.

Last edited by yuanhao (2022-06-08 08:26:31)

Offline

#3 2022-06-08 10:54:35

rafaellancas
Member
Registered: 2022-05-31
Posts: 78

Re: [SOLVED]pipewire service error

Have you tried to reinstall pipewire?

Offline

#4 2022-06-08 12:56:06

yuanhao
Member
From: Edinburgh, UK
Registered: 2021-11-12
Posts: 68
Website

Re: [SOLVED]pipewire service error

rafaellancas wrote:

Have you tried to reinstall pipewire?

Yes, but not working still

Offline

#5 2022-07-11 07:05:44

bmarques
Member
Registered: 2014-12-09
Posts: 30

Re: [SOLVED]pipewire service error

Hi @Yuanhao

Did you fix your problem?
I ran into a similar issue, however not exactly the same: my sound stopped working entirey, and only a "dummy output" sound card was detected on my laptop after updating pacman.
I fixed my issue by manually enabling the services for the user, and the reboot my system:
systemctl --user enable pipewire.service
systemctl --user enable pipewire-pulse.service

I don't yet fully understand systemd's system vs user service manager, and I dont understand why those services aren't enabled by default when installing pipewire packages.. but this fixed it for me.
Hope it helps

Offline

#6 2022-07-12 21:38:44

yuanhao
Member
From: Edinburgh, UK
Registered: 2021-11-12
Posts: 68
Website

Re: [SOLVED]pipewire service error

bmarques wrote:

Hi @Yuanhao

Did you fix your problem?
I ran into a similar issue, however not exactly the same: my sound stopped working entirey, and only a "dummy output" sound card was detected on my laptop after updating pacman.
I fixed my issue by manually enabling the services for the user, and the reboot my system:
systemctl --user enable pipewire.service
systemctl --user enable pipewire-pulse.service

I don't yet fully understand systemd's system vs user service manager, and I dont understand why those services aren't enabled by default when installing pipewire packages.. but this fixed it for me.
Hope it helps

Hi, I have fixed the problem, it turns out that it is because the laptop (I am using rog g14 2022 GA402RK4) has problem with s2idle, so each time I woke the laptop from suspend it will reproduce the problem. And it is solved by https://gitlab.com/marcaux/g14-2021-s3-dsdt

And I just had a check:

[yuanhao@yhArch ~]$ systemctl status --user pipewire.service
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-07-12 21:45:03 BST; 47min ago
TriggeredBy: ● pipewire.socket
   Main PID: 915 (pipewire)
      Tasks: 2 (limit: 38376)
     Memory: 6.1M
        CPU: 22ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─915 /usr/bin/pipewire

Jul 12 21:45:03 yhArch systemd[667]: Started PipeWire Multimedia Service.

my pipewire service seems also disabled, BUT, it loads automatically.... not sure why

Offline

Board footer

Powered by FluxBB