stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] CPU thermal zone (contrib/cpu.lisp)


From: Julian Stecklina
Subject: [STUMP] CPU thermal zone (contrib/cpu.lisp)
Date: Wed, 02 Jul 2008 00:05:13 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Hello,

since the default name of the CPU thermal zone, doesn't seem to work for
many people, I implemented a little "heuristic": Look in
/proc/acpi/thermal_zone and take the first file. This has the advantage
that loading contrib/cpu.lisp will not crash stumpwm, when
*acpi-thermal-zone* does not match reality. The worst thing that can
happen, is that it reports some other temperature.

Patch attached or available on branch personal at
http://cthulhu.c3d2.de/~blitz/git/stumpwm.git/

Regards,
-- 
Julian Stecklina

Well, take it from an old hand: the only reason it would be easier to
program in C is that you can't easily express complex problems in C,
so you don't. - Erik Naggum (in comp.lang.lisp)

(Spam-Experiment: http://cthulhu.c3d2.de/~astro/badpit.html )

Attachment: cpu.diff
Description: Diff of cpu/contrib.lisp

Attachment: pgpBfpr1BgFTT.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]