Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2007 12:12:14 +1000
From:      Norberto Meijome <freebsd@meijome.net>
To:        Richard Arends <richard@unixguru.nl>
Cc:        FreeBSD Mobile ML <freebsd-mobile@freebsd.org>
Subject:   Re: Management of Thermal
Message-ID:  <20071016121214.7dea128f@meijome.net>
In-Reply-To: <20071014072718.GK5484@shell.unixguru.nl>
References:  <20071008172756.2aed69e7@meijome.net> <20071008173604.1e449ca2@meijome.net> <20071008111601.kfrb6qt8isw4owc0@0x20.net> <20071008203558.022fd258@meijome.net> <20071008203733.3128f3b6@meijome.net> <20071008154116.0o3hvbyxggk400k0@0x20.net> <20071011110245.60c5cda5@meijome.net> <20071013211322.GJ5484@shell.unixguru.nl> <20071014171053.418dd40a@meijome.net> <20071014072718.GK5484@shell.unixguru.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 14 Oct 2007 09:27:19 +0200
Richard Arends <richard@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071016121214.7dea128f>