inhibiting suspend via dbus
pgf at laptop.org
pgf at laptop.org
Mon Aug 11 12:38:18 EDT 2008
smith wrote:
> Deepak Saxena wrote:
> > On Aug 09 2008, at 19:35, Mikus Grinbergs was caught saying:
> >> One possibility -- OFW already tests for "is the XO plugged in?".
> >> Maybe Ohm can test for that, and decide that suspend is not needed
> >> when the battery is fully charged, and is not being drained.
> >
> > I don't think this would work for us as in some locations electrical
> > power is expensive and we want to conserve as much power as possible.
> >
>
> This was indeed the way ohm used to work but I argued against it because
> plugged up to external power in no way indicates you have a constant
> electrical source. Many cases that will be sharing a connection to a
> solar panel or from a battery bank and you need to be save as much as
> possible all the time.
this could still be selectable. while it's necessary to provide
for those scenarios, i suspect that most laptops will have
reliable external power. i'd think a "don't suspend when plugged
in" checkbox would be useful for most owners. (it could default
to "off".)
also, mikus' suggestion re: watching the rate of discharge is
interesting. i wonder if that might be a useful input to the OHM
policy engine? (e.g. decrease timeouts when the rate of discharge
is high) just an ill-formed thought.
paul
=---------------------
paul fox, pgf at laptop.org
More information about the Devel
mailing list