How to: Get CPU temp
-
@RedRep: u da man !!
This code needs to be incorporated in the future 2.0 snapshots. Who can make it happen?
If there is a function defined to do the following..
- auto check if mobo supports temp monitor
- If yes.. execute the coretemp.ko functions, make it to auto load on boot and display the temp in (degree) C for all cores on the dash
- If not.. hide the Temperature field from the dash.
-
GREAT POST!
Followed the steps showed in the post.
However I ran into a small issue.
I am on 2.0-RC3 (i386) built on Fri Aug 5 12:14:15 EDT 2011I downloaded the i386 coretemp.ko.txt from the post here, removed the txt extension.
Copied the file (coretemp.ko) to /boot/kernel/
Made sure the rights were set to 555
Ran the command kldload coretemp and got this error:Fatal trap 12: page fault while in kernel mode
Cupid = 0; apci id = 00
Fault virtual address = 0x3afaf300
Fault code = supervisor write, page not present
Instruction pointer = 0x20:0xc70dcf13
Stack pointer = 0x28:0xeed30988
Frame pointer = 0x28:0xeed309b0
Code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, press 1, def32 1, gran 1
Processor eflags = interrupt enabled, resume IOPL = 0
Current process = 25901 (kldload) -
Does anyone else have this issue? Someone mind hosting two 8kb kernel extensions?
-
You can try from here: http://ptt.4mg.com/pfSense/
-
The problem could be that the kernel modules attached to a post in this thread used the .txt extension.
For some reason this causes a problem when they are downloaded corrupting the file.
If you attach binaries with the .png extension this won't happen.Steve
-
@ptt:
You can try from here: http://ptt.4mg.com/pfSense/
Hi ptt - thanks - but when I try to download fro the link then this:
Forbidden
Host:
You do not have permission to access this page or file
The extension 7z is currently not supported by FreeServers.
If you think there is an error or you wish to have the extension 7z added to the mime definitions, please take the time to notify customer support.
Thank you for using FreeServers.Steen
-
The problem could be that the kernel modules attached to a post in this thread used the .txt extension.
For some reason this causes a problem when they are downloaded corrupting the file.
If you attach binaries with the .png extension this won't happen.Steve
Thanks Steve, where from can I then get the file?
Cheers Steen -
Here is the coretemp.ko file from FreeBSD 8.1 release (386).
Remove the .png extension. The file should be 8054 bytes.Steve
-
Greatly sorry, changed to zip, now is OK ( http://ptt.4mg.com/pfSense/ )
You have:
coretemp32.zip–> inside amdtemp.ko & coretemp.ko ( FreeBSD-8.1-RELEASE-i386 )
coretemp64.zip--> inside amdtemp.ko & coretemp.ko ( FreeBSD-8.1-RELEASE-amd64 )
-
Here is the coretemp.ko file from FreeBSD 8.1 release (386).
Remove the .png extension. The file should be 8054 bytes.Steve
Hi Steve!
BINGO!
IT WORKS!
Thanks so much!
Steen -
@ptt:
Greatly sorry, changed to zip, now is OK ( http://ptt.4mg.com/pfSense/ )
You have:
coretemp32.zip–> inside amdtemp.ko & coretemp.ko
coretemp64.zip--> inside amdtemp.ko & coretemp.ko
Hello ptt!
Many thanks!
As per other post it now works for me!
Steen -
OK, as attached shows dashboard now shows my CPU temp. ;D ;)
Thanks to everyone here!
Steen![Screenshot pfSense Dashboard w Temp.jpg](/public/imported_attachments/1/Screenshot pfSense Dashboard w Temp.jpg)
![Screenshot pfSense Dashboard w Temp.jpg_thumb](/public/imported_attachments/1/Screenshot pfSense Dashboard w Temp.jpg_thumb) -
@ptt:
Greatly sorry, changed to zip, now is OK ( http://ptt.4mg.com/pfSense/ )
You have:
coretemp32.zip–> inside amdtemp.ko & coretemp.ko ( FreeBSD-8.1-RELEASE-i386 )
coretemp64.zip--> inside amdtemp.ko & coretemp.ko ( FreeBSD-8.1-RELEASE-amd64 )
Thank you for hosting them :)
-
Hi Guys,
I'm still trying to make the coretemp module working but it seems I'm doing something wrong because it still doesn't work :'(.
I extracted the coretemp.ko from the FreeBSD 8.1 distribution iso and put it to /boot/kernel through a SCP connection authenticated as root.
run the kldload command and tried the command sysctl -a | grep temperature but it returns nothing.I had no error when typing "kldload coretemp" so it should works !!!
My pfsense box is a Watchguard Firebox X700 hardware which runs on Intel Celeron 1200MHz.
This CPU should be supported by coretemp no ?Please Help me.
Thanks in advance for your support.
-
Hi Guys,
I'm still trying to make the coretemp module working but it seems I'm doing something wrong because it still doesn't work :'(.
I extracted the coretemp.ko from the FreeBSD 8.1 distribution iso and put it to /boot/kernel through a SCP connection authenticated as root.
run the kldload command and tried the command sysctl -a | grep temperature but it returns nothing.I had no error when typing "kldload coretemp" so it should works !!!
My pfsense box is a Watchguard Firebox X700 hardware which runs on Intel Celeron 1200MHz.
This CPU should be supported by coretemp no ?Please Help me.
Thanks in advance for your support.
Try with the core temp file Steve posted here - I used that one and it worked.
Steen -
If you are using SCP to transfer the file.. ensure that you transfer the file in binary format. I had similar issue with WinSCP.
-
My pfsense box is a Watchguard Firebox X700 hardware which runs on Intel Celeron 1200MHz.
This CPU should be supported by coretemp no ?The coretemp driver only supports Intel Core cpus and newer. ;)
You have to use mbmon for older hardware such as the X700, which is Pentium 3 age.
Steve
-
Awesome …
I have to try this on my own box
thanks
-
If you are using SCP to transfer the file.. ensure that you transfer the file in binary format. I had similar issue with WinSCP.
With the file from Steve I had no issue even when using WinSCP…
Steen -
Anyone had success to get all 4 temperatures to be shown in the dashboard?
That would really be neat.
Also, will an snapshot update break everything?Steen