fancy-motd icon indicating copy to clipboard operation
fancy-motd copied to clipboard

feature request

Open alainlankers opened this issue 2 years ago • 4 comments

Hello, adding temperatures would be a nice feature!

alainlankers avatar Jul 14 '22 12:07 alainlankers

Hey @alainlankers! I finally got around to adding the module (https://github.com/bcyran/fancy-motd/commit/09dd6e574f1d5514a5223827d9965b8fc26a3813), it depends on lm-sensors. Check it out!

2022-08-07_13-26

bcyran avatar Aug 07 '22 11:08 bcyran

Thanks so much for the update! The module is showing up fine but it gives me no temperature. But I think this is due to my sensors. Not because of the module.

alainlankers avatar Aug 07 '22 15:08 alainlankers

What's the output of sensors? I believe you have to run sensors-detect after installing lm-sensors for the first time.

bcyran avatar Aug 07 '22 16:08 bcyran

This is the output of sensors: iwlwifi_1-virtual-0 Adapter: Virtual device temp1: +38.0°C

amdgpu-pci-2f00 Adapter: PCI adapter vddgfx: 6.00 mV fan1: 0 RPM (min = 0 RPM, max = 3300 RPM) edge: +36.0°C (crit = +110.0°C, hyst = -273.1°C) (emerg = +115.0°C) junction: +36.0°C (crit = +105.0°C, hyst = -273.1°C) (emerg = +110.0°C) mem: +0.0°C (crit = +105.0°C, hyst = -273.1°C) (emerg = +110.0°C) power1: 4.00 W (cap = 135.00 W)

k10temp-pci-00c3 Adapter: PCI adapter Tctl: +44.9°C
Tdie: +44.9°C
Tccd1: +34.5°C

alainlankers avatar Aug 07 '22 20:08 alainlankers

Thanks so much for the update! The module is showing up fine but it gives me no temperature. But I think this is due to my sensors. Not because of the module.

I'm having the same problem in an AMD Ryzen 5 1600 system.

Uptime:        1 week, 19 hours, 38 minutes
Load average:  0.01, 0.06, 0.07
Temperatures:  °C
$ sensors
k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +31.2°C
Tdie:         +31.2°C

The code here https://github.com/bcyran/fancy-motd/commit/09dd6e574f1d5514a5223827d9965b8fc26a3813#diff-edaeac0131f37fbe32fd582bac9fa5c631dcfbeacc7a313217491c6c674be61cR6 seems to only work with Intel because they indeed have the Core X: prefix. Here is an example from an Intel i5-8500T:

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +35.0°C  (high = +94.0°C, crit = +100.0°C)
Core 0:        +35.0°C  (high = +94.0°C, crit = +100.0°C)
Core 1:        +35.0°C  (high = +94.0°C, crit = +100.0°C)
Core 2:        +35.0°C  (high = +94.0°C, crit = +100.0°C)
Core 3:        +34.0°C  (high = +94.0°C, crit = +100.0°C)
Core 4:        +34.0°C  (high = +94.0°C, crit = +100.0°C)
Core 5:        +34.0°C  (high = +94.0°C, crit = +100.0°C)

TCB13 avatar Aug 31 '23 13:08 TCB13

Should be fixed by e3d3dff71630c38fb117ddac05155d7984d8d4c9

bcyran avatar Jan 07 '24 14:01 bcyran