<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Fan speed in idle at 40% with radeonsi and at 18% with catalyst"
href="https://bugs.freedesktop.org/show_bug.cgi?id=73338#c66">Comment # 66</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Fan speed in idle at 40% with radeonsi and at 18% with catalyst"
href="https://bugs.freedesktop.org/show_bug.cgi?id=73338">bug 73338</a>
from <span class="vcard"><a class="email" href="mailto:martin.peres@ensi-bourges.fr" title="Martin Peres <martin.peres@ensi-bourges.fr>"> <span class="fn">Martin Peres</span></a>
</span></b>
<pre>(In reply to Alex Deucher from <a href="show_bug.cgi?id=73338#c64">comment #64</a>)
<span class="quote">>
> As far as percent vs. rpm, I'm not sure which would be preferred. I think
> the hwmon subsystem generally prefers rpm. Maybe add callbacks for both
> percent and rpm and then check rdev->pm.fan_pulses_per_revolution. If it's
> 0, expose it as a percent. if not, expose as rpm. Thoughts? Might be
> worth asking on the hwmon mailing lists.</span >
No need to guess, everything is written here ;)
<a href="https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface">https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface</a>
pwm1 should expose the duty cycle and nothing else. If you also have a
tachometer, expose it with fan1_input :)
If you want to set the fan speed with RPM instead of the duty cycle, you'll
need to use fan1_target. You may wonder what should happen if you set both pwm1
and fan1_target. Well, I would think that the latest you set should take
precedence.
Please try to stick to the document I provided, for the sake of having a common
behaviour. I hope I helped a little on this ;)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>