public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* wake event?
@ 2003-12-12  2:18 Brian Perkins
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Perkins @ 2003-12-12  2:18 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I've started playing around with the acpid socket for writing power
management clients.

One deficiency that I've noticed is that events don't arrive while the 
machine is sleeping (not too surprising).  This means that things like 
ac status monitors will be incorrect if the ac status changes while we 
are sleeping.

It might be nice to deliver a wake event to /proc/acpi/event so clients
can know that they can update properly.

I thought about writing a patch to do this, but I had trouble deciding
what arguments ought to be given to acpi_bus_generate_event (device 
e.g.), and where it should be done.  Perhaps this is because this 
feature is somewhat outside the scope of what was originally intended 
the interface.

Any thoughts?

--
Brian Perkins				bperkins-5L9LcNmrgCtAfugRpC6u6w@public.gmane.org




-------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: wake event?
@ 2003-12-12  3:01 Yu, Luming
       [not found] ` <3ACA40606221794F80A5670F0AF15F8401720C24-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Yu, Luming @ 2003-12-12  3:01 UTC (permalink / raw)
  To: Brian Perkins, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>I've started playing around with the acpid socket for writing power
>management clients.

Could you please give me some detail about your power management client?

>One deficiency that I've noticed is that events don't arrive while the 
>machine is sleeping (not too surprising).  

Is it a reasonable requirement?  when sleeping, only wake up event should
be noticed.  If wake up event can not wake up machine, we need fix it!

--Luming



-------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: wake event?
       [not found] ` <3ACA40606221794F80A5670F0AF15F8401720C24-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2003-12-12  3:26   ` Brian Perkins
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Perkins @ 2003-12-12  3:26 UTC (permalink / raw)
  To: Yu, Luming; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: wake event?
@ 2003-12-16  9:30 Yu, Luming
  0 siblings, 0 replies; 4+ messages in thread
From: Yu, Luming @ 2003-12-16  9:30 UTC (permalink / raw)
  To: Brian Perkins; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>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.

After waking from sleeping, your applet should refresh its devices status information through /proc/acpi/ 
interfaces


-------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-16  9:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-12  2:18 wake event? Brian Perkins
  -- strict thread matches above, loose matches on Subject: below --
2003-12-12  3:01 Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720C24-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2003-12-12  3:26   ` Brian Perkins
2003-12-16  9:30 Yu, Luming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox