syphon-org/syphon

Support PinePhone with postmarketOS (aarch64)

notramo opened this issue ยท 7 comments

postmarketOS on the PinePhone currently lacks Matrix clients that are both usable and fast. (Cinny is quite good, but slow on the PinePhone; Hydrogen is usable speed, but lacks basic functionality, like editing; Fractal is quite fast compared to others, but lacks functionality; FluffyChat is feature rich, but has terrible UI/UX).

I am using postmarketOS, which is a musl based distro. As far as I know, Flutter currently doesn't support musl builds. I used gcompat, and the binary could be launched, but it opens a blank window, and writes a GTK error to the console. I don't know if it is because of libc, or the PinePhone is not supported at all.

** (syphon:10188): WARNING **: 13:17:36.186: Failed to start Flutter renderer: Unable to create a GL context

syphon

My guess would be missing runtime dependencies.

Are you able to try/have you tried the flatpak version?

Does the flatpak support aarch64? I couldn't install.

Aha, it does not currently. But it looks like we're publishing aarch64 builds now so it should be trivial to add support to the flatpak. Unfortunately, I'm quite busy at the moment, so this might take some time.

ereio commented

Have wanted to do this for a long time :)

It seems like it's not a libc issue.
I found two issues mentioning this error message: flutter/flutter#76178 and flutter/flutter#106941

If I set export LIBGL_ALWAYS_SOFTWARE=1 then Syphon starts, and shows the UI, but it renders at approximately 5 frames per second.

The flatpak should now have aarch64 support flathub/org.syphon.Syphon#6 ๐ŸŽ‰ !

It would be great if you could try again once the build has been published to flathub. If the flapak works, we know for sure it's just a runtime dependency issue.

Unfortunately, other Flutter apps also lack hardware acceleration on the PinePhone, so it's blocking this issue.

There are more bugs however, that will have to be resolved when the acceleration issues are fixed, so please don't close this issue.