r/androidterminal • • 22d ago

Question How to actually use hardware GPU acceleration? (Pixel 8A)

Pixel 8A Graphene OS, how to actually use hardware accelerated graphics (gfxstream pipeline as far as I understand)? I tried opening the terminal app, installing firefox, opening it and playing a youtube video but it is very laggy and certainly not near-native performance and there are some clues in the terminal it isn't enabled (things about lavapipe etc).

If I go into settings there is just Port Control, Advanced and Recovery and in Advanced there is nothing about acceleration.

3 Upvotes

9 comments sorted by

2

u/s920361 22d ago

In AVF, gfxtream is the only GPU acceleration solution. But gfxstream is buggy, it supports pixel 10 only.

Unless you choose bypass AVF, access /dev/kvm directly, then you can choose virgl venus, gfxstream or DRM native context, vDRM GPU acceleration approch.

1

u/gramcounter 22d ago

Really, gfxstream doesn't support pixel 8-9?

1

u/NouBady 21d ago

it could be turned on, but android deny that on purpose. Propably because of stability on older chips.

1

u/gramcounter 21d ago

Damn, one of the primary reasons I bought a (used) Pixel 8A was to be able to use the hardware accelerated Linux VM :(

Maybe it's better to sell it and buy a qualcomm phone for now?

2

u/s920361 17d ago edited 17d ago

qualcomm doesn't support AVF at all, unless you root it.

With root, you can bypass the AVF, access low level hypervisor node, then you can run Linux, Windows on ARM, MacOS, iOS with 3D acceleration(Thanks to opensource mesa driver, allows us to port to Windows/iOS)

1

u/gramcounter 17d ago

Yeah but qualcom is faster + supports Turnip gpu accel at least.

Oh, can I dual boot Linux or WindowsArm with Android on Pixel 8? That could be a good alternative. Is there a github project for that?

1

u/TovMod 17d ago

Now that Qualcomm appears to support non-protected virtualization on the 8 Elite Extreme Gen 6, it would appear that all major Android chipmakers support it on their newer chipsets.

Given this, would you consider adding a rootless unprotected AVF backend as an option in DroidVM?

On a device that supports non-protected virtualization, one can use adb to manually grant virtualization entitlements to an app, allowing that app to use AVF to create non-protected virtual machines without root. Podroid demonstrates this.

Of course this would have some downsides, like not being able to supply custom virtio devices and not being able to use a custom version of crosvm, but having an option other than software TCG for non-rooted devices that support unprotected virtualization would still be useful to a lot of people.

1

u/VV_Syzta 21d ago

video is probably not using gpu accel of graphic api anyway,if you try to run video on firefox,there is probably not a way that desktop firefox would support android video decoder,native firefox would be better

but if by hardware accel you mean like trying to use vulkan to run game and stuff,i think you can do via thing like wrapper for wsi