Skip to content

Latest commit

 

History

History
112 lines (75 loc) · 3.3 KB

File metadata and controls

112 lines (75 loc) · 3.3 KB

Termux:X11 performance — GrokHunter Rootless

Highest-impact optimizations for a responsive coding desktop on Android.

Agent skill: optional x11-desktop (grokhunter skills install) — fix & tune playbook for Grok Build.

Ranked wins

Priority Action Effect
1 sharedUid APK (GitHub Termux only) Stops Android from throttling Termux when X11 is foreground
2 Disable XFCE compositing Biggest smoothness gain on proot
3 Light DE (XFCE / i3) Less CPU/RAM than GNOME/KDE
4 Share /tmp Required for X sockets; already patched by --with-x11
5 Avoid SD-card rootfs Faster apt, editors, builds
6 Optional GPU (Turnip/Zink) Advanced; device-specific

1. APK choice

APK Notes
termux-x11-universal-debug.apk Works with F-Droid Termux
termux-x11-universal-sharedUid-debug.apk Best performance if Termux is installed from GitHub

Nightlies: https://github.com/termux/termux-x11/releases/tag/nightly

2. Disable compositor (XFCE)

Inside the Kali session (or add to startup):

xfconf-query -c xfwm4 -p /general/use_compositing -s false 2>/dev/null || true

nh-x11 tries this automatically when the session is startxfce4.

3. Preferential launch flags

# Default (GrokHunter; legacy drawing on)
nh-x11

# GPU path if legacy drawing is too slow
NH_X11_LEGACY=0 nh-x11

# Manual Termux-native example
termux-x11 :0 -dpi 120 -xstartup "dbus-launch --exit-with-session xfce4-session"

4. Preferences (termux-x11-preference)

termux-x11-preference list
# Examples:
termux-x11-preference "fullscreen"="true"
termux-x11-preference "showAdditionalKbd"="true"

Tune touchpad vs touchscreen mode from the notification / app preferences for coding with a Bluetooth keyboard.

5. DPI / readability

  • XFCE: Settings → Appearance → custom DPI
  • Or start with -dpi 120 (or 96–160 depending on panel size)

6. GPU acceleration (optional, advanced)

Not required for coding (editors, terminals, browsers-lite). For GL apps:

  • Adreno: community Turnip / Zink builds (device-specific packages)
  • Others: VirGL / ANGLE paths vary widely in stability

See community guides (termux-desktop hw-acceleration, Turnip nightlies). GrokHunter does not auto-install GPU drivers.

7. Runtime hygiene

# Before relaunch if session is stuck
pkill -f termux.x11 2>/dev/null || true
am force-stop com.termux.x11 2>/dev/null || true

Keep one DE running. Close heavy browsers when compiling.

GrokHunter path

# Install / refresh X11 helper
bash install.sh --with-x11

# Fast path
nh-x11

Related: PROOT.md, INSTALL.md.

GrokHunter XFCE skin

Brand-matched reversible skin (user xfconf only): DISPLAY=:0 bash scripts/desktop-skin.sh apply --plate og --dpi 120 --panel-slim — see scripts/desktop-skin.sh. Revert with bash scripts/desktop-skin.sh revert.

Kali application menu

After desktop install (or anytime inside Kali):

grokhunter menu install
# or
bash scripts/install_kali_menu.sh

Look for Applications → GrokHunter (Grok Build, Coding Team, Scout, Aider, Doctor, Setup).
Log out/in of XFCE if the submenu does not appear immediately. Remove with grokhunter menu remove.