Management of Thermal

Norberto Meijome freebsd at meijome.net
Mon Oct 15 19:12:21 PDT 2007


On Sun, 14 Oct 2007 09:27:19 +0200
Richard Arends <richard at unixguru.nl> wrote:

> On Sun, Oct 14, 2007 at 05:10:53PM +1000, Norberto Meijome wrote:
> 
> Norbert,
> 
> > thanks Richard, when I have some time i'll read over it to try to understand what it's doing in the system itself. 
> 
> In short, is sets the fan in manual mode and reads every 5 seconds the cpu temp. Till 72
> degrees it set's the fan level from 0 to 7 and above the 72 degrees it scales the CPU
> down.
> 
> > What version of FBSD are you running this on ? 
> 
> On current (7) and stable (6.2).
> 

Thanks Richard,
I checked the code in more detail. Unfortunately, the fan_level sysctl is NOT present in my system, which sucks, because i'm getting quite frustrated with this issue, specially because i havent got the time now to start digging in the archives...i will have to make the time it seems....where's that time-making-machine i had?  :) 
I will follow up in -acpi@ too i think

What I have :

$ sysctl dev.acpi_ibm
dev.acpi_ibm.0.%desc: IBM ThinkPad ACPI Extras
dev.acpi_ibm.0.%driver: acpi_ibm
dev.acpi_ibm.0.%location: handle=\_SB_.PCI0.LPC_.EC__.HKEY
dev.acpi_ibm.0.%pnpinfo: _HID=IBM0068 _UID=0
dev.acpi_ibm.0.%parent: acpi0
dev.acpi_ibm.0.initialmask: 2060
dev.acpi_ibm.0.availmask: 16777215
dev.acpi_ibm.0.events: 1
dev.acpi_ibm.0.eventmask: 16777215
dev.acpi_ibm.0.hotkey: 3382
dev.acpi_ibm.0.lcd_brightness: 0
dev.acpi_ibm.0.volume: 10
dev.acpi_ibm.0.mute: 0
dev.acpi_ibm.0.thinklight: 0
dev.acpi_ibm.0.bluetooth: 1
dev.acpi_ibm.0.wlan: 1
dev.acpi_ibm.0.fan_speed: 3216
dev.acpi_ibm.0.fan: 1
dev.acpi_ibm.0.thermal: 95 66 44 92 50 -1 41 -1

$ sysctl dev.cpu  
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU_
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 2000
dev.cpu.0.freq_levels: 2000/27000 1750/23625 1600/22600 1400/19775 1333/19666 1166/17207 1066/16733 932/14641 800/13800 700/12075 600/10350 500/8625 400/6900 300/5175 200/3450 100/1725
dev.cpu.0.cx_supported: C1/1 C2/1 C3/85
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% 0.00%

I have a feeling I can tune the cx_* better.... but I haven't got my head around it.

Thanks for the detail about your config. I'm now using the hw.pci.do_power_nodriver="2" (by hand for now). Details of what it does can be found in sys/dev/pci/pci.c

Thanks again to you and everyone... any more info / ideas are always welcomed!
Beto
_________________________
{Beto|Norberto|Numard} Meijome

If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.


More information about the freebsd-mobile mailing list