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

From: Armin Wolf

Date: Tue Dec 01 2026 - 10:03:08 EST


Am 01.12.26 um 15:51 schrieb Ilpo Järvinen:
On Tue, 01 Dec 2026 15:34:36 +0100, Armin Wolf wrote:

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 fifth
patch only does some generic sysfs-related cleanup, while the last
three patches add support for new devices based on user reports.

[...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

Thank you very much :)


The list of commits applied:
[1/9] power: supply: core: Add power_supply_has_property_direct()
commit: 96da94ed9f797cb321b19b1426e574ad4da97c46
[2/9] power: supply: Enable struct power_supply_ext to be construct dynamically
commit: 0a5c3cb2db75977d42578f9036ad644f9fd86146
[3/9] platform/x86: uniwill-laptop: Report battery cycle count
commit: 1498e7b84d927a40dd591c41e119b777c682cba4
[4/9] platform/x86: uniwill-laptop: Expose battery health and cycle count on all devices
commit: 6deeee91f4c90d55fb71d09d0b46015720ae311f
[5/9] platform/x86: uniwill-laptop: Expose raw battery capacity to userspace
commit: 781e13fcbe23fad2306193bea667ebde4cc88fe3
[6/9] platform/x86: uniwill-laptop: Mark sysfs attributes as const
commit: a38f5af3193a7eb32c4bb9f2666214921feae221
[7/9] platform/x86: uniwill-laptop: Add support for MECHREVO Yilong15Pro
commit: ce1d614080afb563e98bf0d55ee0cec332e17f76
[8/9] platform/x86: uniwill-laptop: Add MECHREVO JIAOLONG Series-X6xR55xK
commit: 86fe4a255edc288a9023022879dec029b5b9df36
[9/9] platform/x86: uniwill-laptop: Add support for XMG EVO 14 (E25)
commit: f09fec5a32d43dd3f9e32d531d05422a9f6191d0

--
i.