I'm new here and to UNIX and Gnu/Linux scripts, I need help to build a script that modifies the lm-sensors output.
When I use the command
sensors this is the current output
mint@desktop:~$ sensors amdgpu-pci-0100 Adapter: PCI adapter vddgfx: +0.72 V fan1: 1245 RPM (min = 0 RPM, max = 2400 RPM) edge: +37.0°C (crit = +94.0°C, hyst = -273.1°C) power1: 34.26 W (cap = 145.00 W) coretemp-isa-0000 Adapter: ISA adapter Package id 0: +39.0°C (high = +85.0°C, crit = +105.0°C) Core 0: +36.0°C (high = +85.0°C, crit = +105.0°C) Core 1: +40.0°C (high = +85.0°C, crit = +105.0°C) Core 2: +35.0°C (high = +85.0°C, crit = +105.0°C) Core 3: +37.0°C (high = +85.0°C, crit = +105.0°C)
I'm coming from Windows and I used to have HWMonitor to see in real time stuff like usage and temps but it's hard to get this task on linux, my script idea is to make something that takes the sensors information and translates a friendly output to something like this:
amdgpu-pci-0100 Voltage: +0.72 V Fans Speed: 1248 RPM ( Percentage %% ) Temperature: +36.0°C ( Percentage %% ) Power: 34.22 W ( Percentage %% ) GPU Usage: Percentage %% VRAM Usage: 1GB / 8GB ( Percentage %% )
Can you help me? I'm not asking the full script just any advice that you might have for a newbie, is this script possible to be made?
Btw, I have tried PSensor but it doesn't show amdgpu module and RadeonTop dont show temps and VRAM.