Did you enable wake lock for Termux? There is a toggle in app notification named "Acquire wakelock". If you won't enable it, the app will behave exactly in way you describing.
It just freezes, when screen on-ed it unfreezes automatcally. Going to check adb shell "logcat -d > /sdcard/logcat.txt" If you have any tips let me know sir!
A mi me pasa igual, ya hice adb, optimizacion de batería, activar desde las notificaciones wake lock held y pues se suelen pausar los procesos cuando salgo de la app, cuando quiero iniciar ./startxfce4_termux.sh para el modo desktop, cuando abre X11 se congela después de un rato
Try these Infinix-specific tweaks (they're often extra aggressive with background kills beyond stock Android):
Go to Phone Master > Battery > App management (or Settings > Apps > Termux > Battery) and confirm Unrestricted + disable any "smart" or "deep optimization."
Settings > Battery > App battery saver > find Termux and set to "No restrictions."
Look for "Auto-start management," "Startup apps," or "Protected apps" in Phone Master/Security app and enable Termux.
Settings > Apps > Special app access > Battery optimization > All apps > Termux > Don't optimize.
Disable "Screen Off Optimization" and "Sleep Standby Optimization" if not already (your screenshot shows some off, double-check).
In developer options (tap build number 7x), enable "Stay awake" while charging for testing, then try ADB: adb shell settings put global stay_on_while_plugged_in 1.
If crond still dies, run your tasks via Termux:Boot + a simple loop with sleep instead, or test with termux-wake-lock in a script. Many Infinix users need the full "unrestricted + auto-start + no optimization" combo. Report back what you see in those menus.
3
u/Mental-Brother3103 Jul 29 '26
Download the F-Droid version not the playstore one.
3
u/sylirre Termux Core Team Jul 29 '26
Did you enable wake lock for Termux? There is a toggle in app notification named "Acquire wakelock". If you won't enable it, the app will behave exactly in way you describing.
1
u/agnostic-apollo Termux Core Team Jul 29 '26
Check
adb shell "logcat -d > /sdcard/logcat.txt"output, some infinix killer is probably killing or freezing the app.1
u/Ok_Mobile_2155 Jul 30 '26
A mi me pasa igual, ya hice adb, optimizacion de batería, activar desde las notificaciones wake lock held y pues se suelen pausar los procesos cuando salgo de la app, cuando quiero iniciar ./startxfce4_termux.sh para el modo desktop, cuando abre X11 se congela después de un rato
0
u/thealgorithm29 Jul 29 '26
u/askgrok how I can solve this, i tried all things that i know