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:
[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):
[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:
[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?