Re: Allow userspace do something special on overtemp

Dax Kelson
2004-08-12T00:55:26Z

On Wed, 2004-08-11 at 02:53, Pavel Machek wrote:
> Hi!
>
> This patch cleans up thermal.c a bit, and adds possibility to react to
> critical overtemp: it tries to call /sbin/overtemp, and only if that
> fails calls /sbin/poweroff.
>
> Could it be applied?
> Pavel

Why invent Yet-Another-Call-To-Userland-Interface when either
hotplug/dbus, netlink or an ACPI event will do?

The argument "well what if hotplug of acpid don't know what to do" is,
IMO, bogus since:

* Obviously systems today are functioning
* Hardware will poweroff off on overheat anyway (not graceful, but will
save hardware components)
* Teaching hotplug/apcid isn't hard
* Policy should be kept out of the kernel if at all possible

Dax