On Sat, Oct 18, 2008 at 11:34:57AM -0300, Henrique de Moraes Holschuh wrote: > Thanks to some official help, the driver will know when your thinkpad is > about to melt down or go out of juice, and will warn you accordingly through > syslog and an ACPI event (that HAL can trap and do something with). Mm. Register a generic thermal class device and then generate a uevent? It'd be nice to do this in a generic "something has just gone wrong" way, which we could then also do for critical notifications in ACPI thermal zones. > Again, thanks to that unnamed official help! I am still not sure what I can > do besides logging an alarm and issuing an ACPI event... and I really want > to do something, as it is doubtful there will be anyone around to listen to > the kernel cries if the machine woke up almost out-of-battery. We need decent infrastructure for exposing the reason for the wakeup - ACPI can also provide this under various circumstances, but right now we don't seem to do anything terribly useful with it. What will basically happen now is that the machine will wake up, userspace will (with luck) notice that the power is critical and either do a hibernation or clean shutdown. The wakeup event is bonus information. -- Matthew Garrett | mjg59@xxxxxxxxxxxxx ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel