Skip to main content
Topic: pipewire cannot run with real-time privilege (Read 2270 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

pipewire cannot run with real-time privilege

I copied pipewire config from /usr/share/pipewire to /etc/pipewire
And I am starting pipewire, pipewire-pulse and wireplumber in my .session before I start the window manager.
Here are my xsession errors:
Code: [Select]
[salil@asus ~]$ cat .xsession-errors 
[W][00012.233445] mod.rt       | [     module-rt.c:  259 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied
[W][00012.233569] mod.rt       | [     module-rt.c:  578 set_nice()] could not set nice-level to -11: Permission denied
[W][00012.235992] mod.rt       | [     module-rt.c:  259 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied
[W][00012.236094] mod.rt       | [     module-rt.c:  578 set_nice()] could not set nice-level to -11: Permission denied
M 13:05:14.511401             mod.rt ../pipewire/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.AccessDenied
M 13:05:14.511537             mod.rt ../pipewire/src/modules/module-rt.c:578:set_nice: could not set nice-level to -11: Permission denied
M 13:05:14.525342             mod.rt ../pipewire/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.AccessDenied
M 13:05:14.525375             mod.rt ../pipewire/src/modules/module-rt.c:800:impl_acquire_rt: could not make thread 1197 realtime using RTKit: Permission denied
[W][00012.263630] mod.rt       | [     module-rt.c:  259 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied
[W][00012.263662] mod.rt       | [     module-rt.c:  800 impl_acquire_rt()] could not make thread 1202 realtime using RTKit: Permission denied
[W][00012.266854] mod.rt       | [     module-rt.c:  259 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied
[W][00012.266894] mod.rt       | [     module-rt.c:  800 impl_acquire_rt()] could not make thread 1203 realtime using RTKit: Permission denied
i3status: trying to auto-detect output_format setting
i3status: auto-detected "i3bar"
536870912
M 13:05:14.584196          wp-device ../wireplumber/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 13:05:14.584234   script/libcamera libcamera.lua:168:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
M 13:05:14.585075        script/alsa alsa.lua:389:chunk: reserve-device plugin is not connected to D-Bus, disabling device reservation
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.jsm
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs

My user is a member of `rtkit` group (and `dbus` group):
Code: [Select]
[salil@asus ~]$ groups
dbus network scanner power rtkit adbusers docker video storage optical lp input audio wheel salil

My dbus service is working correctly also:
Code: [Select]
[salil@asus ~]$ sudo sv status dbus
run: dbus: (pid 1048) 409s; run: log: (pid 1047) 409s
So, why should pipewire fail to run at the real-time privilege?

Re: pipewire cannot run with real-time privilege

Reply #1
see i'm not ashamed to look stoopid and ask a silly question.  but are you running a linux-rt kernel?  Probably not relevant to what your asking but i think i'll risk it anyway.  After all, you can only laugh at me and shake your head and i can't see none of that.
Cat Herders of Linux


Re: pipewire cannot run with real-time privilege

Reply #3
I have a similar issue. But mine is a lot more cryptic and random. It all just happened after an update.

Re: pipewire cannot run with real-time privilege

Reply #4
Code: [Select]
C 05:41:44.864038               GLib (null):(null):(null): Failed to set scheduler settings: Operation not permitted
536870912
M 05:41:44.866309          wp-device ../wireplumber/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 05:41:44.866322   script/libcamera libcamera.lua:168:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
M 05:41:44.868734        script/alsa alsa.lua:389:chunk: reserve-device plugin is not connected to D-Bus, disabling device reservation
M 05:41:45.704511    m-lua-scripting ../wireplumber/modules/module-lua-scripting/api/api.c:376:object_activate_done: <WpSiAudioAdapter:0x4094f8eb060> Object activation aborted: proxy destroyed
M 05:41:45.704526 script/create-item create-item.lua:80:chunk: <WpSiAudioAdapter:0x4094f8eb060> failed to activate item: Object activation aborted: proxy destroyed

this errors are thrown if i try to start pipewire, pipewire-pulse and wireplumber

Re: pipewire cannot run with real-time privilege

Reply #5
Code: [Select]
C 05:41:44.864038               GLib (null):(null):(null): Failed to set scheduler settings: Operation not permitted
536870912
M 05:41:44.866309          wp-device ../wireplumber/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 05:41:44.866322   script/libcamera libcamera.lua:168:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
M 05:41:44.868734        script/alsa alsa.lua:389:chunk: reserve-device plugin is not connected to D-Bus, disabling device reservation
M 05:41:45.704511    m-lua-scripting ../wireplumber/modules/module-lua-scripting/api/api.c:376:object_activate_done: <WpSiAudioAdapter:0x4094f8eb060> Object activation aborted: proxy destroyed
M 05:41:45.704526 script/create-item create-item.lua:80:chunk: <WpSiAudioAdapter:0x4094f8eb060> failed to activate item: Object activation aborted: proxy destroyed

this errors are thrown if i try to start pipewire, pipewire-pulse and wireplumber

theres a libcamera in aur you could build for pipewire to try.  couldn't hurt.  can always uninstall it if it doesn't help

also start your own thread is best.
Cat Herders of Linux

Re: pipewire cannot run with real-time privilege

Reply #6
Nope sadly it did not work.  Some programs can play sound and others can not. It is really confusing

Edit:
The whole update was a complete s*** show. nvidia wasnt working and now this

 

Re: pipewire cannot run with real-time privilege

Reply #7
Nope sadly it did not work.  Some programs can play sound and others can not. It is really confusing

Edit:
The whole update was a complete s*** show. nvidia wasnt working and now this
then uninstall it
Cat Herders of Linux