libthinkpad  2.6
Static Public Member Functions | List of all members
ThinkPad::PowerManagement::PowerStateManager Class Reference

Class for hardware power management. More...

#include <libthinkpad.h>

Static Public Member Functions

static bool requestSuspend (SuspendReason reason)

Detailed Description

Class for hardware power management.

The power state manager is used to request power state changes to the system. You can request the system to suspend only currently.

Member Function Documentation

bool ThinkPad::PowerManagement::PowerStateManager::requestSuspend ( SuspendReason  reason)

Request a suspend of the system. You need to specify a suspend reason, whether it is the lid or the user pressing the button. This should be called in an ACPI event handler.

reasonthe reason for the suspend, lid or button
true if the suspend was successful

The documentation for this class was generated from the following files: