amanusk / s-tui

Terminal-based CPU stress and monitoring utility
https://amanusk.github.io/s-tui/
GNU General Public License v2.0
4.01k stars 139 forks source link

After kernel / distribution upgrade, CPU frecuencies are shown divided by 1000 #198

Closed ejgallego closed 1 year ago

ejgallego commented 1 year ago

Step 1: Describe your environment

Step 2: Describe the problem:

Observed Results:

After upgrade from Ubuntu 20.04 to 22.04 , s-tui reports CPU Mhz values wrong. Now it says "2.6 Mhz" instead of "2600 Mhz".

Debug Results, output of s-tui -d created in a file _s-tui.log:

2022-08-24 23:31:46,600 [_load_config()] [DEBUG]  Config file not found
2022-08-24 23:31:46,600 [_load_config()] [DEBUG]  No refresh rate configed
2022-08-24 23:31:46,600 [_load_config()] [DEBUG]  No user config for utf8
2022-08-24 23:31:46,600 [_load_config()] [DEBUG]  No user config for temp threshold
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name PackageId0,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Core0,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Core1,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Core2,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Core3,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Core4,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Core5,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Core6,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Core7,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Iwlwifi_1,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Composite,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Sensor1,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Sensor2,0
2022-08-24 23:31:46,626 [__init__()] [DEBUG]  Temp sensor name Pch_Cometlake,0
2022-08-24 23:31:46,632 [__init__()] [DEBUG]  Fan sensor name dell_smm,0
2022-08-24 23:31:46,632 [__init__()] [DEBUG]  Fan sensor name dell_smm,1
2022-08-24 23:31:46,632 [_load_config()] [DEBUG]  Error reading sensors config
2022-08-24 23:31:46,632 [_load_config()] [DEBUG]  Error reading sensors config
2022-08-24 23:31:46,632 [_load_config()] [DEBUG]  Error reading sensors config
2022-08-24 23:31:46,632 [_load_config()] [DEBUG]  Error reading sensors config
2022-08-24 23:31:46,632 [_load_config()] [DEBUG]  Error reading sensors config
2022-08-24 23:31:46,632 [__init__()] [INFO ]  num cpus 16
2022-08-24 23:31:46,639 [on_unicode_checkbox()] [DEBUG]  unicode State is False
2022-08-24 23:31:46,641 [main_window()] [DEBUG]  Pile index: 18
2022-08-24 23:31:46,672 [eval_hooks()] [DEBUG]  Evaluating hooks
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 8.3
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 50.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:46,673 [update()] [INFO ]  Utilization recorded [3.4, 8.3, 0.0, 0.0, 0.0, 0.0, 0.0, 50.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
2022-08-24 23:31:46,674 [update()] [DEBUG]  seconds passed 0.04492044448852539
2022-08-24 23:31:46,674 [update()] [DEBUG]  watts used 21.56857553463192
2022-08-24 23:31:46,674 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-08-24 23:31:46,674 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:46,674 [update()] [DEBUG]  seconds passed 0.04492044448852539
2022-08-24 23:31:46,674 [update()] [DEBUG]  watts used 18.364666899294093
2022-08-24 23:31:46,674 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-08-24 23:31:46,674 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:46,674 [update()] [DEBUG]  seconds passed 0.04492044448852539
2022-08-24 23:31:46,674 [update()] [DEBUG]  watts used 0.0
2022-08-24 23:31:46,674 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-08-24 23:31:46,674 [update()] [DEBUG]  seconds passed 0.04492044448852539
2022-08-24 23:31:46,674 [update()] [DEBUG]  watts used 0.6834304591051431
2022-08-24 23:31:46,674 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-08-24 23:31:46,674 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:46,674 [update()] [DEBUG]  seconds passed 0.04492044448852539
2022-08-24 23:31:46,674 [update()] [DEBUG]  watts used 3.7202214248500614
2022-08-24 23:31:46,674 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-08-24 23:31:46,674 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:46,676 [update()] [INFO ]  Reading [64.0, 52.0, 52.0, 53.0, 52.0, 57.0, 53.0, 64.0, 55.0, 41.0, 46.85, 39.85, 41.85, 70.0]
2022-08-24 23:31:46,706 [update()] [INFO ]  Reading [2.4490624999999997, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 4.685, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3]
2022-08-24 23:31:46,707 [get_top()] [DEBUG]  Returning top 5100.0
2022-08-24 23:31:46,707 [update()] [INFO ]  Reading [3.4, 8.3, 0.0, 0.0, 0.0, 0.0, 0.0, 50.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
2022-08-24 23:31:46,708 [update()] [INFO ]  Reading [21.56857553463192, 18.364666899294093, 0, 0.6834304591051431, 3.7202214248500614]
2022-08-24 23:31:46,708 [update()] [INFO ]  Reading [3881, 4178]
2022-08-24 23:31:48,741 [eval_hooks()] [DEBUG]  Evaluating hooks
2022-08-24 23:31:48,742 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.5
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 1.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 1.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.5
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 1.5
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Core id util 0.0
2022-08-24 23:31:48,743 [update()] [INFO ]  Utilization recorded [0.3, 0.0, 0.5, 1.0, 1.0, 0.5, 0.0, 1.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
2022-08-24 23:31:48,744 [update()] [DEBUG]  seconds passed 2.0698182582855225
2022-08-24 23:31:48,744 [update()] [DEBUG]  watts used 6.955357042760268
2022-08-24 23:31:48,744 [update()] [INFO ]  Joule_Used 14, seconds passed, 2
2022-08-24 23:31:48,744 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:48,744 [update()] [DEBUG]  seconds passed 2.0698182582855225
2022-08-24 23:31:48,744 [update()] [DEBUG]  watts used 3.4007739432304316
2022-08-24 23:31:48,744 [update()] [INFO ]  Joule_Used 7, seconds passed, 2
2022-08-24 23:31:48,744 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:48,744 [update()] [DEBUG]  seconds passed 2.0698182582855225
2022-08-24 23:31:48,744 [update()] [DEBUG]  watts used 0.3963203033485086
2022-08-24 23:31:48,744 [update()] [INFO ]  Joule_Used 0, seconds passed, 2
2022-08-24 23:31:48,744 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:48,744 [update()] [DEBUG]  seconds passed 2.0698182582855225
2022-08-24 23:31:48,744 [update()] [DEBUG]  watts used 0.8063224842660446
2022-08-24 23:31:48,744 [update()] [INFO ]  Joule_Used 1, seconds passed, 2
2022-08-24 23:31:48,744 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:48,744 [update()] [DEBUG]  seconds passed 2.0698182582855225
2022-08-24 23:31:48,744 [update()] [DEBUG]  watts used 2.2974471217289008
2022-08-24 23:31:48,744 [update()] [INFO ]  Joule_Used 4, seconds passed, 2
2022-08-24 23:31:48,744 [update()] [INFO ]  Power reading elapsed
2022-08-24 23:31:48,746 [update()] [INFO ]  Reading [51.0, 49.0, 50.0, 50.0, 49.0, 50.0, 49.0, 51.0, 49.0, 41.0, 46.85, 39.85, 39.85, 70.0]
2022-08-24 23:31:48,746 [update()] [INFO ]  Reading [2.6019374999999996, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 4.684, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3, 2.3]
2022-08-24 23:31:48,746 [update()] [INFO ]  Reading [0.3, 0.0, 0.5, 1.0, 1.0, 0.5, 0.0, 1.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
2022-08-24 23:31:48,747 [update()] [INFO ]  Reading [6.955357042760268, 3.4007739432304316, 0.3963203033485086, 0.8063224842660446, 2.2974471217289008]
2022-08-24 23:31:48,747 [update()] [INFO ]  Reading [3881, 4187]

Step 3: Reproduce the problem:

Steps to reproduce:

  1. Just open s-tui
ejgallego commented 1 year ago

Duplicate of #180