HorlogeSkynet / archey4

:computer: Maintained fork of the original Archey (Linux) system tool
https://git.io/archey4
GNU General Public License v3.0
291 stars 37 forks source link

Better temperature detection #45

Closed EntityCube closed 5 years ago

EntityCube commented 5 years ago

Temperature is not detected

Can you please fix this by adding more temperature detection methods or using lm-sensor

Is there any way to use grep and put it on there?

HorlogeSkynet commented 5 years ago

Hey, could you first paste here the result of the command below please ?

cat /sys/class/thermal/thermal_zone*/temp

Thanks 👋

EntityCube commented 5 years ago

zsh: no matches found: /sys/class/thermal/thermal_zone*/temp

I dont have any thermal_zone folder

/sys/class/thermal/ < - in this directory i have only 2 folders 'cooling_device1' and 'cooling_device2'

HorlogeSkynet commented 5 years ago

Well, that's interesting. Could you tell us (if you don't mind) what kind of hardware you got (for future release notes, when this will be fixed) ?

Anyway, if you manage to get something with the sensors command, I will rework this entry logic by making it use such an output.

Bye 👋

EntityCube commented 5 years ago

CPU: AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G GPU: AMD R5

HorlogeSkynet commented 5 years ago

And what about the Model entry ? 😮

EntityCube commented 5 years ago

And what about the Model entry ? open_mouth

Model: 80XV

EntityCube commented 5 years ago

I can get the temperature using this command sensors | grep -oP 'temp1:.*?+\K[0-9.]+' | head -1

is there anyway to output it to the result maybe like using a config

HorlogeSkynet commented 5 years ago

Thanks for your replies. About sensors, I think I'll implement something like this. It works well and allows an average computation easily. I'll keep you posted, bye 👋

HorlogeSkynet commented 5 years ago

Closing here, as #47 is now on going.