#include <acpi.h>
Inheritance diagram for ACPI_Interface:

Public Member Functions | |
| ACPI_Interface () | |
| default initialisation | |
| virtual | ~ACPI_Interface () |
| destructor | |
| virtual int | openHWEventFD () |
| opens the acpi event file | |
| virtual int | handleHWEventRequest (int fd=-1) |
| Handles an event on the socket. | |
| virtual int | suspend_to_ram () |
| triggers execution of suspend_to_ram script | |
| virtual int | standby () |
| triggers execution of standby script | |
| unsigned long | getTimestamp () |
| get time in millisecs since 1970 | |
| virtual int | openAcpidSocket () |
| opens the socket provided by acpid | |
| virtual void | activateSettings () |
| activates settings for specific scheme | |
Static Public Attributes | |
| static string | ACPI_EVENTFILE = "/proc/acpi/event" |
| event file for acpi events | |
Private Member Functions | |
| int | setBatteryAlarm_ () |
| sets the battery alarm of the current scheme | |
Private Attributes | |
| unsigned long | _last_button_occurence |
| workaround for buggy double button events | |
Static Private Attributes | |
| static const unsigned int | _button_time_window = 1000 |
| time window for ignoring double button events | |
|
|
default initialisation
|
|
|
destructor
|
|
|
activates settings for specific scheme throttling and thermal control only in ACPI Reimplemented from PM_Interface. |
|
|
get time in millisecs since 1970
|
|
|
Handles an event on the socket.
Implements PM_Interface. |
|
|
opens the socket provided by acpid
Implements PM_Interface. |
|
|
opens the acpi event file
Implements PM_Interface. |
|
|
sets the battery alarm of the current scheme
|
|
|
triggers execution of standby script
Implements PM_Interface. |
|
|
triggers execution of suspend_to_ram script
Implements PM_Interface. |
|
|
time window for ignoring double button events
|
|
|
workaround for buggy double button events only allow one button event(sleep/power) inside the time window below (in millisecs) |
|
|
event file for acpi events this is now configurable via -f parameter it could be either the acpid socket or the kernel acpi event file |
1.4.6