You are not logged in.

#1 2020-04-08 14:45:38

blarff
Member
Registered: 2020-04-08
Posts: 2

AC adapter not recognized

Hi, I run Arch Linux 5.5.13 on my laptop. A year ago, I changed the original battery for a new one (maybe not the official one).

It has been some time that I have the same problem. Charging the battery requires I either a) turn off my laptop, or b) close the lid.

ls -l /usr/lib/modules/$(uname -r)/kernel/drivers/acpi
total 72
-rw-r--r-- 1 root root 3864 Mar 30 22:42 ac.ko.xz
-rw-r--r-- 1 root root 3496 Mar 30 22:42 acpi_configfs.ko.xz
-rw-r--r-- 1 root root 4164 Mar 30 22:42 acpi_extlog.ko.xz
-rw-r--r-- 1 root root 5312 Mar 30 22:42 acpi_ipmi.ko.xz
-rw-r--r-- 1 root root 5264 Mar 30 22:42 acpi_tad.ko.xz
drwxr-xr-x 2 root root 4096 Mar 31 19:25 apei
-rw-r--r-- 1 root root 8552 Mar 30 22:42 battery.ko.xz
-rw-r--r-- 1 root root 2448 Mar 30 22:42 custom_method.ko.xz
drwxr-xr-x 2 root root 4096 Mar 31 19:25 dptf
drwxr-xr-x 2 root root 4096 Mar 31 19:25 nfit
-rw-r--r-- 1 root root 4084 Mar 30 22:42 sbshc.ko.xz
-rw-r--r-- 1 root root 6096 Mar 30 22:42 sbs.ko.xz        
acpi -i 
Battery 0: Discharging, 17%, 00:32:27 remaining
Battery 0: design capacity 2600 mAh, last full capacity 2214 mAh = 85%  
acpi -a
Adapter 0: off-line even when adpater is plugged.

I tried to check at results for

dmesg | grep acpi 
[    0.046425] ACPI: LAPIC_NMI (acpi_id[0x02] high level lint[0x1])
[    0.046427] ACPI: LAPIC_NMI (acpi_id[0x03] high level lint[0x1])
[    0.046429] ACPI: LAPIC_NMI (acpi_id[0x04] high level lint[0x1])
[    0.472516] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    1.220166] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI HPX-Type3]
[    1.220571] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
[    1.220604] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[    1.436438] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns  

I can get for half a second in xfce4 battery status panel (or with acpi -a) a charging icon when I plug back the adapter.
Note that when it is still not recognized when xfce4 is not lauched.

Everything looks fine but this adpater that is still off-line when plugged.
I was not able to see where the problem is coming from. Any suggestion for further investigation ?

Offline

#2 2020-04-09 08:03:32

Soptik
Member
Registered: 2019-03-11
Posts: 64

Re: AC adapter not recognized

So your laptop doesn't charge at all?

Maybe try if it works when you log just into terminal, but don't start Xorg or your DE. It looks a bit weird that it works when you have your lid closed, almost as if your DE was somehow messing with it? No idea, I've never seen this before.

Offline

#3 2020-04-10 09:13:14

blarff
Member
Registered: 2020-04-08
Posts: 2

Re: AC adapter not recognized

It charges when off or when the lid is close.
I do not launch any DE after boot and log, I have the same behavior as far as acpi -V can tell.
Sometime when I turn it on when fully charged, it keeps the charging On-line until I disconnect it and plug it back.

Offline

#4 2020-04-10 18:21:24

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: AC adapter not recognized

You haven't specified the make and model of the laptop.
Maybe there are inbuilt diagnostics in the laptop bios you can run to test the hardware (there are on some HP laptops)?

Offline

#5 2020-04-10 21:26:37

Soptik
Member
Registered: 2019-03-11
Posts: 64

Re: AC adapter not recognized

Yeah, the diagnostics is a good idea. It looks like a hw issue to me.

Out of curiosity, did you try other operating system? And does it charge if you run the code below and close laptop lid afterwards?

systemd-inhibit --what=handle-lid-switch sleep 6h

This doesn't allow the system to go to sleep because of the lid closing, I use it when I connect external monitor and close laptop lid and I don't want it to go to sleep. This is blocking call, and you can cancel it afterwards with <Ctrl+C> as usual.

These things above that I've just written are probably pointless, I think @paulkerry is probably right, this looks like a hw issue. But I'm curious what could cause this.

Did you notice if the laptop discharges slower if you have the adapter plugged in, even when it says it's not charging?

Last edited by Soptik (2020-04-10 21:28:46)

Offline

Board footer

Powered by FluxBB