[ltp] ibm_acpi support in GkrellM
Stanislav Likavcan
linux-thinkpad@linux-thinkpad.org
Fri, 6 May 2005 14:54:39 +0200
--=_mixed 0046EB72C1256FF9_=
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<P>Thank you for a notice Tino. It should be corrected now,</P><P>Regards,<=
/P><P>Stano.</P><P> </P><P><FONT FACE=3D"Monospace,Courier">On Fri, Ma=
y 06, 2005 at 13:23:07 +0200, Stanislav Likavcan wrote:<BR>> Hi everyone=
,<BR>><BR>> I have just added a support of our favorite a widely used=
:-) ibm=5Facpi<BR>> kernel module into Sensors build panel of GkrellM. =
GkrellM now<BR>> supports temperature and fan speed reading and threshol=
d evaluating.<BR></FONT><BR><FONT FACE=3D"Monospace,Courier">The attached p=
atch is reversed. It sould work with patch -R.<BR></FONT><BR><FONT FACE=3D"=
Monospace,Courier">Regards,<BR>Tino<BR>--<BR>The linux-thinkpad mailing lis=
t home page is at:</FONT><BR><FONT FACE=3D"Monospace,Courier"><A HREF=3Dhtt=
p://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad>http://mailm=
an.linux-thinkpad.org/mailman/listinfo/linux-thinkpad</A></FONT></P>
--=_mixed 0046EB72C1256FF9_=
Content-Type: application/octet-stream; name="patch-linux.c"
Content-Disposition: attachment; filename="patch-linux.c"
Content-Transfer-Encoding: base64
LS0tIGdrcmVsbG0tMi4yLjUvc3JjL3N5c2RlcHMvbGludXguY19vcmlnCTIwMDUtMDMtMTYgMjE6
MTk6MzIuMDAwMDAwMDAwICswMTAwCisrKyBna3JlbGxtLTIuMi41L3NyYy9zeXNkZXBzL2xpbnV4
LmMJMjAwNS0wNS0wNSAxMzo0NzowMy4wMDAwMDAwMDAgKzAyMDAKQEAgLTE4ODMsNiArMTg4Mywx
OSBAQAogI2RlZmluZQlUSEVSTUFMX0lOVEVSRkFDRQkJCTEKICNkZWZpbmUJVEhFUk1BTF9aT05F
X0lOVEVSRkFDRQkJMgogI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