ppsm_sys_mode()

int ppsm_sys_mode( void *handle,
                   int mode );

This function sets the system-wide sleep mode. The arguments are:

handle
The handle returned by ppsm_init().
mode
The system mode (PPSM_SYSTEM_MODE_S3 or PPSM_SYSTEM_MODE_S5) that you want to set.

The ppsm_sys_mode() function returns -1 if an error occurred; if the function succeeds, it doesn't return.