|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
sysctl and cpu information and temperature
Ive been goofing with torismo and conky and noticed while goofing around that my system doesnt like to show the cpu speed or temperature. I believe that conky uses sysctl to display the temp but it doesnt appear to be set up to display that. Im having a hard time finding information on how to set this up properly. Can anyone point me in the right direction?
|
|
||||
Well, at least on my laptop...
$ sysctl hw.acpi.thermal. will yield sysctl based data on my systems tempature, according to the hw.acpi.thermal.tz0.temperature sysctl is probably what you want, but refer to acpi_thermal(4) for details on them. The childern of dev.cpu.N will probably tell you what you want about the CPU, replace 'N' with the CPUs number, if you have one single core CPU, this is dev.cpu.0. You should be able to find the current (approximate, not exact) clock frequency of your cpu in Mhz through dev.cpu.N.freq, but refer to [fman=4]cpufreq[/url] for details.$ sysctl hw.acpi.thermal. dev.cpu. | $PAGER will probably tell you plenty.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
A list of conky-variables can be found here:
http://conky.sourceforge.net/variables.html In my .conkyrc I have: Code:
${color}CPU-temp ${color #ddaa00} ${acpitemp} |
|
|||
Quote:
Quote:
Quote:
$ sysctl hw.acpi.thermal. dev.cpu. | $PAGER it returns an error. Code:
# sysctl hw.acpi.thermal. dev.cpu. | $PAGER sysctl: unknown oid 'hw.acpi.thermal.' |
|
|||
Quote:
Code:
uname -a FreeBSD 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #2: Mon Aug 18 18:55:14 PDT 2008 /usr/obj/usr/src/sys/mykern i386 Code:
$ sysctl hw.acpi hw.acpi.supported_sleep_state: S1 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S1 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_lowest: C1 |
|
||||
Quote:
And here is my output from sysctl, which contains several more variables than yours: Code:
sverre % sysctl hw.acpi hw.acpi.supported_sleep_state: S1 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S1 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 44.0C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 90.0C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 100.0C hw.acpi.thermal.tz0._ACx: 85.0C -1 -1 -1 -1 -1 -1 -1 -1 -1 sverre % |
|
|||
Maybe my hardware info will be helpfull as well. The mother board is an MSI KT4 Ultra with a VIA KT400 chipset. Not sure if that has any bearing but it cant hurt.
|
|
|||
I have Intel E8400 CPU on Asus P5K-VM and no hw.acpi.thermal either.
Loading coretemp I get dev.cpu.0|1.temperature. On previous board I had a plain P4 and temperature showing in gkrellm automagically, don't know which sysctl was active then. Oh, this applies for 7.0 and also 7.1 BETA1. |
|
||||
At least in the example I gave, it came from an AMD/ATI based laptop.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Well, I am getting a little further although Im not sure that it helps me at all in displaying the cpu temperature in conky. I installed mbmon just to see if there was any chance of getting my cpu temp and here is what I got.
Code:
$ mbmon -d SMBus[VT8233/A/8235/8237(KT266/333/400/600/880)] found, but No HWM available on it!! Using ISA-IO access method!! * Winbond Chip W83697HF found. $ mbmon Temp.= 28.0, 44.0, 0.0; Rot.= 4927, 0, 0 Vcore = 1.68, 0.00; Volt. = 3.33, 4.92, 12.22, -11.96, -5.05 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
temperature readings | bogd | OpenBSD General | 2 | 1st January 2009 02:59 AM |
Various Groups -- Information | JMJ_coder | General software and network | 3 | 20th December 2008 04:35 AM |
Get sysctl value from a C program | DNAeon | FreeBSD Ports and Packages | 3 | 29th September 2008 07:28 PM |
Why does smartctl show my temperature threshold is 0? | PeterSteele | FreeBSD General | 0 | 25th August 2008 03:33 PM |
Problem with lid switch Inspiron 1300 sysctl: unknown oid 'hw.acpi.video.lcd0.active' | pax | FreeBSD General | 2 | 6th August 2008 11:49 AM |