User Tools

Site Tools


doc:appunti:android:termux_problems

Termux Problems

Termux:API not working

All the calls to the Termux:API will hang the process. E.g. running termux-battery-status on the Termux command line does not return any information and waits forever (Ctrl-C to break).

  • Termux
    • Version 0.101 (from Google Play Store)
    • Version 0.118.0 (from F-Droid)
  • Termux:API
    • Version 0.44 (from Google Play Store)
    • Version 0.50.1 (from F-Droid)
  • Android 11 (Oukitel WP12 smartphone, with MediaTek processor)

It seems that battery optimization against Termux:API is the problem. Disabling the SettingsDuraSpeed option for all the system solved the problem. Unfortunately at the moment there is not an option to disable DuraSpeed for Termux:API only.

Termux:Widget only the 1x1 shortcut is available

Trying to add the Termux:Widget on the desktop, only the Termux shortcut 1×1 option is available, the larger and resizable Termux widget 2×2 is not listed as an option.

  • Termux
    • Version 0.118.0 (from F-Droid)
  • Termux:API
    • Version 0.50.1 (from F-Droid)
  • Android 11 (Oukitel WP12 smartphone, with MediaTek processor)

It turned out that installing the Termux:Widget app into the external SD card is the problem. From SettingsStorageSD CardAppsTermux:WidgetStorage usedChange it is possible to move the app to the internal shared storage.

Termux:Widget not working

After some time of usage the widget suddendly stops working. Pressing the reload icon does not longer show the “Termux shortucts reloaded” toast. Tapping anyone of the items does not start the relevant script. Sometimes the list of items resets itself, displaying the “No files in $HOME/.shortcuts/” .

  • Termux
    • Version 0.117 (from F-Droid)
  • Termux:Widget
    • Version 0.12 (from F-Droid)
  • Android 11 (Oukitel WP12 smartphone, with MediaTek processor)

The problem is caused by battery optimization: disabling the SettingsDuraSpeed option solves the problem. Starting from Termux:Widget version 0.13.0 it is possibile to disable DuraSpeed for the app only, leaving it enabled for the other apps.

Termux:Widget not working

Starting from Android 10 the Termux:Widget requires that Termux app gets the permission to draw over other apps, otherwise it cannot start a terminal session from the background. Unfortunately some Android versions deny to grant such permission to Termux… FIXME add the error message here.

  • Termux
    • Version 0.117 (from F-Droid)
  • Termux:Widget
    • Version 0.12 (from F-Droid)
  • Android 10 (Doogee X93, with MediaTek processor)
doc/appunti/android/termux_problems.txt · Last modified: 2022/03/15 06:53 by niccolo