[Adreno 730] chroot void linux no gpu at all
Hello,
I'm trying to use the void linux chroot from chroot-distro on a Samsung SM-X700 (Adreno 730). Unfortunately I haven't been able to get anything working, as even glxinfo reports: "Error: couldn't find RGB GLX visual or fbconfig"
As per the recommendations for Adreno 7XX, I installed mesa-for-android-container_26.1.0-devel-20260404_void_arm64.tar.gz followed by turnip-26.1.0-devel-20260404_void_arm64.tar.gz then ran ldconfig.
I apologise if I am doing something fundamentally wrong, as I am new to running linux under android. I appreciate any help!
I use the chroot by running the following:
export CHROOT_ROOTFS_PATH=/data/local/chroot-distro/void
sudo busybox mount --bind ${PREFIX}/tmp ${CHROOT_ROOTFS_PATH}/tmp
sudo busybox mount --bind /dev ${CHROOT_ROOTFS_PATH}/dev
XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 -ac &
am start --user 0 -n com.termux.x11/com.termux.x11.MainActivity
su -c "chroot-distro command void 'su -l molnar'"
export DISPLAY=:0 && dbus-run-session dwm
termux-info output:
Termux Variables:
TERMUX_API_VERSION=0.52.0
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=6545
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c70,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.3
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c70,c257,c512,c768
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://packages-cf.termux.dev/apt/termux-x11 x11 main
# root-repo (sources.list.d/root.list)
deb https://packages-cf.termux.dev/apt/termux-root root stable
Updatable packages:
libxml2/stable 2.15.3 aarch64 [upgradable from: 2.15.2-2]
termux-tools version:
1.45.0
Android version:
15
Kernel build information:
Linux localhost 5.10.226-android12-9-30958166-abX700XXU9DYDC #1 SMP PREEMPT Tue Apr 15 09:21:24 UTC 2025 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-X700
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.api versionCode:1001
com.termux.x11 versionCode:15
Try modifying the following command,
export DISPLAY=:0 && dbus-run-session dwm
Add an environment variable as described in the README:
export DISPLAY=:0 MESA_LOADER_DRIVER_OVERRIDE=kgsl && dbus-run-session dwm
My bad, I forgot to mention I was already running it as MESA_LOADER_DRIVER_OVERRIDE=kgsl TU_DEBUG=noconform glxinfo
It seems no drivers are recognised at all? Like there's nothing installed...
In this case, you can try putting those two environment variables directly into the /etc/environment file.
If it still doesn't work, you can follow the process below to install a PRoot container to test the driver. If the driver runs successfully, then test it in the Chroot container.
# Execute in Termux:
pkg upgrade -y
pkg install -y x11-repo proot-distro
pkg install -y termux-x11-nightly pulseaudio
proot-distro install debian
# Log in to PRoot, create a sudo account and then log out
proot-distro login debian --shared-tmp
# Add a sudo account in PRoot (root):
apt update && apt upgrade -y
apt install -y sudo adduser
adduser user
vim /etc/sudoers
# Add this line to the end of the file: user ALL=(ALL:ALL) ALL
# Start PRoot script:
pkill -f "com.termux.x11.Loader"
pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 >/dev/null &
proot-distro login debian --shared-tmp --user user
# Execute in PRoot (sudo account):
sudo apt update && sudo apt upgrade -y
sudo apt install -y bash-completion wget mesa-utils vulkan-tools glmark2-x11 glmark2-es2-x11
wget https://github.com/lfdevs/mesa-for-android-container/releases/download/mesa-26.1.0-devel-20260404/mesa-for-android-container_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz https://github.com/lfdevs/mesa-for-android-container/releases/download/turnip-26.1.0-devel-20260404/turnip_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz
sudo tar -zxvf mesa-for-android-container_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz -C /
sudo tar -zxvf turnip_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz -C /
rm mesa-for-android-container_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz turnip_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz
sudo ldconfig
# Test drivers:
export XDG_RUNTIME_DIR=/tmp DISPLAY=:0 PULSE_SERVER=127.0.0.1 MESA_LOADER_DRIVER_OVERRIDE=kgsl
glxinfo -B
vulkaninfo --summary
glmark2
vkcube
I can confirm GPU acceleration works in a debian 13 proot, as well as chroot. I do not know why it didn't work on void linux, probably a misconfiguration on my part. Performance is great, thanks for the help!
I have problems however using WebRender in firefox. I enabled gfx.webrender.all as well as gfx.webrender.compositor, however there are significant graphical glitches and performance is roughly the same. Do you have any idea if this can be fixed in this environment?
I have problems however using WebRender in firefox. I enabled
gfx.webrender.allas well asgfx.webrender.compositor, however there are significant graphical glitches and performance is roughly the same. Do you have any idea if this can be fixed in this environment?
When starting Firefox, graphical glitches can be significantly reduced by individually specifying the environment variable MESA_LOADER_DRIVER_OVERRIDE=zink in the launcher file (i.e., using the Turnip + Zink combination specifically for Firefox instead of Freedreno).
That seems to have fixed it. Thank you again for your support! Closing.