s-tui
s-tui copied to clipboard
No Fequency Graphs on Ryzen 5950x
s-tui 1.1.3
Same behavior with weird low reported frequencies on an Intel Core i5-1135G7.
Other programs such as powertop or manually reading from
/sys/devices/system/cpu/cpufreq/policy{0..7}/scaling_cur_freq
work as intended.
s-tui: 1.1.3 Linux: 5.15.13
Thanks for opening the issue. This seems to be the same problem as #180 Frequency is reported in GHz, while Min/Max is reported in Mhz.
The change originates from a change in psutil, the fix for which should be already in the works.
I suggest we wait for the psutil
@DocMAX if you use Archlinux/Manjaro, you can try do downgrade python-psutil to 5.8.0. This resolves this issue for now and only one core showing the exact frequency:
sudo pacman -U https://archive.archlinux.org/packages/p/python-psutil/python-psutil-5.8.0-4-x86_64.pkg.tar.zst
And add
IgnorePkg = python-psutil
to pacman.conf under [options].
This can be solved by downgrading psutil to v5.8.0 .
psutilVersion=`pip show psutil | grep 'Version' | awk -F ': ' '{print $2}'` \
&& psutilLocation=`pip show psutil | grep 'Location' | awk -F ': ' '{print $2}'`/psutil \
&& [ $psutilVersion == 5.9.0 ] \
&& sudo sed -i "/curr = cpuinfo_freqs\[i\]$/ s/$/ * 1000/" $psutilLocation/_pslinux.py
or If you know the directory where psutil is stored.
sudo sed -i "/curr = cpuinfo_freqs\[i\]$/ s/$/ * 1000/" /usr/lib/python3.10/site-packages/psutil/_pslinux.py
In Ubuntu-based distros, this should fix, but I don't know if it has side effects:
pip install --upgrade psutil==5.8.0
Edit: with the release of [email protected] you can also just do pip install --upgrade psutil
now. Also see https://github.com/amanusk/s-tui/issues/180#issuecomment-1226481057.
Duplicate of #180