You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 

15 lines
518 B

To read the temperature under linux:
automatic:
1) install lm_sensors
2) run sensors-detect (always answer yes)
3) run sensors
manual:
1) go to /sys/class/hwmon/
2) read the files under ./hwmon{0..n}/name to
determine which device temperature we are reading
3) finally read the file ./hwmon{0..n}/temp{1..n}_input
to get the current temperaturie
Resources:
https://github.com/dylanaraps/neofetch/blob/master/neofetch
https://wiki.archlinux.org/index.php/Fan_speed_control#AMDGPU_sysfs_fan_control