Power Management
Power Management — Shutdown, restart, sleep the system
|
|
Includes
#include <lightdm.h>
Description
Helper functions to perform power management operations.
Functions
lightdm_get_can_suspend ()
gboolean
lightdm_get_can_suspend (void
);
Checks if authorized to do a system suspend.
Returns
TRUE if can suspend the system
lightdm_suspend ()
gboolean
lightdm_suspend (GError **error
);
Triggers a system suspend.
Returns
TRUE if suspend initiated.
lightdm_get_can_hibernate ()
gboolean
lightdm_get_can_hibernate (void
);
Checks if is authorized to do a system hibernate.
Returns
TRUE if can hibernate the system
lightdm_hibernate ()
gboolean
lightdm_hibernate (GError **error
);
Triggers a system hibernate.
Returns
TRUE if hibernate initiated.
lightdm_get_can_restart ()
gboolean
lightdm_get_can_restart (void
);
Checks if is authorized to do a system restart.
Returns
TRUE if can restart the system
lightdm_restart ()
gboolean
lightdm_restart (GError **error
);
Triggers a system restart.
Returns
TRUE if restart initiated.
lightdm_get_can_shutdown ()
gboolean
lightdm_get_can_shutdown (void
);
Checks if is authorized to do a system shutdown.
Returns
TRUE if can shutdown the system
lightdm_shutdown ()
gboolean
lightdm_shutdown (GError **error
);
Triggers a system shutdown.
Returns
TRUE if shutdown initiated.