Hey there, please help me how to solve this problem. I need to find my CPU temperature in C code on Linux for my new program. Can anyone tell me???
altic 0
Newbie Poster
Recommended Answers
Jump to PostReferring back several pages on the forum:
Jump to Post^ from that page:
on linux you would just grep sysctl for a block of info
$ sysctl -a |grep therm ...
or query for the specific variable
$ sysctl hw.acpi.thermal.tz0.temperature hw.acpi.thermal.tz0.temperature: 54.0C
All 6 Replies
MosaicFuneral 812
Nearly a Posting Virtuoso
jephthah 1,888
Posting Maven
mvmalderen
commented:
Good find! +7
altic 0
Newbie Poster
altic 0
Newbie Poster
jephthah 1,888
Posting Maven
nash_1 -3
Newbie Poster
deceptikon
commented:
4 year old thread -3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.