From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] fancontrol EeePC,
Date: Sun, 25 Apr 2010 11:21:21 +0000 [thread overview]
Message-ID: <20100425132121.248464b3@hyperion.delvare> (raw)
In-Reply-To: <p2r64d6c631004250035lca8a4234o4787745b623460bb@mail.gmail.com>
Hi Mildred,
On Sun, 25 Apr 2010 09:35:58 +0200, Mildred Ki'Lya wrote:
> Hi,
>
> I am using fancontrol for my new EeePC, and when fancontrol exit (when I
> reboot for example) the fans are set to manual mode at full speed.
>
> Aparently, the source code of fancontrol first tries to set the fan to safe
> mode, and if it doesn't work, set it to manual at full speed. Apparently,
> the EeePC safe mode is the same as automatic mode. So when we write "0" to
> pwm1_enable, if we read it again, we'll see "2".
This is a bug in the eeepc driver. If it doesn't support mode 0, it
should return -EINVAL when one tries to set it.
> I could find information about EeePC fan control here:
> https://patchwork.kernel.org/patch/64435/
>
> To enable automatic mode at exit, I changed fancontrol with the following
> patch:
>
>
> --- /tmp/fancontrol 2010-04-25 09:31:58.394184626 +0200
> +++ /usr/sbin/fancontrol 2010-04-25 09:21:24.161183983 +0200
> @@ -318,7 +318,7 @@
>
> # Try pwmN_enable=0
> echo 0 > $ENABLE 2> /dev/null
> - if [ `cat $ENABLE` -eq 0 ]
> + if [ `cat $ENABLE` -ne 1 ]
> then
> # Success
> return 0
>
>
> Do you think this change is worth including it for the next version of
> lm-sensors ?
No. What needs to be fixed is the eeepc driver. We don't want to add
random quirks to user-space applications to work around kernel driver
bugs.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2010-04-25 11:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-25 7:35 [lm-sensors] fancontrol EeePC, Mildred Ki'Lya
2010-04-25 11:21 ` Jean Delvare [this message]
2010-04-25 14:55 ` Mildred Ki'Lya
2010-04-25 17:02 ` 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=20100425132121.248464b3@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.