oguzhaninan / Stacer

Linux System Optimizer and Monitoring - https://oguzhaninan.github.io/Stacer-Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpu speed not shown in ubuntu 20.04

armin-git opened this issue · comments

my cpu is 12700 intel
why cpu speed is unknown?
Screenshot from 2022-08-26 14-57-51

i think i found why this happened
in this file system_info.cpp:
https://github.com/oguzhaninan/Stacer/blob/native/stacer-core/Info/system_info.cpp

you run lscpu command and split "model name" string by @ and get the last part of string that contain the cpu speed
for example i have intel i7-9700 and this is lscpu result

Screenshot from 2022-08-27 09-33-56

and the cpu speed in stacer dashboard:
Screenshot from 2022-08-27 14-27-22

but intel 12700 "model name", when run lscpu command, does not contain cpu speed,

Screenshot from 2022-08-27 14-33-21

therefore the cpu speed in stacer show as unknown
Screenshot from 2022-08-27 14-34-54

please put this issue to your plan for fixing thank you

@armin-git so what would be the right way to get the cpu speed? maybe post an issue at lscpu project, that they are not consistently showing cpu speed?