![]() |
How to measure a CPU temperature on Linux OS |
Post Reply ![]() |
Author | ||
Yuh.K ![]() Newbie ![]() Joined: Yesterday Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() Posted: Yesterday at 1:49pm |
|
Hello. Currently, I'm using "B650 Steel Legend WiFi" with Ubuntu OS.
I'd like to measure a CPU temperature (per Core). So, installed "lm_sensors", and trying to execute "sensors" command. But it's failed to measure a CPU temperature. I guess that sensor modules for B650 are not installed, as a result, we cannot measure CPU temp. Does someone know what sensor module we should install to measure it on B650 with Linux OS ? Or Is there any way to measure a CPU temperature on B650 with Linux OS ? |
||
![]() |
||
M440 ![]() Senior Member ![]() Joined: 12 Jul 2023 Status: Offline Points: 3785 |
![]() ![]() ![]() ![]() ![]() |
|
for my board the nct6775 module need to be loaded
to load at boot up make a file in /etc/modules-load.d/ with content 'nct6775'
|
||
asrock b650m/hdv.m2, ryzen 7700x@85watt
|
||
![]() |
||
Yuh.K ![]() Newbie ![]() Joined: Yesterday Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
|
Thank you for your support.
As you mentioned, nct6775 is not loaded on my environment. I'm trying to load nct6775, but facing the problem of modprobe/make. So Currently, analyzing this matter. ========= # modprobe nct6775 modprobe: ERROR: could not insert 'nct6775': No such device # git clone https://github.com/killghost/nct6775 Cloning into 'nct6775'... remote: Enumerating objects: 281, done. remote: Total 281 (delta 0), reused 0 (delta 0), pack-reused 281 (from 1) Receiving objects: 100% (281/281), 150.95 KiB | 13.72 MiB/s, done. Resolving deltas: 100% (162/162), done. # # make CC [M] /etc/netplan/nct6775/nct6775.o In file included from /etc/netplan/nct6775/nct6775.c:61: /etc/netplan/nct6775/nct6775.c: In function 'store_in_reg': /etc/netplan/nct6775/compat.h:20:18: error: implicit declaration of function 'strict_strtoul' [-Werror=implicit-function-declaration] 20 | #define kstrtoul strict_strtoul | ^~~~~~~~~~~~~~ /etc/netplan/nct6775/nct6775.c:1514:12: note: in expansion of macro 'kstrtoul' 1514 | int err = kstrtoul(buf, 10, &val); | ^~~~~~~~ /etc/netplan/nct6775/nct6775.c: In function 'store_temp': /etc/netplan/nct6775/compat.h:17:17: error: implicit declaration of function 'strict_strtol' [-Werror=implicit-function-declaration] 17 | #define kstrtol strict_strtol | ^~~~~~~~~~~~~ /etc/netplan/nct6775/nct6775.c:1953:8: note: in expansion of macro 'kstrtol' 1953 | err = kstrtol(buf, 10, &val); | ^~~~~~~ /etc/netplan/nct6775/nct6775.c: In function 'pwm_update_registers': /etc/netplan/nct6775/nct6775.c:2277:3: warning: this statement may fall through [-Wimplicit-fallthrough=] 2277 | nct6775_write_value(data, data->REG_TARGET[nr], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2278 | data->target_temp[nr]); | ~~~~~~~~~~~~~~~~~~~~~~ /etc/netplan/nct6775/nct6775.c:2280:2: note: here 2280 | default: | ^~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:297: /etc/netplan/nct6775/nct6775.o] Error 1 make[1]: *** [Makefile:1910: /etc/netplan/nct6775] Error 2 make: *** [Makefile:29: modules] Error 2 # ======== |
||
![]() |
||
M440 ![]() Senior Member ![]() Joined: 12 Jul 2023 Status: Offline Points: 3785 |
![]() ![]() ![]() ![]() ![]() |
|
asrock b650m/hdv.m2, ryzen 7700x@85watt
|
||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |