![]() |
![]() |
![]() |
DeviceKit-power Reference Manual | ![]() |
---|---|---|---|---|
org.freedesktop.DeviceKit.Powerorg.freedesktop.DeviceKit.Power — Power interface |
EnumerateDevices (out 'ao' devices) GetOnBattery (out 'b' on_battery) GetLowBattery (out 'b' low_battery) Suspend () Hibernate ()
DeviceAdded ('o' device) DeviceRemoved ('o' device) DeviceChanged ('o' device) OnBatteryChanged ('b' on_battery) LowBatteryChanged ('b' low_battery)
Objects implementing org.freedesktop.DeviceKit.Power also implements org.freedesktop.DBus.Introspectable, org.freedesktop.DBus.Properties
Enumerate all power objects on the system.
|
An array of object paths for devices. |
Finds out if we are using battery so we can make policy decisions, for instance not running the indexer when we are on battery power.
|
If we are on battery power. |
Finds out if we are critically low on battery so we can make policy decisions, for instance saving documents or turning off network connections.
|
If we are critically low on battery power. |
Suspends the computer into a low power state. System state is not preserved if the power is lost.
Hibernates the computer into a low power state. System state is preserved if the power is lost.
Emitted when a device is added.
|
Object path of device that was added. |
Emitted when a device is removed.
|
Object path of device that was removed. |
Emitted when a device changed.
|
Object path of device that was changed. |
Emitted when the main power source of the system has changed.
|
If we are on battery power. |
Emitted when the main power source of the system is critically low in power.
|
If we are critically low on battery power. |