signalling suspend/resume events (deviceKit-power)
Richard Hughes
hughsient at gmail.com
Wed May 4 05:37:40 PDT 2011
On 24 March 2011 11:19, viswanadha rao palepu <vishy.palepu at 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.
More information about the devkit-devel
mailing list