Re: [lm-sensors] Simple fan question

From: Jean Delvare
Date: Mon May 17 2010 - 04:14:17 EST


Hi Pavel,

On Mon, 17 May 2010 09:46:21 +0200, Pavel Machek wrote:
> Hi!
>
> > Right.
> >
> > Now, maybe the best option is to have instead:
> >
> > fan[1-*]_discrete_value
> > Discrete value
> > RW
> >
> > fan[1-*]_supported values
> > List of supported discrete values
> > RO
>
> Hmm, for 100 different values, that will get ugly. What about simple
> fan_max file with values 0..fan_max being valid?

If you have 100 different values, you can map them to the standard
0..255 range of pwm[1-*] files.

> IIRC thinkpads have 8-or-so possible discrete cases...

Correct. And even these would map nicely to the 0..255 range IMHO.

--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/