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

Bug#1012440: linux-image-amd64: Long time to load ACPI module battery.ko



On Tuesday, 7 June 2022 22:01:03 CEST Luca wrote:
> > This sounds like a BIOS problem to me. Have you checked whether a new one
> > is available?
> The first thing I did after buying the laptop was updating the BIOS to the
> last version, just before wiping the original Windows installation and I
> was lucky since from what I found so far seems that Lenovo does not give
> other possibilities for BIOS update for my model! (I don't know how will I
> do for the next BIOS version that will be released in the future)

If you have a Thinkpad, then you should be able to update fw using fwupd 
package. Also see https://fwupd.org/ for more info.
If your device is not supported, then 'nagging' Lenovo about providing updates 
through that site/service is your best chance. Using the Lenovo forums may 
also help as when I last looked there, I wasn't the only one using Linux ;-)

> I forgot to mention that apart the long time to load, then the battery ACPI
> support seems to work properly, reporting all the informations
> (charging/dischargin rate, last full cacpcity, desing capacity etc..)

That's good as it means it's not entirely broken.

> > To see/verify whether it may be a kernel issue, it's useful to test other
> > kernel versions. If it works properly with another kernel version, then
> > it's mostly likely a kernel issue, but if it's consistently slow across
> > kernel versions, then a HW/BIOS problem seems most likely.
> I just did the tests you suggested measuring precisely with /usr/bin/time
> 
> 5.10.0-10-amd64       0.00user 0.00system 0:07.57elapsed 0%CPU
> 5.10.0-14-amd64       ~8.55s (was builtin, not module)
> 5.16.0-0.bpo.4-amd64  0.00user 0.00system 0:07.74elapsed 0%CPU
> 
> kernel source built by me:
> 5.18.2-mrf0           0.00user 0.00system 0:07.48elapsed 0%CPU
> 
> If you need other tests I can carry on.

They all show the same delay, which strengthens my idea that it is a BIOS 
issue. So AFAIC, no further test are needed.

> Don't know if it's related, but I get lots of error lines during kernel boot
> like these:
> 
> ...
> [    0.248050] ACPI BIOS Error (bug): Failure creating named object
> [\_SB.PCI0.T XHC.RHUB.SS01._UPC], AE_ALREADY_EXISTS (20210730/dswload2-327)
> [    0.248057] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog
> (202107 30/psobject-221)
> [    0.248060] ACPI: Skipping parse of AML opcode: OpcodeName unavailable
> (0x001 4)
> ...

I'd say that's VERY related. I'm pretty much convinced it is a BIOS problem.

> I tried various acpi_osi=... without any improvement. From what I understand
> it should not be a dramatic problem and seems not to affect the system so
> far.

I know these kind of options exist, but I'm not familiar with them, so *I* 
won't be able to help you with that.

I think your best course of action is starting (or if one with your issues 
already exists, joining) a thread on Lenovo's forums and/or try other ways to 
contact their support. It's best to provide a full dmesg/kernel log and let 
any filtering up to them. Other messages may give them clues which are not 
immediate apparent to you.

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: