From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Perkins Subject: Re: wake event? Date: Thu, 11 Dec 2003 22:26:59 -0500 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <3FD93583.1000307@netspace.org> References: <3ACA40606221794F80A5670F0AF15F8401720C24@PDSMSX403.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3ACA40606221794F80A5670F0AF15F8401720C24-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: "Yu, Luming" Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Yu, Luming wrote: > Could you please give me some detail about your power management client? > Well, one is good old (bad old) battstat, which has been recently patched to use the acpid unix socket to receive battery and AC events, instead of polling once per second. This is a pretty big win on my machine, and an even bigger win on other machines. I also wrote a simple perl script to manage cpufreq transitions based on AC status, mostly for fun. If the laptop is unplugged while sleeping, the battstat applet is incorrect on waking, and my cpufreq daemon doesn't go to low power mode. I can't think of a way of dealing with this, other than polling, which is dumb and bad. I suppose this could be considered a userspace problem, but the current design seems to make this a little complicated, since acpid doesn't really know what its actions do. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/