From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Van L Newsgroups: gmane.emacs.devel Subject: Re: graceful shutdown response to temperature climb Date: Thu, 14 Mar 2019 14:55:43 +1100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="28213"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (darwin) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 14 05:11:44 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4HiZ-0007F5-El for ged-emacs-devel@m.gmane.org; Thu, 14 Mar 2019 05:11:43 +0100 Original-Received: from localhost ([127.0.0.1]:56461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4HiY-0006hN-Ch for ged-emacs-devel@m.gmane.org; Thu, 14 Mar 2019 00:11:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4HiO-0006WZ-Ei for emacs-devel@gnu.org; Thu, 14 Mar 2019 00:11:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4HTK-0003kQ-OJ for emacs-devel@gnu.org; Wed, 13 Mar 2019 23:55:59 -0400 Original-Received: from [195.159.176.226] (port=49264 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4HTK-0003ir-H2 for emacs-devel@gnu.org; Wed, 13 Mar 2019 23:55:58 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h4HTH-000x1t-FC for emacs-devel@gnu.org; Thu, 14 Mar 2019 04:55:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:0KBqpjheTOhjs3Ong9RXiyppsTM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234138 Archived-At: Ahmed Khanzada writes: > Love the Joni Mitchell quote, and her music. Me too. What an artist. She paints to recharge her creativity batteries for music, as a farmer does by letting the land lie fallow. > I am interested in helping all things BSD in Emacs. Do you think the > best way to duplicate your error is to create a scenario like yours? On NetBSD-8 stable /usr/sbin/envstat lists -- quote Current CritMax WarnMax WarnMin CritMin Unit temperature: 73.000 127.000 degC cpu0/cpu1 temperature: 72.000 97.000 degC cpu0 temperature: 73.000 degC cpu1 temperature: 72.000 degC temperature 0: 72.000 degC temperature 1: 47.000 degC temperature 3: 69.000 degC fan speed 0: 3984 RPM -- quote ends … perhaps what is needed is to track the temperature changes and to set customizable thresholds allowing time enough to call shutdown gracefully. > I'm also confused on a detail: did elisp or the OS trigger a shutdown > when a certain temperature was reached? I'd say the OS. The kernel build config lets you set the wait interval before actual poweroff IIRC. But I don't think that interval allows the file system to sort itself out to avoid corrupting and breaking the machine. -- © 2019 Van L gpg using EEF2 37E9 3840 0D5D 9183 251E 9830 384E 9683 B835 "What's so strange when you know that you're a Wizard at 3?" -Joni Mitchell