powerd to use sysctl to import temps to drop freq to avoid heat crash

Hajimu UMEMOTO ume at freebsd.org
Mon Jan 2 04:00:50 UTC 2012


Hi,

>>>>> On Mon, 02 Jan 2012 04:13:38 +0100
>>>>> "Julian H. Stacey" <jhs at berklix.com> said:

jhs> I propose to hack src/usr.sbin/powerd/powerd.c
jhs> 	To import temperatures via sysctl, & if too high, to forcibly
jhs> 	reduce CPU frequency, even if CPU load is high,
jhs> because my new HP Pavillion notebook keeps over heating & crashing.

jhs> dmesg & sysctl etc diagnostics at
jhs> 	http://berklix.com/~jhs/hardware/hp/pavilion/dm3-1155ea/
jhs> CPU: AMD Athlon(tm) Neo X2 Dual Core Processor L335 (1595.96-MHz K8-class CPU)
jhs>   Origin = "AuthenticAMD"  Id = 0x60fb2  Family = f  Model = 6b  Stepping = 2

jhs> Is this re-inventing the wheel ?  
jhs> Anyone else out there working on or know of similar code ?

Yes, it is implemented already in the kernel, and it should be done by
the ACPI passive cooling.
It seems to me that your ACPI BIOS has it, and when the temperature of
your CPU become over 90.0C, it will effect.

	hw.acpi.thermal.tz0.temperature: 67.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: 95.0C
	hw.acpi.thermal.tz0._CRT: 100.0C
	hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
	hw.acpi.thermal.tz0._TC1: 2
	hw.acpi.thermal.tz0._TC2: 3
	hw.acpi.thermal.tz0._TSP: 40

However, I'm not sure why your notebook keeps over heating & crashing.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the freebsd-mobile mailing list