Skip to main content
tags and names
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

I'm new here and to linuxUNIX 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.

I'm new here and to 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.

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.

added 8 characters in body
Source Link
terdon
  • 252.3k
  • 69
  • 480
  • 718

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)

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)``

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 %% )

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 advicesadvice that you might have for a newbie, is this script possible to be made?
Btw

Btw, I have tried PSensor but it doensntdoesn't show amdgpu module and RadeonTop dont show temps and VRAM.

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)

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 advices that you might have for a newbie, is this script possible to be made?
Btw I have tried PSensor but it doensnt show amdgpu module and RadeonTop dont show temps and VRAM

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)``
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.

formated with code style and added the entire sensors output
Source Link

I'm new here and to linux scripts, I need help to build a script that modifies the lm-sensors output.
When I use the command sensors I get information about my CPU and GPU, this is the GPU section:current output

  • amdgpu-pci-0100
  • Adapter: PCI adapter
  • vddgfx: +0.72 V
  • fan1: 1248 RPM (min = 0 RPM, max = 2400 RPM)
  • edge: +36.0°C (crit = +94.0°C, hyst = -273.1°C)
  • power1: 34.22 W (cap = 145.00 W)

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 %% )

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 advices that you might have for a newbie, is this script possible to be made?
Btw I have tried PSensor but it doensnt show amdgpu module and RadeonTop dont show temps and VRAM

I'm new here and to linux scripts, I need help to build a script that modifies the lm-sensors output.
When I use the command sensors I get information about my CPU and GPU, this is the GPU section:

  • amdgpu-pci-0100
  • Adapter: PCI adapter
  • vddgfx: +0.72 V
  • fan1: 1248 RPM (min = 0 RPM, max = 2400 RPM)
  • edge: +36.0°C (crit = +94.0°C, hyst = -273.1°C)
  • power1: 34.22 W (cap = 145.00 W)

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 advices that you might have for a newbie, is this script possible to be made?
Btw I have tried PSensor but it doensnt show amdgpu module and RadeonTop dont show temps and VRAM

I'm new here and to 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 advices that you might have for a newbie, is this script possible to be made?
Btw I have tried PSensor but it doensnt show amdgpu module and RadeonTop dont show temps and VRAM

Source Link
Loading