[Bug]: htop CPU monitoring not work
Problem description
What steps will reproduce the bug?
When I run the htop command, CPU monitoring does not work and is displayed as offline.
- Device : Samsung Galaxy S24+ (SM-S926N)
- SoC : Samsung Exynos 2400 3.2GHz Cortex-X4 1core 2.9GHz Cortex-A720 2core 2.6GHz Cortex-A720 3core 1.95GHz Cortex-A520 4core L3 cache 8MB + SLC 8MB 1.1GHz Samsung Xclipse 940 GPU (AMD RDNA3 base Custom 6WGP) 1.3GHz NPU+DSP (44TOPs INT8)
- RAM : 8.5Gpbs 16bit Quad-Channel LPDDR5X 12GB (68.26GB/s)
- Storage : UFS4.0 512GB
- OS : Android 15
What is the expected behavior?
No response
System information
Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~hgEUTnyIIS9tV_kJ_9KbMA==/com.termux-0fVnFsZ84sUNEGq1t_ntQg==/base.apk
TERMUX_APP__APK_RELEASE=GITHUB
TERMUX_APP__APP_VERSION_CODE=1022
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.3
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=true
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=11863
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c127,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.3
TERMUX__APPS_DIR=/data/user/0/com.termux/termux/apps
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c127,c257,c512,c768
TERMUX__UID=10383
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://grimler.se/termux/termux-main stable main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# x11-repo (sources.list.d/x11.list)
deb https://grimler.se/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
15
Kernel build information:
Linux localhost 6.1.93-android14-11 #1 SMP PREEMPT Thu Jun 26 10:30:50 UTC 2025 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-S926N
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a
SUPPORTED_32_BIT_ABIS:
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.widget versionCode:13
com.termux.x11 versionCode:15
com.termux.api versionCode:51
Root permission is necessary.
Please try again using:
sudo htop
Root permission is necessary.
Please try again using:
sudo htop
True, but it could probably be circumvented. TOP displays at least some of this data, and Android apps (some of them) can obtain information.
In theory, you would need to create a library that would return data from other sources to htop. The question is, however, whether it is worth it. Maybe if Termux develops significantly and there are no other major problems.
@IntinteDAO Sorry for the late reply! I forgot about it after reporting the issue!
https://github.com/termux/termux-packages/pull/20393
Is it possible to implement something like the previous xfce4-taskmanager patch?
The pull request also mentions that it should be possible to implement this in htop in a similar way!