.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "STATE_SHOW" "" "06 October 2005" "" "" .SH NAME state_show \- control system power state. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp ssize_t state_show (struct subsystem * \fIsubsys\fB, char * \fIbuf\fB); \fR .SH "ARGUMENTS" .TP \fB\fIsubsys\fB\fR -- undescribed -- .TP \fB\fIbuf\fB\fR -- undescribed -- .SH "DESCRIPTION" .PP .PP \fBshow\fR returns what states are supported, which is hard-coded to 'standby' (Power-On Suspend), 'mem' (Suspend-to-RAM), and 'disk' (Suspend-to-Disk). .PP \fBstore\fR accepts one of those strings, translates it into the proper enumerated value, and initiates a suspend transition.