Age | Commit message (Collapse) | Author | Files | Lines |
|
Introduced with UPOWER_0_99_1-17-g2e87407.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
|
|
Fixes a -Wcast-align warning and a -fsanitize=undefined error.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
|
|
Rather than the copy/paste code in commit:
b9bd275890387fb35c185f37ec0ea1f2aa857818
This makes sure that the AC status is updated.
https://bugs.freedesktop.org/show_bug.cgi?id=86144
|
|
When removing a battery, make sure to go through the batteries, and
update the display device status.
https://bugs.freedesktop.org/show_bug.cgi?id=86144
|
|
So that we can reuse this code.
https://bugs.freedesktop.org/show_bug.cgi?id=86144
|
|
Under certain conditions lockdownd_client_free was called
twice for same client. This caused SIGSEGV.
This patch addresses this issue
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=84345
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
Commit 5ddfe0d (all: Use g_get_real_time() when possible) replaced calls
to g_get_current_time() with g_get_real_time(), however, we also need to
convert the return value from microseconds to seconds.
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
Instead of a call to g_get_current_time().
|
|
|
|
Cppcheck found it as a logical conjunction always evaluates to
false: EXPR < 32 && EXPR > 126. Change the expression to an Or.
https://bugs.freedesktop.org/show_bug.cgi?id=71066
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
Array 'temp_data[100]' accessed at index 100, which is out of
bounds.
https://bugs.freedesktop.org/show_bug.cgi?id=71066
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
UPower uses g_clear_pointer several places in the code, but is
available starting in 2.34. Update UPowers minimum version to
match.
https://bugs.freedesktop.org/show_bug.cgi?id=83850
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
It was documented, but the configuration was never actually read.
https://bugs.freedesktop.org/show_bug.cgi?id=82925
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=82925
|
|
This is better design to catching regressions and problems in a more
pin-pointed fashion. This also avoids having to restart the umockdev testbed
due to changing the environment variables with stop/start_daemon().
|
|
Python 3.4 changed the TestCase._outcome semantics, adjust accordingly.
|
|
This can happen in CI environments without a desktop session.
|
|
|
|
|
|
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
|
|
up-self-test.c: In function ‘up_test_history_func’:
up-self-test.c:274:2: warning: implicit declaration of function ‘rmdir’ [-Wimplicit-function-declaration]
rmdir (history_dir);
|
|
Complete the polkit dependency removal by also dropping it from the self tests.
Unbreaks build and up-self-test again.
|
|
With the removal of the suspend/hibernate code, there's no longer
a need for upower to depend on polkit. This patch removes the old
polkit code.
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=80707
|
|
|
|
|
|
|
|
|
|
Removes the deprecated (for not very long) property, before we do a 1.0
release.
https://bugs.freedesktop.org/show_bug.cgi?id=78380
|
|
|
|
|
|
|
|
|
|
The IsDocked property has been incorrect for a number of laptops for a
while, as it thought that laptops with hybrid graphics cards were always
docked.
The alternative would have been to use the platform/dock_station
devices, but those are only exported for ACPI docking stations.
Instead, whether an external display is attached (which isn't really
docking) should be checked in the same place where the policy depending
on the value should be applied, such as gnome-settings-daemon.
https://bugs.freedesktop.org/show_bug.cgi?id=36818
|
|
On the Lenovo A600 all-in-one, there's a HCI/HID dual-mode Broadcom
device which will try to get the battery level of the supplied
mouse and keyboard, but will usually fail to do so.
So we have a battery of type "battery" (it's not either a mouse or
a keyboard, as it's supposed to handle both) but our display device
battery code doesn't check whether those batteries are power supplies
or not, using this "empty" (0% after the check timed out) battery in
the shutdown policy.
Check better for power supply devices, not all the "battery" types
are power supply batteries, they might be non-power supply ones
from unknown device types.
|
|
Missing colon.
|
|
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
In addition to build time - this increases compatibilty with OSTree,
which starts out with an empty /var.
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
This fixes "upower --version" when the daemon is not running, and thus the
client proxy is NULL.
|
|
|
|
|
|
|
|
This has 2 effects:
- we never stop polling (we used to stop polling when the
battery was marked as fully-charged, but that can happen when
the battery is discharging too)
- when in an unknown state, we will poll through the daemon,
and through our unknown poll. This isn't a problem as there'll
another 115 seconds of wait until we get to poll through the
daemon again.
|
|
Next up is doing this for batteries, which need to switch between
a normal/slow poll to a faster one when the battery state is unknown.
|
|
|
|
And remove the gathering of the battery poll from the device
itself, it's of nearly no use.
|
|
|
|
To be used by all polling backends. This changes the defaults
to poll every 120 seconds when a warning level isn't reached, and
switch automatically to 30 seconds poll when the battery level is low.
|