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

Support PinePhone with postmarketOS (aarch64) #743

Open
notramo opened this issue Nov 11, 2022 · 7 comments
Open

Support PinePhone with postmarketOS (aarch64) #743

notramo opened this issue Nov 11, 2022 · 7 comments
Assignees
Labels
approved Current description and details of feature have been approved for dev by core team

Comments

@notramo
Copy link
Contributor

notramo commented Nov 11, 2022

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

@0x1a8510f2
Copy link
Member

My guess would be missing runtime dependencies.

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

@notramo
Copy link
Contributor Author

notramo commented Nov 11, 2022

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

@0x1a8510f2
Copy link
Member

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 ereio added the approved Current description and details of feature have been approved for dev by core team label Nov 11, 2022
@ereio ereio self-assigned this Nov 11, 2022
@ereio
Copy link
Member

ereio commented Nov 11, 2022

Have wanted to do this for a long time :)

@ereio ereio changed the title support PinePhone with postmarketOS Support PinePhone with postmarketOS (aarch64) Nov 11, 2022
@notramo
Copy link
Contributor Author

notramo commented Nov 12, 2022

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.

@0x1a8510f2
Copy link
Member

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.

@notramo
Copy link
Contributor Author

notramo commented Nov 21, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Current description and details of feature have been approved for dev by core team
Projects
None yet
Development

No branches or pull requests

3 participants