From owner-freebsd-mobile@FreeBSD.ORG Mon Jan 2 04:00:50 2012 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93257106566B for ; Mon, 2 Jan 2012 04:00:50 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6E29B8FC08 for ; Mon, 2 Jan 2012 04:00:48 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga.mahoroba.org [IPv6:2001:2f0:104:8010:7258:12ff:fe22:d94b]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.14.5/8.14.5) with ESMTP/inet6 id q0240CVZ041572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Jan 2012 13:00:16 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 02 Jan 2012 13:00:11 +0900 Message-ID: From: Hajimu UMEMOTO To: "Julian H. Stacey" In-Reply-To: <201201020313.q023DdG2051231@fire.js.berklix.net> References: <201201020313.q023DdG2051231@fire.js.berklix.net> User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.3 (i386-portbld-freebsd9.0) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 9.0-PRERELEASE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Mon, 02 Jan 2012 13:00:20 +0900 (JST) X-Virus-Scanned: clamav-milter 0.97.3 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-4.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on asuka.mahoroba.org Cc: mav@freebsd.org, Gary Jennejohn , "Clive Ashbolt \(Work\)" , Boris Kochergin , mobile@freebsd.org, brucec@freebsd.org Subject: Re: powerd to use sysctl to import temps to drop freq to avoid heat crash X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2012 04:00:50 -0000 Hi, >>>>> On Mon, 02 Jan 2012 04:13:38 +0100 >>>>> "Julian H. Stacey" 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@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/