Comments (1)
I dumped the output of load_pw_modules.sh
to a log file, there's one error that stands out:
+ pw-cli -m -d load-module libpipewire-module-xrdp sink.node.latency=2048 sink.stream.props={node.name=xrdp-sink} source.stream.props={node.name=xrdp-source}
+ pw-metadata -n settings 0 clock.force-quantum 2048
+ pw-metadata -n settings 0 default.clock.force-quantum 4096
+ pw-metadata -n settings 0 default.clock.quantum 4096
[E][02827.931756] default | [ pw-cli.c: 445 on_core_error()] remote 0x56110aa7c8e8: error id:68 seq:137 res:-2 (No such file or directory): no global 66
[E][02827.931786] default | [ pw-cli.c: 445 on_core_error()] remote 0x56110aa7c8e8: error id:0 seq:139 res:-2 (No such file or directory): unknown resource 68 op:7
+ pw-metadata -n settings 0 default.clock.min-quantum 4096
+ pw-metadata -n settings 0 default.clock.rate 44100
Seemingly pw-metadata -n settings 0 default.clock.quantum 4096
returns an error.
However, after that I tried to run the commands above, and this time no error:
┌──(kali㉿kali)-[~]
└─$ pw-metadata -n settings 0 clock.force-quantum 2048
Found "settings" metadata 31
set property: id:0 key:clock.force-quantum value:2048 type:(null)
┌──(kali㉿kali)-[~]
└─$ pw-metadata -n settings 0 default.clock.force-quantum 4096
Found "settings" metadata 31
set property: id:0 key:default.clock.force-quantum value:4096 type:(null)
┌──(kali㉿kali)-[~]
└─$ pw-metadata -n settings 0 default.clock.quantum 4096
Found "settings" metadata 31
set property: id:0 key:default.clock.quantum value:4096 type:(null)
┌──(kali㉿kali)-[~]
└─$ pw-metadata -n settings 0 default.clock.min-quantum 4096
Found "settings" metadata 31
set property: id:0 key:default.clock.min-quantum value:4096 type:(null)
Maybe there's a race, since as we can see here:
pipewire-module-xrdp/instfiles/load_pw_modules.sh
Lines 46 to 53 in e9c6c05
pw-cli -m -d load-module
is called and sent to background, and then we have a sleep 1
... So maybe the pw-metadata
commands are called too early after that....
I tried a few times to log in and out, and it's not 100% reproducible. Sometimes there's no error, sometimes there are more errors, and the output suggests that, for some reason, we don't get stderr in time, so we don't know which command caused it. Example:
+ pw-cli -m -d load-module libpipewire-module-xrdp sink.node.latency=2048 sink.stream.props={node.name=xrdp-sink} source.stream.props={node.name=xrdp-source}
+ pw-metadata -n settings 0 clock.force-quantum 2048
+ pw-metadata -n settings 0 default.clock.force-quantum 4096
[E][02961.843375] default | [ pw-cli.c: 445 on_core_error()] remote 0x55d5f9d278e8: error id:69 seq:137 res:-2 (No such file or directory): no global 67
[E][02961.843411] default | [ pw-cli.c: 445 on_core_error()] remote 0x55d5f9d278e8: error id:0 seq:139 res:-2 (No such file or directory): unknown resource 69 op:7
+ pw-metadata -n settings 0 default.clock.quantum 4096
+ pw-metadata -n settings 0 default.clock.min-quantum 4096
+ pw-metadata -n settings 0 default.clock.rate 44100
+ command -v pactl
+ pactl set-default-sink xrdp-sink
+ pactl set-default-source xrdp-source
+ exit 0
[E][02961.839801] default | [ pw-cli.c: 445 on_core_error()] remote 0x56110aa7c8e8: error id:69 seq:192 res:-2 (No such file or directory): no global 67
[E][02961.840085] default | [ pw-cli.c: 445 on_core_error()] remote 0x56110aa7c8e8: error id:0 seq:194 res:-2 (No such file or directory): unknown resource 69 op:7
It's all a bit confusing.
from pipewire-module-xrdp.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pipewire-module-xrdp.