mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: "Lars Noodén" <lars.nooden@gmail.com>,
	"Henrik Rydberg" <rydberg@euromail.se>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>
Subject: Re: [lm-sensors] Hardware running hot and without the fan
Date: Thu, 3 Nov 2011 09:55:28 -0700	[thread overview]
Message-ID: <1320339328.2309.78.camel@groeck-laptop> (raw)
In-Reply-To: <20111103174321.37274532@endymion.delvare>

On Thu, 2011-11-03 at 12:43 -0400, Jean Delvare wrote:
> On Thu, 3 Nov 2011 08:32:02 -0700, Guenter Roeck wrote:
> > On Thu, 2011-11-03 at 11:19 -0400, Lars Noodén wrote:
> > > I can set the fan speed manually.  e.g.:
> > > 
> > >  echo 3500 > /sys/class/hwmon/hwmon0/device/fan1_output
> > > 
> > > That helps some.
> > > 
> > If you can do that, you should be able to set up fancontrol to
> > automatically control fan speed based on system temperatures.
> 
> This won't work, as fancontrol wants pwmX attributes which the applesmc
> driver doesn't implement.
> 
Yes, you are right - it won't work without patching it to use
fanX_output and to accept larger values for the limits.

Wonder how this works for other Apple systems. Maybe there is an
Apple-specific script out there to control fan speed.

> > There is another sysfs attribute - fanX_manual. I don't find driver
> > documentation, so I have no idea what it is doing. The name indicates
> > that it might set manual vs. automatic fan control. What is it set to in
> > your system ? From the code, looks like it should be 0 or 1. Try to
> > toggle it and see what happens - after all, it can not get worse ;).
> 
> Might be worth looking at files fanX_min, _max and _safe too. Too bad
> there doesn't seem to be any documentation available for all these
> non-standard attributes :(
> 
Here is some info from the web about the problem. See
http://ubuntuforums.org/archive/index.php/t-981280.html.

So, for those that have reported high temperatures due to low fan
speeds: check the value of

cat /sys/devices/platform/applesmc.768/fan1_manual

With no software control of the fans, which is the case with the
macbooks (fancontrol and pwmconfig does not work), the fan speed seems
to be controlled automatically by the SMC without issues - but only if
fan1_manual is zero.

Guenter



  reply	other threads:[~2011-11-03 16:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02  9:42 Lars Noodén
2011-11-03  2:03 ` Guenter Roeck
2011-11-03  8:29   ` Lars Noodén
2011-11-03 13:49     ` Guenter Roeck
2011-11-03 14:25       ` Lars Noodén
2011-11-03 15:06         ` Guenter Roeck
2011-11-03 15:19           ` Lars Noodén
2011-11-03 15:32             ` Guenter Roeck
2011-11-03 16:43               ` [lm-sensors] " Jean Delvare
2011-11-03 16:55                 ` Guenter Roeck [this message]
2011-11-03 17:04                   ` Guenter Roeck
2011-11-04 10:46                   ` lars nooden
2011-11-03 17:46             ` Henrik Rydberg
2011-11-04 10:27               ` Lars Noodén
2011-11-07 17:18                 ` Matthew Garrett
2011-11-07 12:13               ` Lars Noodén
2011-11-03 16:38           ` [lm-sensors] " Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1320339328.2309.78.camel@groeck-laptop \
    --to=guenter.roeck@ericsson.com \
    --cc=khali@linux-fr.org \
    --cc=lars.nooden@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=rydberg@euromail.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®