Re: SetPowerSave

2009-06-26 Thread Michael Terry
On Fri, 2009-06-26 at 14:44 +0100, Richard Hughes wrote: > Indeed, and other vendors hook into it, so it's probably bad form to > ignore it. I've committed functionality in > cad70317771fa6ce1f52af9d357165d47e971d7d to exercise this -- can you > please check and let me know it's okay. Thanks. Than

Re: SetPowerSave

2009-06-26 Thread Michael Terry
On Fri, 2009-06-12 at 08:08 -0400, Michael Terry wrote: > But one additional thing that pm-powersave does is allow applications to > hook into am-I-on-battery? events and run a script (by dropping them > in /usr/lib/pm-utils/power.d). Is there a replacement for such a > mechanism?

Re: SetPowerSave

2009-06-12 Thread Michael Terry
On Fri, 2009-06-12 at 08:08 -0400, Michael Terry wrote: > In all of Ubuntu, only three apps use the mechanism: > anacron (to not consume CPU when in battery mode) > distributed-net (to not consume CPU when in battery mode) > hdparm (to set disk APM modes) Oh, whoops, and laptop-mode

Re: SetPowerSave

2009-06-12 Thread Michael Terry
On Fri, 2009-06-12 at 09:52 +0100, Richard Hughes wrote: > > Is it just a feature that is yet to be written, or is the expectation > > that pm-powersave is not part of the dk-p stack? > > I think a lot of that functionality needs to be moved down into the > kernel, and connected up with pmqos so

SetPowerSave

2009-06-11 Thread Michael Terry
Hello, gentle DeviceKit developers! I'm looking at cleaning up some acpi scripts in Ubuntu Karmic, and I ran into an interesting issue. With HAL, there was a SetPowerSave dbus command to (basically) run pm-powersave. There doesn't *seem* to be a similar command for DeviceKit-power. pm-powersa