Bug 429159 - Horizontal Bars: No scaling
Summary: Horizontal Bars: No scaling
Status: CONFIRMED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-15 15:49 UTC by Richard Llom
Modified: 2023-02-10 01:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (198.98 KB, image/png)
2020-11-17 00:48 UTC, Richard Llom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Llom 2020-11-15 15:49:02 UTC
When I choose horizontal bars as chart type, all data points/bars extend over the full length - independently from their actual value.
I guess that is not how it is supposed to work?
Comment 1 Nate Graham 2020-11-16 19:06:27 UTC
Can you please attach a screenshot?
Comment 2 Richard Llom 2020-11-17 00:48:21 UTC
Created attachment 133389 [details]
Screenshot

Sure.
Comment 3 Nate Graham 2020-11-17 00:50:58 UTC
Thanks.
Comment 4 Arjen Hiemstra 2020-11-17 10:22:52 UTC
This happens because the sensors you are using do not have a maximum value, so they have no way of knowing what they need to scale to. I actually do not know if lm_sensors even reports this. We are working on some new sensor setup that should fix this for certain sensors but others will still have this issue, since the data is either not available or there simply is no known proper maximum.
Comment 5 Richard Llom 2020-11-17 15:02:30 UTC
I see. FWIW below is my sensors output and there is only one reasonable "max" entry.
I guess the sanest/easiest approach would be to enable the data range option (like in line chart) and have the user configure the ranges.

$ sensors
nct6797-isa-0a20
Adapter: ISA adapter
Vcore:         1.22 V  (min =  +0.00 V, max =  +1.74 V)
in1:           1.01 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in2:           3.39 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in3:           3.38 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in4:           1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:         144.00 mV (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:         832.00 mV (min =  +0.00 V, max =  +0.00 V)  ALARM
in7:           3.39 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in8:           3.20 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in9:           1.85 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in11:        824.00 mV (min =  +0.00 V, max =  +0.00 V)  ALARM
in12:          1.15 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in13:        680.00 mV (min =  +0.00 V, max =  +0.00 V)  ALARM
in14:          1.53 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
FAN_CPU:        0 RPM  (min =    0 RPM)
FAN_IN:       463 RPM  (min =    0 RPM)
FAN_OUT:      453 RPM  (min =    0 RPM)
CS:           +32.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = CPU diode
CPU:          +36.0°C  (high = +115.0°C, hyst = +90.0°C)  sensor = thermistor
AUXTIN0:      +35.0°C  (high = +115.0°C, hyst = +90.0°C)  sensor = thermistor
AUXTIN2:      +35.5°C    sensor = thermistor
beep_enable: disabled

k10temp-pci-00c3
Adapter: PCI adapter
Vcore:         1.41 V  
Vsoc:          1.13 V  
Tctl:         +37.6°C  
Tdie:         +37.6°C  
Icore:        36.00 A  
Isoc:         10.25 A  

nvme-pci-2500
Adapter: PCI adapter
Composite:    +39.9°C  (low  = -273.1°C, high = +69.8°C)
                       (crit = +79.8°C)

amdgpu-pci-2600
Adapter: PCI adapter
vddgfx:      900.00 mV 
FAN_GPU:      616 RPM  (min = 1000 RPM, max = 4200 RPM)
GPU:          +34.0°C  (crit = +89.0°C, hyst = -273.1°C)
power1:       16.22 W  (cap = 150.00 W)

nvme-pci-0100
Adapter: PCI adapter
SSD:          +28.9°C  (low  = -273.1°C, high = +76.8°C)
                       (crit = +78.8°C)
Sensor 1:     +28.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +36.9°C  (low  = -273.1°C, high = +65261.8°C)
Comment 6 Neil 2023-02-10 01:34:47 UTC
Google has brought me here... I see the same and can confirm. My sensors have high and critical but no max, so I understand the conundrum. 

"We are working on some new sensor setup that should fix this for certain sensors"

For what it's worth *pie chart* allows for a manual data range. Could be a great addition to horizontal bars: let the user fix it!