Commit graph

42 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
Kate Hsuan
bab81e5e44 Fix spelling issues with codespell 2025-01-08 14:01:34 +08:00
Benjamin Berg
54166e86a8 doc: Remove website
It now has its own repository.
2022-07-11 17:12:10 +02:00
Benjamin Berg
baa14729a0 meson: Bump meson version and fix deprecations 2022-05-10 15:39:24 +02: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
Matt Turner
1003d5c2a6 meson: Don't search for gtk-doc if disabled 2022-03-20 15:33:56 -07:00
Benjamin Berg
fb02a57a2b meson: Clarify why build_by_default is needed for some custom_targets 2022-02-07 15:57:21 +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
Bastien Nocera
8913f60347 doc: Fix dist not working
automake's documentation says that it works depth-first, but it doesn't
actually go depth first when dist'ing a directory. So our .ref.xml files
aren't generated when we try to get them added to the dist.

Fix this with a big hammer by moving the generation to the current
directory, rather than spending any more time working with automake.
Can't wait for the meson port.
2018-10-25 13:12:35 +02:00
Guido Günther
3167b97d88 build: gtk-doc: Rebuild types and sections
This makes sure we stay up to date and get the object hierarchy
generated.
2018-08-22 13:46:35 +02:00
Cosimo Cecchi
c108a8e8a4 Share generated code between daemon and library
Since we use the same GDBus code in libupower-glib and the daemon,
auto-generate a private library that can be used by both.
2015-07-29 13:38:13 +01:00
Cosimo Cecchi
b549d8928b build: remove dependency on dbus-glib and libdbus
Nothing depends on it any more.
2015-07-29 13:37:11 +01:00
Martin Pitt
e4ad754351 doc: Adjust documentation for polkit removal 2014-07-16 12:19:38 +02:00
Bastien Nocera
d10cc97cbb Remove QoS interface
It was added for some workloads, but ill-suited and never really
got traction. Using cgroups to manage the resources of particular
services (using systemd), or something separate like rtkit is
a better bet.
2013-10-14 10:42:55 +02:00
Bastien Nocera
3ed22cd32b doc: Remove mention of suspend in example 2013-10-14 10:42:55 +02:00
Bastien Nocera
b61f8a72e5 website: Link to bugzilla
https://bugs.freedesktop.org/show_bug.cgi?id=66687
2013-10-14 10:11:20 +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
5be743c910 Don't use the deprecated INCLUDES in Makefile.am 2013-01-14 09:21:30 +00:00
Richard Hughes
e2e8dd9603 Add the website sources to git
In the case of a hit-by-a-bus event...
2011-09-06 10:02:04 +01:00
Richard Hughes
b19fca9637 Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
Javier Jardón
9e32af9ef6 Avoid warnings about missing annotations
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-07-19 11:55:34 +01:00
Alex Murray
5d902c22b7 Add support for controlling leds keyboard backlights
Add a new DBus interface based on the QoS one to provide for controlling a
keyboard backlight via the Linux leds interface.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-10-11 11:03:06 +01:00
Michael Biebl
42f0715637 Fix c&p typo in documentation 2010-04-14 08:26:57 +01:00
Richard Hughes
af56b08795 trivial: Add some useful GObjects for client and server use 2010-01-26 11:39:14 +00:00
Richard Hughes
27fada20be trivial: add some gtk-doc markup into libupower-glib and hook it up to the build system 2010-01-25 16:54:17 +00:00
Richard Hughes
0a2b06f298 Add libupower so applications can switch away from devkit-power-gobject 2010-01-25 15:20:09 +00:00
Richard Hughes
e22cf3d9c0 Rename the gtk-doc documentation 2010-01-21 14:59:02 +00:00
Richard Hughes
145f5ef54e trivial: add a gtk-doc helper script 2010-01-21 14:51:26 +00:00
Richard Hughes
58b17a8611 trivial: remove a TODO file that is very out of date 2010-01-21 14:51:25 +00: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
Richard Hughes
35aa49b8cd trivial: generate the wakeups documentation too 2009-01-31 10:01:37 +00:00
Richard Hughes
d891912126 feature: add in the interface file for QoS control 2008-11-13 16:39:57 +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
e0245af37e we're a fd.o project 2008-11-11 10:04:18 -05:00
Richard Hughes
918c35586b refactor out DkpDevice and DkpSupply so we can add another type of device without a metric ton of copy and paste 2008-08-09 14:27:32 +01:00
Richard Hughes
b626fcd195 add some trivial gitignore files 2008-08-01 17:33:31 +01:00
David Zeuthen
44d5391306 added wrong file 2008-05-08 22:30:53 -04:00
David Zeuthen
37f9df9b05 initial commit 2008-05-08 22:29:38 -04:00