libthinkpad  2.6
https://github.com/libthinkpad
Classes | Typedefs | Enumerations
ThinkPad::PowerManagement Namespace Reference

The power management interfaces. Here you can find ACPI event handlers and power management state configurators and handlers. More...

Classes

struct  _ACPIEventMetadata
 Private internal API metada, do not use.
 
class  ACPI
 This handles the system power state and ACPI event dispatches. More...
 
class  ACPIEventHandler
 This is the abstract ACPI event handler class. More...
 
class  PowerStateManager
 Class for hardware power management. More...
 

Typedefs

typedef struct _ACPIEventMetadata ACPIEventMetadata
 

Enumerations

enum  ACPIEvent {
  POWER_S3S4_ENTER, POWER_S3S4_EXIT, LID_CLOSED, LID_OPENED,
  DOCKED, UNDOCKED, BUTTON_POWER, BUTTON_VOLUME_UP,
  BUTTON_VOLUME_DOWN, BUTTON_MICMUTE, BUTTON_MUTE, BUTTON_THINKVANTAGE,
  BUTTON_FNF2_LOCK, BUTTON_FNF3_BATTERY, BUTTON_FNF4_SLEEP, BUTTON_FNF5_WLAN,
  BUTTON_FNF7_PROJECTOR, BUTTON_FNF12_SUSPEND, UNKNOWN, BUTTON_BRIGHTNESS_DOWN,
  BUTTON_BRIGHTNESS_UP
}
 Varoius ACPI events that can occur on the ThinkPad. More...
 
enum  SuspendReason { LID, BUTTON }
 this defines the reason why a system suspend was requested
 

Detailed Description

The power management interfaces. Here you can find ACPI event handlers and power management state configurators and handlers.

Enumeration Type Documentation

Varoius ACPI events that can occur on the ThinkPad.

Enumerator
POWER_S3S4_ENTER 

The ThinkPad is entering the ACPI S3/S4 state

POWER_S3S4_EXIT 

The ThinkPad is exiting the ACPI S3/S4 state

LID_CLOSED 

The lid has been physically closed

LID_OPENED 

The lid has been physically opened

DOCKED 

The ThinkPad has been docked into a UltraDock/UltraBase

UNDOCKED 

The ThinkPad has been docked into a UltraDock/UltraBase

BUTTON_POWER 

The power button on the ThinkPad or the Dock has been pressed

BUTTON_VOLUME_UP 

The volume up button on the ThinkPad or a external device has been pressed

BUTTON_VOLUME_DOWN 

The volume down button on the ThinkPad or external device has been pressed

BUTTON_MICMUTE 

The Mic mute button on the ThinkPad has been pressed

BUTTON_MUTE 

The mute button on the ThinkPad has been pressed

BUTTON_THINKVANTAGE 

The ThinkVantage on the ThinkPad has been pressed

BUTTON_FNF2_LOCK 

The Fn+F2 Key combination on the ThinkPad has been pressed (lock)

BUTTON_FNF3_BATTERY 

The Fn+F3 Key combination on the ThinkPad has been pressed (battery)

BUTTON_FNF4_SLEEP 

The Fn+F4 Key combination on the ThinkPad has been pressed (sleep)

BUTTON_FNF5_WLAN 

The Fn+F5 Key combination on the ThinkPad has been pressed (WLAN)

BUTTON_FNF7_PROJECTOR 

The Fn+F7 Key combination on the ThinkPad has been pressed (projector)

BUTTON_FNF12_SUSPEND 

The Fn+F12 Key combination on the ThinkPad has been pressed (suspend)

UNKNOWN 

An unknown ACPI event has occured