[PATCH 0/9] platform/x86: uniwill-laptop: Complete battery support

From: Armin Wolf

Date: Mon Nov 09 2026 - 19:24:03 EST


According to the work item for upstreaming the out-of-tree
tuxedo-drivers package, the mainline uniwill-laptop driver still does
not allow userspace to read the cycle count and raw capacity of the
battery, preventing Tuxedo Computers from switching over to the
mainline driver (among other things).

This patch series aims to add the missing battery-related bits. The
first two patches extend the power supply subsystem, while the third
patch uses the new API to expose the battery cycle count on devices
where this not already being done by the ACPI firmware itself. The
fourth patch also exposes the raw battery capacity using a custom
sysfs attribute below the battery power supply device.
The last three patches add support for new devices based on user
reports.

All patches have been tested on a TUXEDO InfinityBook Pro 14 Gen10 AMD
and appear to work without issues.

Link: https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers/-/work_items/253

Armin Wolf (9):
power: supply: core: Add power_supply_has_property_direct()
power: supply: Enable struct power_supply_ext to be construct
dynamically
platform/x86: uniwill-laptop: Report battery cycle count
platform/x86: uniwill-laptop: Expose battery health and cycle count on
all devices
platform/x86: uniwill-laptop: Expose raw battery capacity to userspace
platform/x86: uniwill-laptop: Mark sysfs attributes as const
platform/x86: uniwill-laptop: Add support for MECHREVO Yilong15Pro
platform/x86: uniwill-laptop: Add MECHREVO JIAOLONG Series-X6xR55xK
platform/x86: uniwill-laptop: Add support for XMG EVO 14 (E25)

.../ABI/testing/sysfs-driver-uniwill-laptop | 11 +
drivers/platform/x86/uniwill/uniwill-acpi.c | 265 ++++++++++++------
drivers/power/supply/power_supply_core.c | 26 +-
include/linux/power_supply.h | 3 +-
4 files changed, 218 insertions(+), 87 deletions(-)

--
2.56.0