Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck at "Connect to PipeWire" #13

Open
magdesign opened this issue May 7, 2024 · 5 comments
Open

Stuck at "Connect to PipeWire" #13

magdesign opened this issue May 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@magdesign
Copy link

System information

  • coppwr version (See in Help → About):1.6.0
  • coppwr installation method: Flathub
  • PipeWire version: 1.0.5
  • OS: postmarketOS/alpine
  • Desktop environment/Window manager: sway

Describe the bug
After launching i get to the "Connect to Pipewire" screen and dont get further from there:

Failed to connect to remote: Connecting
to Pipewire failed: Creation failed

Not sure if I am missing something or if it does not support the weird pipewire setup on mobile phones.... 🤷
(qpwgraph running from terminal starts and shows me nodes...)

20240507_190354

@magdesign magdesign added the bug Something isn't working label May 7, 2024
@dimtpap
Copy link
Owner

dimtpap commented May 8, 2024

Does running with --device=shm work?

@magdesign
Copy link
Author

--device=shm this did not help and resulted in the same error.

i took a look into the flatpak with
--command=sh
followed with env.

there i see:
ALSA_CONFIG_PATH=/usr/share/alsa/alsa-flatpak.conf

which does not exist on my system... but i have no idea 🤷

@dimtpap
Copy link
Owner

dimtpap commented May 8, 2024

You ran flatpak run --device=shm io.github.dimtpap.coppwr right? (--device=shm goes before the ID)

The problem is that the PipeWire socket is in the /dev directory, which Flatpak blocks from applications.

You can either give more permissions to the app for it to be able to connect to the socket or change PipeWire's socket location by setting a per-user environment variable: https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Config-PipeWire#socket-directories

Most systems have XDG_RUNTIME_DIR set to /run/user/(user id)

@dimtpap
Copy link
Owner

dimtpap commented May 8, 2024

Relevant Alpine Linux documentation: https://wiki.alpinelinux.org/wiki/Wayland#XDG_RUNTIME_DIR

@magdesign
Copy link
Author

You ran flatpak run --device=shm io.github.dimtpap.coppwr right? (--device=shm goes before the ID)

yes i did!

thanks for the Alpine link. Setting the XDG_RUNTIME_DIR in ~/.profile did not help... maybe i need to set it somwhere else (in the DE)... however, i'll post here when i got the right commands/settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants