Skip to content

Commit

Permalink
interface/upower-observe: allow to Refresh statistics for devices
Browse files Browse the repository at this point in the history
Refresh is commonly used by applications like steam and others to get accurate
power usage information. Whilst calling this has a side-effect of causing the
daemon to refresh its data from the power source, this seems pretty innocuous
and so should just be added to the existing upower-observe interface rather than
creating a new interface such as upower-control or similar just to allow this
one method.

Signed-off-by: Alex Murray <[email protected]>
  • Loading branch information
alexmurray authored and Meulengracht committed Feb 16, 2024
1 parent a7c9090 commit 5d796f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/builtin/upower_observe.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ dbus (send)
bus=system
path=/org/freedesktop/UPower/devices/**
interface=org.freedesktop.UPower.Device
member=GetHistory
member={GetHistory,Refresh}
peer=(label=###SLOT_SECURITY_TAGS###),
# Receive property changed events
Expand Down

0 comments on commit 5d796f3

Please sign in to comment.