Re: Fix up power managment in 2.6

Patrick Mochel
2003-09-04T14:55:37Z

> I'm not sure trying to suspect during boot is a good thing to do, either.
> Maybe that should wait and be enabled at user option at the end of boot.
> In any case, I think avoiding data damage is higher priority than
> efficiency, elegance, modularity, etc.
>
> Beyond that I'll let you guys fight it out, I'm just worried that the new
> pm is going to bite me even if I don't use suspend.

Your paranoia is understood, but completely unfounded. As Pavel said, we
do not support such a feature. When/if we do, only the mechanism for
detecting a low battery state and transitioning to a suspend sequence
would be in the kernel. The policy that stated what the watermark on the
battery charge was to do that would live in userspace, and set on boot
(long after the kernel was done booting). The default would obviously be
OFF until it was set by userspace.

Patches to implement this would be greatly appreciated.

Pat