UPower

出自龙芯梦兰知识库

跳转到: 导航, 搜索

UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics. Any application or service on the system can access the org.freedesktop.UPower service via the system message bus. Some operations (such as suspending the system) are restricted using PolicyKit.

Power management interfaces (D-Bus)

org.freedesktop.UPower

Use dbus for power operations

dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
个人工具
名字空间
变换
动作
导航
工具箱