Commit graph

42 commits

Author SHA1 Message Date
Kate Hsuan
d79841fe40 meson: Release 1.91.0
The major change includes:
1. Support multiple keyboard backlight LED control.
2025-11-25 16:39:56 +08:00
Kate Hsuan
a4d0d469f3 meson: so relase bump up due to recent property changes 2025-11-25 15:25:06 +08:00
Manuel A. Fernandez Montecelo
46bbc8a602 Add support for conf.d style dirs (UPower.conf.d)
This change adds the feature to read config from conf.d style
directories (UPower.conf.d), commonly supported by other tools, as an
extension of the main config file.

This is useful and convenient in several situations, for example:

- distributions can set different values from the defaults shipped
  upstream without having to modify the main UPower.conf

- different packages or config-management tools can change config just
  by adding, removing or modifying files in that directory

The main config file, e.g. '/etc/UPower/UPower.conf', will be
processed first, and then files in the UPower.conf.d dir, if existing.

The directory to use is derived automatically, e.g.
'/etc/UPower/UPower.conf.d/' if the main config file is
'/etc/UPower/UPower.conf'.  Only files within that directory are
considered, and only those with valid config-group 'UPower' and with
the filename format: starting with '00-' to '99-', ending in '.conf'
and with alphanumeric characters, dash or underscore in between.

The candidate files within the given directory are sorted (with
g_strcmp0(), so the ordering will be as with strcmp()).  The
configuration in the files being processed later will override
previous config, in particular the main config, but also the one from
previous files processed, if the Group and Key coincide.

