public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Perkins <bperkins-ooduxAEi7gVg9hUCZPvPmw@public.gmane.org>
To: "Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: wake event?
Date: Thu, 11 Dec 2003 22:26:59 -0500	[thread overview]
Message-ID: <3FD93583.1000307@netspace.org> (raw)
In-Reply-To: <3ACA40606221794F80A5670F0AF15F8401720C24-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.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/

  parent reply	other threads:[~2003-12-12  3:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-12  3:01 wake event? Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720C24-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2003-12-12  3:26   ` Brian Perkins [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-16  9:30 Yu, Luming
2003-12-12  2:18 Brian Perkins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FD93583.1000307@netspace.org \
    --to=bperkins-ooduxaei7gvg9huczpvpmw@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox