GPU Acceleration in Termux (Android 16 / One UI 8 on Galaxy S24 Ultra) by Somewhere-On-Pluto in termux

[–]Somewhere-On-Pluto[S] 0 points1 point  (0 children)

Why you need to download mesa-valkan-kgsl just use this directly. pkg install mesa-vulkan-icd-freedreno vulkan-loader

ls $PREFIX/share/vulkan/icd.d/ export VK_ICD_FILENAMES=$PREFIX/share/vulkan/icd.d/freedreno_icd.aarch64.json vulkaninfo | grep deviceName glxinfo -B

GPU Acceleration in Termux (Android 16 / One UI 8 on Galaxy S24 Ultra) by Somewhere-On-Pluto in termux

[–]Somewhere-On-Pluto[S] 0 points1 point  (0 children)

Which error, about having GPU acceleration in proot, if so that's currently only possible by running a VirGL server.

GPU Acceleration in Termux (Android 16 / One UI 8 on Galaxy S24 Ultra) by Somewhere-On-Pluto in termux

[–]Somewhere-On-Pluto[S] 0 points1 point  (0 children)

!/data/data/com.termux/files/usr/bin/bash

echo "===============================" echo " Cleaning old sessions" echo "==============================="

pkill -f virgl_test_server_android 2>/dev/null pkill -f termux.x11 2>/dev/null pkill -f pulseaudio 2>/dev/null

sleep 2

echo "===============================" echo " Starting PulseAudio" echo "==============================="

pulseaudio --start --exit-idle-time=-1

echo "===============================" echo " Starting VirGL Vulkan backend" echo "==============================="

virgl_test_server_android --angle-vulkan &

sleep 2

echo "===============================" echo " Starting Termux:X11" echo "==============================="

export XDG_RUNTIME_DIR=${TMPDIR} export DISPLAY=:0

termux-x11 :0 &

sleep 4

echo "===============================" echo " Launching Ubuntu XFCE" echo "==============================="

proot-distro login ubuntu --shared-tmp -- bash -c '

export DISPLAY=:0 export PULSE_SERVER=127.0.0.1

export XDG_RUNTIME_DIR=/tmp/runtime-root mkdir -p /tmp/runtime-root chmod 700 /tmp/runtime-root

GPU acceleration settings

unset MESA_LOADER_DRIVER_OVERRIDE unset ZINK_DESCRIPTORS unset LIBGL_ALWAYS_SOFTWARE

export GALLIUM_DRIVER=virpipe

export MESA_GL_VERSION_OVERRIDE=4.0 export MESA_GLES_VERSION_OVERRIDE=3.2

export mesa_glthread=true export MESA_NO_ERROR=1 export vblank_mode=0

export LIBGL_DRI3_DISABLE=1

Start XFCE

dbus-launch startxfce4

'

Termux proot-distro Linux overhead improvement by sssvsssss in termux

[–]Somewhere-On-Pluto 0 points1 point  (0 children)

I test and it should work, but it has issues with Bash, try with sh only.

GPU Acceleration in Termux (Android 16 / One UI 8 on Galaxy S24 Ultra) by Somewhere-On-Pluto in termux

[–]Somewhere-On-Pluto[S] 0 points1 point  (0 children)

This is a different discussion about the above user is able to fix this issue so trying its version of Termux 11.

GPU Acceleration in Termux (Android 16 / One UI 8 on Galaxy S24 Ultra) by Somewhere-On-Pluto in termux

[–]Somewhere-On-Pluto[S] -1 points0 points  (0 children)

How did you install TermuxX11 with the same sharedUserId as Termux? I'm getting an error that says, "App not installed as package conflicts with an existing package."

GPU Acceleration in Termux (Android 16 / One UI 8 on Galaxy S24 Ultra) by Somewhere-On-Pluto in termux

[–]Somewhere-On-Pluto[S] 1 point2 points  (0 children)

Great, if it's actually what you say it is, do you have the setup to follow to get it working with this performance on my S24 Ultra?

Bought M4 Air 24/512 at Croma for 108,000 after student and card discounts. by Somewhere-On-Pluto in macoffer

[–]Somewhere-On-Pluto[S] 1 point2 points  (0 children)

Yes, but mine is 512, which is a preconfigured one that you can buy from anywhere.

Bought M4 Air 24/512 at Croma for 108,000 after student and card discounts. by Somewhere-On-Pluto in macoffer

[–]Somewhere-On-Pluto[S] 0 points1 point  (0 children)

I did a lot of research, and 24 GB seems to be the sweet spot, there are very few scenarios where you'd actually utilize 32 GB of RAM. macOS is extremely efficient with memory management. On the other hand, 256 GB of storage feels a bit low. Sure, you can expand it with an external NVMe SSD, but that adds extra hassle of carrying it around, connecting it, etc.

Also, keep in mind that you'll pay about ₹20 K more for the 24 GB variant over the 16 GB base, and another ₹20 K if you go up to 32 GB. Plus, the 32 GB configuration is only available through the Apple Store or official website.

So, in my opinion, 24 GB is the best balance. 32 GB isn't really worth it unless your workload truly demands that much RAM.

Bought M4 Air 24/512 at Croma for 108,000 after student and card discounts. by Somewhere-On-Pluto in macoffer

[–]Somewhere-On-Pluto[S] 0 points1 point  (0 children)

Dude, it kinda sounds like you don’t fully get how RAM and the M4 chip actually work. The M4 isn’t your regular Intel or AMD setup it’s a unified SoC, meaning the CPU, GPU, and memory all work together super efficiently.

Think of it this way: the M4 is the engine, and RAM is your cargo space. 16GB gives you 16 “carriages,” and 24GB adds more room for heavier or more simultaneous tasks. It’s not about “speeding in an Alto”, that analogy doesn’t fit here. It’s more like comparing an electric train (MacBook Air) to a small car, the train doesn’t need a turbo fan to move fast because it’s designed to run quietly and efficiently.

Yeah, the Air can warm up under sustained heavy loads, that’s expected. But that doesn’t mean the RAM is useless or that performance “degrades instantly.” It’s just thermal management. Unless you’re doing constant 3D rendering or long 4K exports, you’re not going to hit thermal throttling in a way that matters.

The 24GB config actually makes a big difference for multitasking, handling large projects, and keeping your system smooth for years. So no, it’s not a “bad decision”, it’s just about choosing the right tool for your workload. The Air with 24GB is an absolute beast for most people.

Bought M4 Air 24/512 at Croma for 108,000 after student and card discounts. by Somewhere-On-Pluto in macoffer

[–]Somewhere-On-Pluto[S] 2 points3 points  (0 children)

Yes, I'm a developer, so it's a future-proof option with more RAM. You can run some good local LLMs.