On 24 March 2011 11:19, viswanadha rao palepu <vishy.pal...@gmail.com> wrote:
> I am a c programmer in liunux. I just want to know how the kernel signals
> the user level applications about suspend/hibernate.

The kernel just gets told to suspend by writing to a file in syfs.
This is done typically by pm-suspend. When the pm-suspend command
returns, the computer is resumed. In this way, upower emits a sleeping
signal shortly before calling pm-suspend, and also emits a resuming
signal when the command returns.

Richard.
_______________________________________________
devkit-devel mailing list
devkit-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/devkit-devel

Reply via email to