Date: Wed, 07 Dec 2005 00:34:00 +0100 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) To: Nate Lawson <nate@root.org> Cc: njl@freebsd.org, Fredrik Lindberg <fli+freebsd-current@shapeshifter.se>, Travis Mikalson <bofh@terranova.net>, current@freebsd.org Subject: Re: powerd Message-ID: <868xuxer6f.fsf@xps.des.no> In-Reply-To: <86d5k9eric.fsf@xps.des.no> (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav's?= message of "Wed, 07 Dec 2005 00:26:51 %2B0100") References: <43938F61.1050202@terranova.net> <4393F60E.2040106@shapeshifter.se> <86mzjflc97.fsf@xps.des.no> <439495B1.5060305@shapeshifter.se> <861x0qmuen.fsf@xps.des.no> <43956ADF.4050504@shapeshifter.se> <86slt6lb9s.fsf@xps.des.no> <4395A265.8080006@root.org> <86d5k9eric.fsf@xps.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
des@des.no (Dag-Erling Sm=F8rgrav) writes: > powerd is a mess, BTW. I've tried to fix the most blatant mistakes > (poor understanding of signal handling), but it basically needs a > rewrite. The signal handling code can probably be removed entirely. Its only purpose is to catch SIGINT / SIGTERM so powerd can print some stats before exiting, but said stats are meaningless because: a) they assume that the main loop runs once every poll_interval, when in fact the time between two successive iterations can range from microseconds (interrupted usleep() / select()) to hours or even days (suspended laptop). b) even assuming that a) does not apply and that ACPI provides accurate values, it still only reports power consumed by the CPU, not by peripherals or the LCD backlight. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868xuxer6f.fsf>