| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Refresh D-Bus method could be used by clients to force re-reading
the state of batteries in the upower backends. This is not needed as
all the backends should be sending events when their states changes,
removing the need for an explicit refresh.
This is also a potential security problem if applications keep on
refreshing their data.
We now only allow access to the Refresh() method if the daemon was
started in debugging mode. This should make it clearer that it is a
debug tool.
Also remove a mention of the never implemented refresh-power-source
polkit authorisation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Otherwise we depend on the C sources being ready rather than the headers
for building the rest of upowerd.
|
| |
|
|
|
|
|
| |
They might be device batteries where the device type is not known or
catalogued.
|
|
|
|
| |
See https://gitlab.freedesktop.org/upower/upower/merge_requests/16#note_41003
|
|
|
|
| |
https://bugs.freedesktop.org/show_bug.cgi?id=103361
|
|
|
|
|
|
|
|
|
|
| |
Export approximate battery levels that devices can use, exported by
the kernel as POWER_SUPPLY_CAPACITY_LEVEL_* values.
This avoids bizarrely accurate values showing up in UIs when we only
have ok/warning levels of accuracy in some cases.
https://bugs.freedesktop.org/show_bug.cgi?id=100359
|
|
|
|
|
|
|
|
| |
There are multiple possible causes for the keyboard brightness to change,
e.g. SetBrightness may get called, or the brightness may get changed
through a hotkey which is handled in firmware.
https://bugs.freedesktop.org/show_bug.cgi?id=98404
|
|
Since we use the same GDBus code in libupower-glib and the daemon,
auto-generate a private library that can be used by both.
|