Regression: Phosh in pmOS 24.12 regularly fails to re-engage with pipewire after either a pipewire or a Phosh/Phoc restart
Describe your issue
There seems to be a regression with Phosh where if 1. either pipewire needs to be restarted (which is very common, because bluetooth breaking on the PinePhone Allwinner is very common, and reloading the bluetooth kernel modules to fix that will often break pipewire, and force me to restart pipewire with killall & pipewire-launcher), or 2. if Phosh crashes (which is also currently very common), audio in Phosh will break with like a chance of 50%.
The broken audio shows in the UI in one of two ways: 1. volume buttons either show a "Dummy Output" instead of any real output for volume, or 2. volume buttons have no visible reaction at all anymore and the audio popup is just plain broken. In both cases, it can't be fixed via "Sound" settings either and the only fix I've found is a disruptive reboot of the entire phone.
This currently happens with 0.43.1, with last known working one should be 0.39.00.43.1.
What's the expected behaviour?
If pipewire or Phosh/Phoc ever restart, they reconnect and keep working
What's the current behaviour?
If pipewire or Phosh/Phoc ever restart, there seems to be an about 50% chance of audio breaking. Pipewire still runs, but Phosh either doesn't seem to recognize it at all, or recognizes it but only lists a "Dummy Output".
How to reproduce your issue?
- Confirm audio playback works. Test the physical volume keys to confirm you can adjust volume.
- killall pipewire, then /usr/libexec/pipewire-launcher as your user, while you're in Phosh, via a terminal (not ssh).
- Audio playback should be either broken, or sometimes it still works but physical volume keys are broken. This happens only sometimes, but often enough.
What device are you using?
PinePhone Allwinner 3GB RAM variant
On what postmarketOS version did you encounter the issue?
-
edge (
master
branch) -
v24.12
, worked onv23.06
-
v24.06
(supported until 2025-01-23) -
I confirm that the issue still is present after running
sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
- GNOME Shell on Mobile
- Phosh
- Plasma Mobile
-
Sxmo (Wayland/Sway) Please post the output of
sxmo_version.sh
- Other: Please fill out
Which init system are you using?
- OpenRC
- systemd
How did you get postmarketOS image?
- from https://images.postmarketos.org
- I built it using pmbootstrap
- It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
very old gone through multiple upgrades