amanusk / s-tui

Terminal-based CPU stress and monitoring utility

Home Page:https://amanusk.github.io/s-tui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong Top Freq when run as root

d-packs opened this issue · comments

Step 1: Describe your environment

  • s-tui version: 0.8.3
  • Installation method: package installed from official Arch Linux community repository
$ inxi -Fxxxz
System:    Host: nak Kernel: 5.4.6-2-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 Desktop: Xfce 4.14.1 tk: Gtk 3.24.12 
           info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: Micro-Star product: Prestige 15 A10SC v: REV:1.0 serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: Micro-Star model: MS-16S3 v: REV:1.0 serial: <filter> UEFI: American Megatrends v: E16S3IMS.108 
           date: 11/18/2019 
Battery:   ID-1: BAT1 charge: 77.6 Wh condition: 79.4/80.3 Wh (99%) volts: 17.1/15.2 model: MSI BIF0_9 type: Li-ion 
           serial: N/A status: Unknown 
           Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K270 serial: <filter> charge: 55% (should be ignored) 
           rechargeable: yes status: Discharging 
CPU:       Topology: 6-Core model: Intel Core i7-10710U bits: 64 type: MT MCP arch: N/A L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38415 
           Speed: 4693 MHz min/max: 400/4700 MHz Core speeds (MHz): 1: 4703 2: 4704 3: 4712 4: 4694 5: 4329 6: 4696 7: 4623 
           8: 4658 9: 4702 10: 4328 11: 4692 12: 4602 
Graphics:  Device-1: Intel vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:9bca 
           Device-2: NVIDIA vendor: Micro-Star MSI driver: nvidia v: 440.44 bus ID: 03:00.0 chip ID: 10de:1f91 
           Display: x11 server: X.Org 1.20.6 driver: modesetting resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics (Comet Lake 3x8 GT2) v: 4.6 Mesa 19.3.1 compat-v: 3.0 
           direct render: Yes 
Audio:     Device-1: Intel vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:02c8 
           Sound Server: ALSA v: k5.4.6-2-MANJARO 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: efa0 bus ID: 02:00.0 chip ID: 8086:2723 
           IF: wlp2s0 state: up mac: <filter> 
           Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus ID: 4-2.2:3 chip ID: 0bda:8153 
           serial: <filter> 
           IF: ens12u2u2 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 953.87 GiB used: 314.00 GiB (32.9%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN520 SDAPNUW-512G-1032 size: 476.94 GiB speed: 15.8 Gb/s 
           lanes: 2 serial: <filter> rev: 20140000 scheme: GPT 
           ID-2: /dev/nvme1n1 vendor: A-Data model: SX8200PNP size: 953.87 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: SS0411B scheme: GPT 
Partition: ID-1: / size: 197.49 GiB used: 24.20 GiB (12.3%) fs: ext4 dev: /dev/nvme1n1p2 
           ID-2: swap-1 size: 33.20 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme1n1p5 
Sensors:   System Temperatures: cpu: 51.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 305 Uptime: 2h 06m Memory: 15.48 GiB used: 4.08 GiB (26.4%) Init: systemd v: 242 Compilers: gcc: 9.2.0 
           Shell: bash v: 5.0.11 running in: xfce4-terminal inxi: 3.0.37 

Step 2: Describe the problem:

Observed Results:

The 'Top Frequency' is read wrong when run as root, causing the frequency graph to be cropped at the upper side where it is most interesting.
The screenshot shows two instances running concommitently on the same machine, the one on the left being called with command sudo s-tui -d and the one on the right with s-tui -d

s-tui

Step 3: Reproduce the problem:

Steps to reproduce:

  1. run s-tui with elevated privileges
  2. check Top Frequency

This should be fixed in version 1.0 or higher. Thanks for reporting.