Re: [suspend/resume] Re: userspace notification from module

From: Rafael J. Wysocki
Date: Sat Jan 16 2010 - 17:21:33 EST

On Saturday 16 January 2010, Pavel Machek wrote:
> Hi!
> > > Agreed, but so what? On PC, machine would power off at that
> > > point. That would surprise the apps, too.
> > >
> > > Basically new enough userland should not make battery run low enough
> > > for either emergency power off or emergency suspend.
> >
> > I wonder how it is supposed to achieve that without knowing the current battery
> > status. Do you mean it should poll the battery driver?
> That's besides point, is it?

Well, mentioned that first. :-)

> Usual kernel<->user interfaces should apply here.

And we're talking about the design of these, aren't we? The notification about
the critical battery status sent to the user space is a part of the kernel-user
space interface too, after all.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at