Commit graph

13 commits

Author SHA1 Message Date
Josh Triplett
3369d31472 upower: Add a -b/--battery option to dump only battery information
This is useful when asking people to give information about battery
health. It avoids having to give two-step instructions of first
enumerating devices with `upower -e`, then looking for a device whose
name starts with `/org/freedesktop/UPower/devices/battery_`, then
running `upower -i` on that device.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
2025-08-26 13:29:52 +08:00
Ula Shipman
9efac77ae7 docs: Document all upower(1) command-line options 2025-06-04 10:45:41 -07:00
Benjamin Berg
9058d45685 Remove Wakeups API
The API relied on /proc/timer_stats which has been removed from the
kernel in 2017. Since then, the API has been non-functional (yet
incorrectly reporting support because the support test was buggy).

Just remove it completely. The debian codesearch does not uncover any
API users. Also, I doubt that any new API (based on tracing scheduler
events as perf would do) would map well to what exists now. i.e. if
something like this is re-implemented in UPower or elsewhere, then the
API should likely look different.

And, realistically, if this does need root privileges (i.e. can't be
moved to use BPF programs or so on user units), then we can also create
a new small daemon that is launched on-demand just for that.
2022-03-24 17:02:27 +01:00
Bastien Nocera
9b93b6c402 build: Remove autotools 2021-09-06 14:06:40 +02:00
Benjamin Berg
f2e702d4dc build: Support building upower with meson 2021-09-02 17:47:30 +02:00
Martin Pitt
e4ad754351 doc: Adjust documentation for polkit removal 2014-07-16 12:19:38 +02:00
Richard Hughes
61d49c3120 Update the upower man page with all the current options 2013-05-07 14:01:28 +01:00
Richard Hughes
b19fca9637 Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
Richard Hughes
faeb7ffabc Rename the man pages and rename the main daemon binary name 2010-01-21 14:47:21 +00:00
Richard Hughes
d27c836e97 Rename the DBus service from org.freedesktop.DeviceKit.Power to org.freedesktop.UPower 2010-01-18 16:53:12 +00:00
David Zeuthen
feb8623231 update mailing list reference in man pages 2008-11-11 10:15:40 -05:00
David Zeuthen
12eb76b8be update my email address 2008-11-11 10:13:24 -05:00
David Zeuthen
37f9df9b05 initial commit 2008-05-08 22:29:38 -04:00