summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-09-17ci: Pass build parameters to check-abiwip/hadess/abi-check-paramsBastien Nocera1-1/+1
2021-09-13tests: Add ChargeCycles testBastien Nocera1-0/+33
2021-09-13linux: Export charge cycles for batteries that support itBastien Nocera1-0/+7
Closes: #152
2021-09-13lib: Add API to access ChargeCyles D-Bus propertyBastien Nocera1-0/+27
2021-09-13dbus: Add ChargeCycles propertyBastien Nocera1-0/+11
2021-09-13build: Fix libplist 1.x buildsBastien Nocera1-1/+1
When libplist-2.0 isn't available, fallback to requiring libplist 1.x to build the iDevice support.
2021-09-10build: Fix compiling with idevice disabledIan Douglas Scott1-1/+1
2021-09-07linux: Remove unused variableBastien Nocera1-1/+0
src/linux/up-device-supply.c: In function ‘up_device_supply_refresh_line_power’: src/linux/up-device-supply.c:89:22: warning: unused variable ‘native_path’ [-Wunused-variable] 89 | const gchar *native_path; | ^~~~~~~~~~~
2021-09-07all: Remove HAVE_CONFIG_H conditionalBastien Nocera10-30/+10
We always have a config.h now, and don't rely on autotools setting this cflags for us to know it.
2021-09-07build: Fix idevice support always being offBastien Nocera2-1/+3
2021-09-07build: Remove unused variable assignmentBastien Nocera1-9/+0
2021-09-07ci: Enable all the features explicitlyBastien Nocera1-1/+1
2021-09-07ci: Fix Linux integration tests all being skippedBastien Nocera1-0/+2
The Linux integration tests were skipped since we started installing python-dbusmock by hand, which meant that package dependencies like python3-gobject were never installed, and the whole test would be skipped. Fixes: 3acbedca26619e6313f70b147024c1c3b92efbd9
2021-09-07linux: Bump tests timeoutBastien Nocera1-0/+1
We need a higher than default timeout as the test_critical_action_is_taken_repeatedly test takes at least 2 suspend cycles and those take at least UP_DAEMON_ACTION_DELAY (20 seconds).
2021-09-07linux: Postpone importing libraries for testsBastien Nocera1-18/+17
They're not needed and might not be available when we're trying to list the included tests.
2021-09-07build: Require GIR to be created to run testsBastien Nocera2-4/+3
2021-09-07build: Add missing GLib log domainsBastien Nocera2-0/+2
The daemon sources and libupower-glib were built without their historic log domains which meant some debug messages did not appear when running upowerd in verbose mode. This fixes the test_no_poll_batteries test.
2021-09-07ci: Fail CI on skipped testsBastien Nocera2-0/+26
Parse the junit results and check whether there are any skipped tests.
2021-09-07ci: Always export the test logsBastien Nocera1-1/+1
In case we want to read them even if successful (or skipped).
2021-09-07ci: Fix path to test logBastien Nocera1-1/+1
It changed when we switched to meson.
2021-09-07linux: Split the integration test into individual testsBastien Nocera2-6/+60
unittest_inspector.py lists the tests in the integration-test.py script, which are then added as individual tests.
2021-09-07linux: Rename integration test scriptBastien Nocera2-1/+1
Add the python suffix.
2021-09-07etc: Document Time* unitpacien1-3/+3
2021-09-06build: Remove autotoolsBastien Nocera26-1567/+1
2021-09-06build: Clean up include_directories usageBastien Nocera3-3/+2
2021-09-06meson: Depend on upowerd_dbus for the entire daemonBenjamin Berg1-2/+2
2021-09-06meson: Fix header/source extraction from gdbus_codegenBenjamin Berg1-2/+2
Otherwise we depend on the C sources being ready rather than the headers for building the rest of upowerd.
2021-09-06ci: Ignore ABI changes for keyboard backlight symbolsBastien Nocera1-0/+8
We don't care that the up_exported_kbd_backlight_* symbols and functions were removed from the libupower-glib ABI, they should never have been exported in the first place as this API is only used server-side, in the daemon.
2021-09-02tools: Include top-level library includeBastien Nocera1-3/+1
So we don't need to define UP_COMPILATION
2021-09-02ci: Build using mesonBenjamin Berg1-12/+10
2021-09-02build: Support building upower with mesonBenjamin Berg16-0/+600
2021-09-02tests: Return 77 when skipping testsBenjamin Berg2-4/+6
77 is the special value meaning that the test was skipped. Both meson make check will display the information correctly. Note that the test is currently executed directly in check-local. So add a workaround to ignore the 77 error code and exit 0 instead in that case.
2021-09-02build: Remove "deprecated" optionBenjamin Berg1-9/+0
The functionality that this option was disabling/enabling has been removed.
2021-09-02build: Remove systemdutildir optionBenjamin Berg1-9/+0
It appears that this option is not used (anymore).
2021-09-02README: Update dependenciesBastien Nocera1-2/+1
libgudev got a version bump and libusb isn't used anymore.
2021-09-02ci: Remove libusb dependencyBenjamin Berg1-1/+0
This was missed in commit 64582256a8c7 ("build: Remove libusb dependency in Linux").
2021-08-19lib: Mark device refresh function as deprecatedBastien Nocera1-0/+1
As the daemon API will soon be removed. See https://gitlab.freedesktop.org/upower/upower/-/merge_requests/66
2021-08-19lib: Mark lid related functions and properties as deprecatedBastien Nocera2-2/+4
As we want to eventually remove them. See https://gitlab.freedesktop.org/upower/upower/-/merge_requests/5
2021-08-170.99.13UPOWER_0_99_13Bastien Nocera2-1/+15
2021-08-17tests: Run test suite in verbose mode by defaultBastien Nocera1-1/+1
So we can see progress better.
2021-08-17tests: Export test log on failureBastien Nocera1-0/+4
2021-08-17tests: Test inhibitor lock for critical actionDylan Van Assche2-5/+59
Inhibitor lock should be taken between the critical action notification and the execution of the critical action. Requires python-dbusmock > 0.23.1, test is skipped on lower versions. python-dbusmock in the CI is installed from git and bumped version to 0.23.2 until a new release is available.
2021-08-17up-daemon: prevent suspending for critical actionDylan Van Assche1-0/+13
Take inhibitor lock when notifying the user about a critical battery level and release lock when executing critical battery action.
2021-08-17up-backend: add inhibitor lock interfaceDylan Van Assche4-43/+70
Phones are suspended most of the time so they are not awake for > 20s to allow UPower to take action when battery is critical. Add an interface to take and release inhibitor locks which prevent the device from suspending to allow UPower to execute the critical power action.
2021-08-10build: Require new gudev to fix battery detectionBastien Nocera1-1/+1
gudev 234 had bugs converting cached sysfs properties to boolean which caused upower to think that batteries were not there, as the "present" sysfs attribute was misread. Require at least gudev 235 to avoid battery detection being broken. Closes: #149
2021-08-10linux: Add test for touchpads being tagged as miceBastien Nocera1-2/+2
udev adds both tags to touchpads, so replicate that behaviour.
2021-08-10linux: Fix touchpad not being the right typeBastien Nocera1-3/+3
Touchpads are also tagged as mice, so make sure that we check for the touchpad property before checking for mouse one.
2021-08-10linux: Don't throw away large but possible energy ratesBastien Nocera1-2/+2
USB PD 3.1 allows up to 240W (48V, 5A) and some proprietary supplies already delivered more than 100W over USB-C (USB PD 3.0 limit). Closes: #147 Reported by StefanBruens
2021-07-22etc: Tweak default percentage levelsBastien Nocera2-6/+6
If we want the computer to be able to take useful action about the low battery, we should have a slightly higher "low" percentage level so that power saving made really makes a difference in runtime. Also bump "critical" slightly so that doom isn't quite as near but in the distance nonetheless. The "action" level stays the same, as 1% is too close to some batteries' actual switch off point, eg. the computer might brown out before we see 1%.
2021-06-30device: Don't update properties when device isn't exportedPablo Correa Gómez1-8/+4
The code in up_device_notify() will still eventually be reached when the up_device_coldplug() implementations are called, and properties are set for the device type for the first time (rather than during instance construction).