s-tui icon indicating copy to clipboard operation
s-tui copied to clipboard

No Fequency Graphs on Ryzen 5950x

Open DocMAX opened this issue 3 years ago • 7 comments

s-tui 1.1.3 grafik

DocMAX avatar Jan 06 '22 20:01 DocMAX

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

luoe avatar Jan 07 '22 14:01 luoe

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

amanusk avatar Jan 07 '22 18:01 amanusk

@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].

luoe avatar Jan 12 '22 14:01 luoe

This can be solved by downgrading psutil to v5.8.0 .

genema avatar Mar 07 '22 12:03 genema

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

wc7086 avatar Apr 20 '22 19:04 wc7086

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.

brunodrugowick avatar Aug 13 '22 20:08 brunodrugowick

Duplicate of #180

ejgallego avatar Aug 24 '22 22:08 ejgallego