====== 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 **Settings** => **DuraSpeed** option for all the system solved the problem. Unfortunately at the moment there is not an option to disable DuraSpeed for Termux:API only. * **[[https://github.com/termux/termux-api/issues/447|Termux-api No Work On Android 10 (BV9900 Pro) - Issue #447]]** ===== Termux:Widget only the 1x1 shortcut is available ===== Trying to add the Termux:Widget on the desktop, only the **Termux shortcut 1x1** option is available, the larger and resizable **Termux widget 2x2** 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 **Settings** => **Storage** => **SD Card** => **Apps** => **Termux:Widget** => **Storage used** => **Change** it is possible to move the app to the internal shared storage. * **[[https://github.com/termux/termux-widget/issues/45|only 1x1 widget available on Android 10 - Issue #45]]** ===== 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 **Settings** => **DuraSpeed** 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. * **[[https://github.com/termux/termux-widget/issues/56|Sometimes the widget stops to work - Issue #56]]** ===== 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)