Suspend issues (audio pitch, wake up by call)
There was recent work on fixing the suspend issues, namely audio pitch and wake up by call (in power/persist=1 mode with community firmware).
While the patches are still in testing, I have been running my phone with those patches for about a week now, still with a couple of problems, but it's much better than before, because at least I can safely suspend it. Those patches aren't likely to be upstreamable as of now, but perhaps you may decide they are better than nothing for the time being.
References: https://github.com/Biktorgj/pinephone_modem_sdk/issues/97, https://gitlab.com/mobian1/devices/eg25-manager/-/issues/34, readme in https://gitlab.com/marcinipv8/kernel-ark
Wake up by call, generally both are needed:
- The first patch is to either revert a quirk added by Megi (with stock firmware in mind) https://github.com/djselbeck/linux/commit/f57b0185c93bc94c3fedbcbb274d3e032972301a, or boot a phone with
usbcore.quirks=2c7c:0125:e
. Note that Mobian kernel ships without this quirk - The second patch is https://github.com/djselbeck/linux/commit/94ee175a91b2c132ca3068ee04cb2766c9f47cd7
Audio pitch, here there are 4 patches, I will list them in an order of them being produced. You will need to apply only one of them:
- https://github.com/djselbeck/linux/commit/cb4be5dec3fa18c4b344c11fed3fc57aa3bea424 - the most hacky one
- https://gitlab.com/marcinipv8/kernel-ark/-/commit/5f41055235786657509233557a3ca2950c401ec5
- https://gitlab.com/marcinipv8/kernel-ark/-/commit/85d1f667da35c9a2676c42296ed7a5f08d98f783 - doesn't work with Pipewire (apparently Pipewire doesn't set the clock on resume, while Pulseaudio does)
- https://gitlab.com/marcinipv8/kernel-ark/-/commit/88c80cf558876bf978356b44e6b2f35f680becb9 - a smaller version of the previous one, still doesn't work with Pipewire
Unless something better is developed, I would suggest the second one.
Related developments:
- a patch fixing eMMC resume has been merged into upstream 5.18.3
- open firmware is now identifiable in udev since v0.6.7: https://github.com/Biktorgj/pinephone_modem_sdk/issues/112 (this may be useful to enable
power/persist=1
on community, but keep it=0
on stock)