...: nabster :...


contents

Notes on starting proot-distro with hardware graphics acceleration

Install termux-x11 separately from github or obtainium.

Install in termux

  • pkg install termux-x11
    pkg install virglrenderer-android

To stop termux timing out

  • Settings -> System -> Developer options -> Disable child process restrictions
    • or via adb shell "settings put global settings_enable_monitor_phantom_procs false"

Launch the proot-distro with:

  • virgl_test_server_android & proot-distro login debian --shared-tmp --user joebloggs

 Inside the proot-distro:

  • Have GALLIUM_DRIVER=virpipe in the user's .bashrc

 Start XFCE4 with

  • termux-x11 :1 -xstartup 'dbus-launch --exit-with-session xfce4-session'

 If only wishing to use hardware acceleration on a per-program basis:

  • GALLIUM_DRIVER=virpipe MESA_GL_VERSION_OVERRIDE=4.0 firefox