On 23.04.2023 16:56, mh@mike.franken.de wrote:
Hi,
thx for the detailed description, but probably I couldn't make clear, where my problem really is. Its not about pipewire - I only wanted to say, that for pipewire I found the only snippets of documentation for rtkit. Instead I wanted to know, how to configure rtkit for other applications like Citrix Workspace.
You cannot "configure rtkit for other applications". rtkit-daemon listens on requests over D-Bus and fulfills (or denies) these requests. If your application does not talk to rtkit-daemon, there is nothing you can do from the rtkit side. If your application does request to become real time but request is denied, we could look why.
Bye. Michael.
On Sonntag, 23. April 2023 15:30:06 CEST Masaru Nomiya wrote:
Hello,
In the Message;
Subject : rtkit-daemon Message-ID : <5671182.DvuYhMxLoT@transformer> Date & Time: Sun, 23 Apr 2023 13:02:13 +0200
mh@mike.franken.de has written:
Hi *,
is there any documentation on how to configure rtkit-daemon for openSUSE?
I don't know it.
[...]
Especially I have the following questions:
Do I have to put a user in the rtkit group, if he wants to run a program like Citrix, which requests realtime capabilites?
Yes, add your own user to rtkit group.
This configuration enables pipewire daemon priorities to change in real time.
Or do I have to create a config file in /usr/etc/security/limits.d/? Is so, what should it contain?
This is not necessary.
Do I have to configure something else?
Right.
0. Confirm installatin by
$ pactl info
Ex. this is mine;
Server String: /run/user/1000/pulse/native Library Protocol Version: 35 Server Protocol Version: 35 Is Local: yes Client Index: 77 Tile Size: 65472 User Name: masaru Host Name: localhost Server Name: PulseAudio (on PipeWire 0.3.70) Server Version: 15.0.0 [...] Cookie: fb04:87e4
Before you proceed, you should do the following as preparation;
1. if possible, uninstall the wireplumber and install pipewire-media-session
The reason is that pipewire-media-session is obviously better sounding than wireplumber.
3. I assume this is done when pipewire is installed, but I'll mention it here.
$ sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
4. $ mkdir ~/.config/pipewire
and.
$ mkdir ~/.config/pipewire/media-session.d
5.
5-1. Change alsa API to pipewire-alsa
$ touch ~/.config/pipewire/media-session.d/with-alsa
5-2. Enable bluez5 module
$ touch ~/.config/pipewire/media-session.d/with-pulseaudio
6. for the pipewire's settings
6-1. $ cp /usr/share/pipewire/pipewire-pulse.conf ~/.config/pipewire
$ cp /usr/share/pipewire/pipewire.conf ~/.config/pipewire
6-2. edit conf files
6-2-1. for pipewire-pulse.conf
[...] stream.properties = { #node.latency = 1024/48000 #node.autoconnect = true #resample.quality = 4 #channelmix.normalize = false [...]
to
[...] stream.properties = { #node.latency = 1024/48000 #node.autoconnect = true resample.quality = 15 #channelmix.normalize = false [...]
where 15 is maximum number, which means best sound
6-2-2. for pipewire.conf
## Properties for the DSP configuration. #default.clock.rate = 48000 #default.clock.allowed-rates = [ 48000 ] #default.clock.quantum = 1024 #default.clock.min-quantum = 32 #default.clock.max-quantum = 2048 #default.clock.quantum-limit = 8192 #default.video.width = 640 #default.video.height = 480 #default.video.rate.num = 25 #default.video.rate.denom = 1 # #settings.check-quantum = false #settings.check-rate = false # # These overrides are only applied when running in a vm. vm.overrides = { default.clock.min-quantum = 1024 }
to (in my case with USB-DAC)
## Properties for the DSP configuration. default.clock.rate = 384000 default.clock.allowed-rates = [ 44100 48000 96000 192000 352800 384000 ] default.clock.quantum = 1024 default.clock.min-quantum = 32 default.clock.max-quantum = 2048 default.clock.quantum-limit = 8192 default.video.width = 800 default.video.height = 600 #default.clock.rate = 48000 #default.clock.allowed-rates = [ 48000 ] #default.clock.quantum = 1024 #default.clock.min-quantum = 32 #default.clock.max-quantum = 2048 #default.clock.quantum-limit = 8192 #default.video.width = 640 #default.video.height = 480 #default.video.rate.num = 25 #default.video.rate.denom = 1 # #settings.check-quantum = false #settings.check-rate = false # # These overrides are only applied when running in a vm. vm.overrides = { default.clock.min-quantum = 1024 }
Generally, when pipewire is installed, the sampling rate is 48KHz.
To know the operating status;
$ cat /proc/asound/HDAMP1/pcm0p/sub0/hw_params
In my case:
access: MMAP_INTERLEAVED format: S32_LE subformat: STD channels: 2 rate: 384000 (384000/1) period_size: 256 buffer_size: 32768
I am enjoying musics with mpd+cantata in this environment.
If you use mpd, please let us know again.
Regards & Good Night.
--- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "Tim Cook, the C.E.O. of Apple, said earlier this year that he would not let his nephew join social networks. Bill Gates banned cellphone until his children were teenagers, and Melinda Gates wrote that she wished they had waited even longer. Steve Jobs would not let his young children near iPads." -- The New York Times --