this post was submitted on 26 Sep 2023
9 points (80.0% liked)

Arch Linux

7744 readers
4 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

So I know my setup is really niche, but here goes nothing

  • I am using Arch Pi on Pi 4
  • Installed cage as a lightweight Wayland compositor
  • Installed mpv + wireplumber + pipewire

I am not quite sure how to use cage to launch a simple "Wayland session (if it even makes sense)", so that I can send MPV to that display. So I tried cage -s alacritty :1, and it does launch alacritty with it detecting that it is on wayland.

But when I do DISPLAY=:1 mpv ...., the video runs, but there's no audio. Also there's no errors shown on mpv either.

The other thing of note is that I tried cage -s Xwayland :1 and the audio+video works perfectly.

So in all:

  1. How do I launch cage to spawn a simple Wayland session? Is this even possible?
  2. How do I solve the audio issue on Wayland?

EDIT: Thanks all for the help. After some investigation, I found out the pipewire somehow is not ran on startup of alacritty, but it did for Xwayland. I noticed that the first play of the video would be audio-less on alacritty, and subsequent ones are fine. It seems like the first run causes pipewire to be started and thus I wrongfully assumed that the daemon was running.

Still strange nonetheless...

you are viewing a single comment's thread
view the rest of the comments
[–] anonymous_bot@lemmy.world 2 points 1 year ago (1 children)

Have you tried with a different compositor first to rule out whether cage is the issue? For example try sway.

[–] 0WN3D@lemmy.cafe 1 points 1 year ago* (last edited 1 year ago) (1 children)

I tried with cage + Xwayland and that works perfectly, so I highly doubt that is the issue. Maybe it is something to do with cage + alacritty that is causing it, but I'm not too well versed in the Wayland stuff to know if spawning a terminal application may somehow not support audio.

[–] anonymous_bot@lemmy.world 1 points 1 year ago

Like I said we should try a different compositor just to rule it out.