From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] fancontrol with IT8705F
Date: Fri, 08 Dec 2006 19:52:09 +0000 [thread overview]
Message-ID: <20061208205209.cb80b161.khali@linux-fr.org> (raw)
In-Reply-To: <4576F2F4.9050200@gmx.de>
Tobias,
On Thu, 7 Dec 2006 14:10:47 +0100, Tobias Fritz wrote:
> Cool, this helps! If I set it to e.g. 3MHz it seems to change pretty smoothly
> over the whole range. I have to test this a little more but I don't know when
> I'll find time for it.
Great. So I created a patch which will let the user change the PWM
frequency through a device sysfs file. The patch is against 2.6.18 as
this is what the machine I had for testing was running. The it87 driver
was significantly modified since then so this patch will need to be
rewritten for 2.6.20, I'll do that later.
If you give a try to this patch, note that the frequency you control
through pwm1_freq is the real PWM base frequency, while the values I
gave you before were internal frequencies, which are 128 times greater.
In other words, if "3 MHz" was working for you, you'll need to write
23437 (3000000/128) to pwm1_freq.
> If I find a value that suits me, how can I set this permanently?
You can't, as the IT8705F chip will lose its settings on power-off and
most probably on reboot as well. So you'll have to make sure the
frequency is set again at boot time. Without the patch, this can be
done by calling isaset with the right parameters in one of your system
boot scripts. With the patch, echo the wanted frequency
to /sys/devices/platform/i2c-9191/9191-0290/pwm1_freq instead (make
sure the script is called after the it87 driver is loaded.)
--
Jean Delvare
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hwmon-it87-pwm-freq.patch
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20061208/b2353c17/attachment.pl
prev parent reply other threads:[~2006-12-08 19:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-06 16:42 [lm-sensors] fancontrol with IT8705F flabbergasted at gmx.de
2006-12-07 10:30 ` Jean Delvare
2006-12-07 12:49 ` Jean Delvare
2006-12-07 12:54 ` Tobias Fritz
2006-12-07 13:10 ` Tobias Fritz
2006-12-08 19:52 ` Jean Delvare [this message]
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=20061208205209.cb80b161.khali@linux-fr.org \
--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.