Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Temperature Widget

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    95 Posts 15 Posters 44.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kalu
      last edited by

      Temperature widget is not available (or not supported) on our nano bsd alix boards..
      :(

      i love pfsense because i love open source.

      1 Reply Last reply Reply Quote 0
      • rcfaR
        rcfa
        last edited by

        @kalu:

        Temperature widget is not available (or not supported) on our nano bsd alix boards..
        :(

        What kind of CPUs do these have? If the CPU doesn't have built-in sensors (like e.g. the intel Core CPUs or the intel Atom CPUs), or the motherboard doesn't have a temperature sensor that's somehow published (e.g. ACPI), then it's got to be a no-go.

        1 Reply Last reply Reply Quote 0
        • G
          gerdesj
          last edited by

          @rcfa:

          @kalu:

          Temperature widget is not available (or not supported) on our nano bsd alix boards..
          :(

          What kind of CPUs do these have? If the CPU doesn't have built-in sensors (like e.g. the intel Core CPUs or the intel Atom CPUs), or the motherboard doesn't have a temperature sensor that's somehow published (e.g. ACPI), then it's got to be a no-go.

          Mine (PC Engines thing) shows this in dmesg:

          CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class CPU)
           Origin = "AuthenticAMD"  Id = 0x5a2  Family = 5  Model = a  Stepping = 2
           Features=0x88a93d <fpu,de,pse,tsc,msr,cx8,sep,pge,cmov,clflush,mmx>AMD Features=0xc0400000 <mmx+,3dnow!+,3dnow!>… and this further down which probably doesn't help:

          ACPI Error: A valid RSDP was not found (20101013/tbxfroot-309)
          ACPI: Table initialisation failed: AE_NOT_FOUND
          ACPI: Try disabling either ACPI or apic support.

          Cheers
          Jon</mmx+,3dnow!+,3dnow!></fpu,de,pse,tsc,msr,cx8,sep,pge,cmov,clflush,mmx>

          1 Reply Last reply Reply Quote 0
          • rcfaR
            rcfa
            last edited by

            Not sure if the GEODE chips have built-in temp sensors but if so, you'd likely have to install the amdtemp.ko module analog to us intel guys having to install the coretemp.ko module.

            http://www.freebsd.org/cgi/man.cgi?query=amdtemp&apropos=0&sektion=0&manpath=FreeBSD+9.0-RELEASE&arch=default&format=html

            1 Reply Last reply Reply Quote 0
            • M
              m4f1050
              last edited by

              @rcfa:

              OK, finally got the coretemp.ko installed, etc. and now have a temperature reading of a cool 35C

              Was a little bit involved, because OS X doesn't grok BSD's file system, so I ended up doing a memory stick, mounting it on the pfSense box, and then copied it with an slogin over to where it needs to go.

              The config file I ended up editing with the Web GUI, because I couldn't remember the name of the non-vi editor installed on pfSense, it's not nano or pico, and of course not emacs (which I usually would use)
              Why the heck keep I forgetting the name?  ???

              Anyway, things are working. Now it's going to be interesting to see what get's stomped over with the next upgrade that I'm just running….

              I enabled SSH on pfSense and I connect from both Win7 and OS X.  What I do on OS X is open a terminal shell and type "ssh 192.168.0.1 -l admin" it will then ask me for a password.  On Win7 I use putty.  After that when I get to the menu on pfSense I select option 8, and on pfSense's shell I ftp to my machine and transfer files that way.  I also use nano  "pkg_add -r nano"

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by

                …finally back on hsdpa :)

                I think we agree that we have different installations all over the world.
                And so we have special needs to handle. One might need to use a coretemp module (or acpi or mbmon) , on another system it crashes.

                We cant force everyone to acpi or coretemp. We need to support the freedom for everyone, to use what he needs to as long as this doesnt hit the freedom of another one.

                For this reason, the current plan for the widget is to support mbmon, acpi and coretemp
                and to implement a config screen for us users, so we can select the sensors we need.

                1 Reply Last reply Reply Quote 0
                • rcfaR
                  rcfa
                  last edited by

                  @ThorstenK:

                  For this reason, the current plan for the widget is to support mbmon, acpi and coretemp
                  and to implement a config screen for us users, so we can select the sensors we need.

                  Not like I care, but what about amdtemp.ko ?

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest
                    last edited by

                    lets see "coretemp" as a symbol for Processor specific modules.
                    Its not about the name, its about the freedom of the admin to install what he needs to support special requirements.

                    1 Reply Last reply Reply Quote 0
                    • rcfaR
                      rcfa
                      last edited by

                      @ThorstenK:

                      lets see "coretemp" as a symbol for Processor specific modules.
                      Its not about the name, its about the freedom of the admin to install what he needs to support special requirements.

                      OK :)

                      On a different note: still have trouble believing that my tiny D510 Atom CPU truly runs at 31-34C, when I have an ambient temperature in the 24C range, and Tmax. is at 100C, and the CPU has only passive cooling. If it were ambient temperature inside the computer case that's 10C above outside ambient temp, I'd buy that. But in the CPU core?
                      Did someone mention this needs to be multiplied by the number of cores? That would be much more like it: 62-68C would be a temperature that's well below the Tmax, but in a range that would seem more believable. Or did technology really get that good?  :-\  ::)  ???  :o

                      1 Reply Last reply Reply Quote 0
                      • ?
                        Guest
                        last edited by

                        Interesting - according to the thermal guide at intel.com the value depends on the quality of the external temp sensor on the motherboard.
                        and that some offset  should be applied on top of this value. Oh, nice - it will pause and resume itself automatically, when a critical temperature is reached.

                        Personally, i think that most cpu temperature problems are a result of to much overclocking / feeding to much voltage / not supplying an aprrociate fan. The atom series is quite efficient so it seems that your cpu is healthy :=)

                        (Which i should take as an example and finally quit smoking cigarettes….)

                        1 Reply Last reply Reply Quote 0
                        • J
                          joe_cowboy
                          last edited by

                          Has anybody added these updates to github for merge?  I will admit I am the one that enabled the temp in the system widget when fixing issues when pfsense 2.1 was released for testing.  Part of the code was there, just disabled but I enabled it for a friend of mine.  Let me know if you want your code to be posted on github to see if I can get it merged with 2.1 updates.

                          Here is where I talk about the Temp add on…
                          http://forum.pfsense.org/index.php/topic,44183.msg232657.html#msg232657

                          For some reason I can't get my VIA chipset to display any temperature OID info. HP/NEOWare thin client box.  I think it's a BIOS issue.

                          -Joe Cowboy

                          1 Reply Last reply Reply Quote 0
                          • rcfaR
                            rcfa
                            last edited by

                            @joe_cowboy:

                            Let me know if you want your code to be posted on github to see if I can get it merged with 2.1 updates.

                            For me the temperature stuff seems to work out of the box, provided the coretemp.ko is installed and loaded.
                            So having the temperature modules in /boot would be quite helpful, somewhere a toggle that enables/disables the loading of the module, if people think that just loading it by default is a bad idea.

                            1 Reply Last reply Reply Quote 0
                            • w0wW
                              w0w
                              last edited by

                              I have D2500CC Intel board (Intel(R) Atom(TM) CPU D2500 @ 1.86GHz )
                              My current snapshot is based on FreeBSD 8.1-RELEASE-p6. I've tried coretemp and mbmon with no luck, I can't see temperatures at all, any suggestions would be great!

                              1 Reply Last reply Reply Quote 0
                              • ?
                                Guest
                                last edited by

                                hoi - providing the different temperature modules in /boot would help greatly as systctl needs them.
                                joe Cowboy, do you plan to commit these ?

                                Edit: or does anyone know, if we want to compile them while building ? 
                                Another option is to let the User decide, as the author of mbmon says that permanently polling the io ports directly can affect system stability.

                                As for the patch - I nearly™ finished the widgets code today and test with a cat on a local file cause im using acpi which runs fine and stable for me.
                                I have some outstanding rl work in the next two days but if anyone's interested in testing i can post a patch by wednesday here.

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  @rcfa:

                                  On a different note: still have trouble believing that my tiny D510 Atom CPU truly runs at 31-34C

                                  The coretemp temperature is notoriously unreliable in absolute terms. The figure returned by the CPU is a number related to the difference between the current temperature and the TJmax, the maximum allowable junction temperature. Unfortunately TJmax varies between CPUs and most are not known. If you look through the output from coretemp you will probably see something like:
                                  TJmax unknown, assuming 100°C. The atom has a high TJmax as it's intended for laptops, thus the difference figure is larger and a lower absolute value is shown. (Edit: In fact is does seem to be 100°C for the D510 but get the idea!  ::))

                                  It's possible to tell it what TJmax should be to get a more accurate reading. However the biggest advantage to having this figure on the dashboard is so you can see relative temperature. When a blade falls off your fan you will see a rise!

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    Guest
                                    last edited by

                                    Hi all - i have a question regarding repetition and backward references in PCCRE - Maybe there are some skilled regexp fans out there…

                                    the following regexp works:

                                    
                                    preg_match("/^Temp.=\s(.*);.*/",$arr_mbmon_raw[0],$arr_mbmon); // substr sensor
                                    $arr_mbmon = preg_split("/[, ]+/",$arr_mbmon[1]); // get sensors
                                    ...
                                    
                                    

                                    I will leave it as is, cause its more readable - but does anyone now how to solve that just with a preg_match, backward refs and quantifiers in a scalable way ?

                                    q2 -> i think that we have to do a telnet on the mbmon provided port - since i doesnt have a machine wherer mbmon runs - could anyone that wants mbmon to run provide the output of a telnet to his mbmon port ?

                                    hanD - Tho

                                    1 Reply Last reply Reply Quote 0
                                    • jimpJ
                                      jimp Rebel Alliance Developer Netgate
                                      last edited by

                                      FYI- coretemp and amdtemp are in the builds now. I'm not sure if there is a reliable way to detect support and auto-load the modules, if anyone has an idea, I'm open to suggestions. (And no, loading both all the time is not an option :-)

                                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                      Need help fast? Netgate Global Support!

                                      Do not Chat/PM for help!

                                      1 Reply Last reply Reply Quote 0
                                      • rcfaR
                                        rcfa
                                        last edited by

                                        @jimp:

                                        FYI- coretemp and amdtemp are in the builds now. I'm not sure if there is a reliable way to detect support and auto-load the modules, if anyone has an idea, I'm open to suggestions. (And no, loading both all the time is not an option :-)

                                        How about settings in the Advanced Setup Misc. tab that will add/remove the proper line to the boot config file?

                                        1 Reply Last reply Reply Quote 0
                                        • jimpJ
                                          jimp Rebel Alliance Developer Netgate
                                          last edited by

                                          Well manual setting is always an option, but automatic would be even better…

                                          :-)

                                          Otherwise, yes, a setting above/below powerd to select it would be possible. It would really be just about the same as the new code for crypto module I just committed.

                                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                          Need help fast? Netgate Global Support!

                                          Do not Chat/PM for help!

                                          1 Reply Last reply Reply Quote 0
                                          • W
                                            wallabybob
                                            last edited by

                                            @jimp:

                                            FYI- coretemp and amdtemp are in the builds now. I'm not sure if there is a reliable way to detect support and auto-load the modules, if anyone has an idea, I'm open to suggestions. (And no, loading both all the time is not an option :-)

                                            Various invocations of the CPUID instruction return a string identifying the CPU vendor, CPU features and instruction set options implemented. All this is reported in startup output though not in a concise form for easy parsing. On Linux the file /proc/cpuinfo reports this information in a cleanly structured way. Perhaps the FreeBSD proc filesystem does something similar.

                                            Alternatively, I expect a few hours trolling through the appropriate Intel Architecture Reference Manual (and maybe the equivalent AMD document) and a bit of C nous would result in a program to issue shell commands to load the appropriate kernel modules on systems with the appropriate features.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.