[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#927163: Bug#964181: linux-image-4.19.0-9-amd64: Unable to get battery status



Problem is solved with a recent bullseye kernel. Thanks for working on this!

On 18.04.22 17:20, Diederik de Haas wrote:
Control: tag -1 moreinfo

On 18 Aug 2020 22:43:39 +0200 Tino Schmidt <mailtinoshomepage@gmx.net> wrote:
a few changes were necessary to fix this issue:

diff --git a/config-4.19.0-10-amd64 b/config-4.19.0-10-amd64
index eb55c7b..c952314 100644
--- a/config-4.19.0-10-amd64
+++ b/config-4.19.0-10-amd64
@@ -3918,2 +3918,2 @@ CONFIG_I2C_SCMI=m
-CONFIG_I2C_DESIGNWARE_CORE=m
-CONFIG_I2C_DESIGNWARE_PLATFORM=m
+CONFIG_I2C_DESIGNWARE_CORE=y
+CONFIG_I2C_DESIGNWARE_PLATFORM=y
commit d5c998412628563e86efc90c3ff1be01b0bd397f, part of kernel 5.8
changed PLATFORM to 'y', which in turn (likely) turned CORE into 'y' too

@@ -4460 +4460 @@ CONFIG_BCMA_DRIVER_PCI=y
-CONFIG_MFD_CORE=m
+CONFIG_MFD_CORE=y
and I guess this one too (it isn't explicitly set, but it is 'y' on the oldest
5.10 amd64 kernel I have installed

@@ -4466,2 +4466,2 @@ CONFIG_MFD_CORE=m
-CONFIG_MFD_AXP20X=m
-CONFIG_MFD_AXP20X_I2C=m
+CONFIG_MFD_AXP20X=y
+CONFIG_MFD_AXP20X_I2C=y
These are still 'm' on my oldest 5.10 amd64 kernel ...
(got enabled in 95cf0f2687b7e3efb84a508028167bcc8680a5d3 to fix #895129)

@@ -7234 +7234 @@ CONFIG_MMA9553=m
-# CONFIG_AXP288_ADC is not set
+CONFIG_AXP288_ADC=m
I suspect that this was the crucial missing piece ...

After recompilation of the kernel the directory /sys/class/power_supply
was populated and I got a battery indicator on the taskbar.
... and that got added in aa87da1f902dba04f3b15680e178ad336e985f4f and is part
of the 5.10 kernels (previously it was only enabled on arm64 and armhf).

Tino and Markus:
Can you verify whether the issue is fixed with a 5.10+ kernel?


Reply to: