![]() |
![]() |
![]() |
DeviceKit-power Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Implemented Interfaces | Properties | Signals |
org.freedesktop.DeviceKit.Powerorg.freedesktop.DeviceKit.Power — Power interface |
EnumerateDevices (out 'ao' devices) Suspend () Hibernate ()
Objects implementing org.freedesktop.DeviceKit.Power also implements org.freedesktop.DBus.Introspectable, org.freedesktop.DBus.Properties
'DaemonVersion' read 's' 'CanSuspend' read 'b' 'CanHibernate' read 'b' 'OnBattery' read 'b' 'OnLowBattery' read 'b' 'LidIsClosed' read 'b' 'LidIsPresent' read 'b'
The DeviceKit-power service is available via the system message
bus. To access the service, use
the org.freedesktop.DeviceKit.Power
interface on
the /org/freedesktop/DeviceKit/Power
object on
the D-Bus system bus service with the well-known
name org.freedesktop.DeviceKit.Power
.
$ dbus-send --print-reply \ --system \ --dest=org.freedesktop.DeviceKit.Power \ /org/freedesktop/DeviceKit/Power \ org.freedesktop.DeviceKit.Power.EnumerateDevices method return sender=:1.386 -> dest=:1.451 reply_serial=2 array [ object path "/org/freedesktop/DeviceKit/Power/devices/line_power_AC" object path "/org/freedesktop/DeviceKit/Power/devices/battery_BAT0" ]
Enumerate all power objects on the system.
|
An array of object paths for devices. |
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 one or more properties on the object changes.
Version of the running daemon, e.g. 002
.
Whether the system is able to suspend.
Whether the system is able to hibernate.
Indicates whether the system is running on battery power. This property is provided for convenience.
Indicates whether the system is running on battery power and if the battery is critically low. This property is provided for convenience.
Indicates if the laptop lid is closed where the display cannot be seen.
If the system has a lid device.