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

From: Pavel Machek
Date: Sat Jan 16 2010 - 17:15:17 EST


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

Usual kernel<->user interfaces should apply here. Zaurus provides
/proc/apm emulation, and I'm writing drivers/power/ driver. Not sure
it has event interface...
(cesky, pictures)
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