Am 13.06.24 um 17:14 schrieb Rafael J. Wysocki:
Let's see if the ACPI thermal zone is the real culprit.

The attached patch only adds the delay for thermal zone 0 which is the
ACPI thermal zone.  It also prints the ID and type for all of the
resuming thermal zones.

Please test it (removing all of the test changes/patches tried so far)
and let me know what happens to the battery readings.
Patch

thermal-delay-resume.patch

does not work. Output according to dmesg.txt
Attached is a slightly modified version of the last patch I sent.
Please test it and let me know if it addresses the problem you are
seeing.

If it helps, I think we are done with this at least for now.
patch thermal-core-resume-prio.patch with .priority = -1 does work
One more thing to try is the attached patch (independent of the
previous one) to lower the priority of the thermal PM notifier to make
it run always after the ACPI battery one.

Please test this one too and let me know if it works for you.
patch
thermal-core-resume-prio.patch

with .priority = INT_MIN does also work.

If you need any further tests, please don't hesitate to tell me so.

Thank you for your help!