Add also relevant integration test: 'test_conf_d_support'
2025-11-12 15:45:56 +08:00
Kate Hsuan
c56ff5f207 Release 1.90.10
- Fix wrong model name of the devices (!267, #309)
- Switch charge_types to "Custom" when charging threshold is enabled (!268, #275)
- Fix invalid command line arguments (!269)
- Fix leak when reporting daemon usage error (!270)
- OpenBSD: support battery status from qcpas (!272)
- Fix history progression (!274, #316)
- Add a battery filter to the upower command line (!275)
- Change the charging behaviors using charge_types (!276, !46, #275)
- Fix integration tests issues, including floating point value and race between umockdev and upower (!277, !278)
- Rework upower command (!280)
- Propagate charge-threshold-enabled to display device (!281)
2025-08-26 16:04:24 +08:00
Kate Hsuan
bdbd99b809 Release 1.90.9
- Fix unstable OnBattery status (#306 #307)
2025-04-10 14:35:54 +08:00
Kate Hsuan
08bfb29f37 Bump the version for the next release 2025-01-09 13:55:45 +08:00
Kate Hsuan
70a5026662 Release 1.90.7
- Find the correct parent id for input devices (#268 #286)
- Fix race condition in test_sibling_priority_no_overwrite (!240)
- Show charge-threshold-* status as yes/no (!242)
- Add zsh-completions for CLI (!241)
- Wait 10 seconds for stopping the daemon (#290)
- Added pre-commit test and fixed code spelling, markdown, and code style issues. (!248)
2025-01-09 13:47:51 +08:00
Natalie Clarius
422ac4be74 add completions for CLI 2024-10-26 19:56:28 +00:00
Kate Hsuan
7fbc02e8af Release 1.90.6
- Fix g_object_weak_ref: assertion 'g_atomic_int_get (&object->ref_count) >= 1' failed (#281, !233)
- Fractional battery percentage (!226)
- CI enhancement. (!236)
- Tweak the default battery charging threshold to 75-80. (!234)
2024-09-18 02:39:43 +00:00
Kate Hsuan
12d1b7ec43 Release 1.90.5
- Suspend and Ignore as the CriticalPowerActions (!218 and !218)
- Support for battery charging threshold (!208)
- Tweak the device priority to make sure the device kind joystick can be correctly shown. (#267)
2024-08-26 09:19:37 +00:00
Kate Hsuan
b604a297be meson: Enable/disable polkit through an option
The user can enable and disable polkit using -Dpolkit.
2024-08-22 14:20:33 +08:00
Kate Hsuan
7011b93c28 Revert "policy: Remove policy for removed features"
This reverts commit ababfa2aaf.

Changes:
1. Drop the policy for the old APIs.
2. Add a policy for enableChargeLimit.
2024-08-22 14:20:33 +08:00
Kate Hsuan
0c9ba8048f Revert "Remove polkit dependency"
This reverts commit 9a2b263309.

Revisions:
1. Drop autoconf and migrate to meson build.
2. Drop dbus-glib dependency
2024-08-20 17:04:12 +08:00
Jelle van der Waa
16e373add0 up-device-battery: Enable and preserve the battery charging threshold config
It sets the battery start and end charging threshold to the kernel and also
saves the configuration in a file. If upower is restarted, upower
can recover the charging threshold setting through the configuration file.

The configuration file is based on the model name and serial number of the
battery so the battery can be configured individually.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
2024-08-20 17:04:04 +08:00
Kate Hsuan
c8385cb08a Release 1.90.4
- Update change information to NEWS
2024-04-08 23:36:47 +08:00
Kate Hsuan
a9fb6d5fa0 Release upower 1.90.3
1. Resolved high disk and CPU rate.
2. Update glib2 requirement to 2.66.0.
3. Stop guessing the unknown battery as a power supply.
4. Continue to support lid handling.
5. Document fixes and bug fixes.
2024-04-08 13:27:51 +08:00
Jelle van der Waa
dffb485a15 Bump glib2 requirement
Bump glib2 to 2.66 so we can use g_file_set_contents_full
2024-03-13 08:59:46 +01:00
Jelle van der Waa
3e808424b3 build: use install_emptydir for installing the history dir
This resolves the following deprecation warning, meson these days has a
special function for installing an empty directory:

* 0.60.0: {'install_subdir with empty directory'}
2024-03-11 14:53:53 +01:00
Kate Hsuan
b6fb567824 Revert "build: Bump the library soname after recent changes"
This reverts commit a94c94fe6b.

Revert so verion bump up since the API has been reverted.

Resolves: https://gitlab.freedesktop.org/upower/upower/-/issues/261
2024-02-09 14:22:01 +08:00
Pino Toscano
029651a96d build: make 'udevrulesdir' and 'udevhwdbdir' as Linux-only
udev is available only on Linux, so limit their usage when the backend
is 'linux'.

This fixes the build when the backend is different than 'linux', i.e.
typically on non-Linux OSes.
2023-07-07 06:50:31 +00:00
Bastien Nocera
a94c94fe6b build: Bump the library soname after recent changes 2023-07-06 11:18:30 +02:00
Bastien Nocera
8dcf54440d 1.90.2 2023-07-06 10:52:27 +02:00
Bastien Nocera
72183b6e04 build: Require a newer libgudev
Some of the functionality will be broken with older versions, in
particular when it comes to newline stripping when reading sysfs
attributes.
2023-07-05 17:16:52 +02:00
Bastien Nocera
96c34a3bb9 1.90.1 2023-07-04 15:51:22 +02:00
Benjamin Berg
d4259c009b Release 1.90.0 with larger refactorings
The version number has been bumped to be able to maintain multiple
branches without conflict. This version bump is not associated with a
API/ABI break.
2022-07-21 11:06:49 +02:00
Benjamin Berg
e9d73a3115 Release 0.99.19 2022-06-08 14:16:46 +02:00
Benjamin Berg
017ac33d58 Release 0.99.18 2022-05-17 10:54:28 +02:00
Benjamin Berg
d8eb09fba3 meson: Bump required glib version to 2.58 2022-05-10 15:45:27 +02:00
Benjamin Berg
baa14729a0 meson: Bump meson version and fix deprecations 2022-05-10 15:39:24 +02:00
Benjamin Berg
90c25b4fd1 rules: Update udev rules and migrate to use hwdb
This makes rule matching more efficient. We just need to copy the
variables over into the hiddev device so that there is no need to change
the C code to match the parent USB device. That said, the change in C
wouldn't be that hard either.

See https://github.com/networkupstools/nut/pull/1342
2022-04-01 11:47:17 +02:00
Benjamin Berg
c889154ec8 Release 0.99.17 2022-03-09 18:46:34 +01:00
Pierre Labastie
9cca8a244b meson.build: Output correct paths for sbindir and datadir 2022-03-05 11:09:14 +01:00
Benjamin Berg
2e5ba3ef80 Release 0.99.16 2022-02-23 17:46:51 +01:00
Benjamin Berg
e4a8656521 Release 0.99.15 2022-02-09 17:53:54 +01:00
Benjamin Berg
da05dd4b81 meson: Return a disabler if xsltproc is not found
Fixes: #170
2022-02-07 15:59:13 +01:00
Bastien Nocera
f596bd0164 build: Fix missing libm link on some platforms
This should fix the PPC64 and ARMv7 builds.
2022-02-07 13:57:27 +01:00
Jan Alexander Steffens (heftig)
8eb8ab1056 build: Fix default udevrulesdir
We need to append 'rules.d' to the udev_dir.
2022-02-05 02:26:50 +00:00
Benjamin Berg
ab9520a7aa Release 0.99.14 2022-02-02 20:12:58 +01:00
Bastien Nocera
244e858a86 build: Fix libplist 1.x builds
When libplist-2.0 isn't available, fallback to requiring libplist 1.x
to build the iDevice support.
2021-09-13 12:32:14 +02:00
Ian Douglas Scott
98be7dd216 build: Fix compiling with idevice disabled 2021-09-10 21:46:44 -07:00
Bastien Nocera
5f4d16ad4d build: Fix idevice support always being off 2021-09-07 17:20:48 +02:00
Benjamin Berg
f2e702d4dc build: Support building upower with meson 2021-09-02 17:47:30 +02:00