You are not logged in.

#1 2021-01-22 10:02:36

Frostmaine
Member
Registered: 2021-01-22
Posts: 9

Arch immediate shutdown upon AC Power Removal

I have been trying to solve a battery issue involving my recently purchased Thinkpad X1 Carbon. It is knew so I highly doubt a battery malfunction, I have already done a battery hardware reset.

The moment I unplug the ac power cable the system shutsdown.
This is the output of journalctl up until the abrupt shutdown.

Jan 22 04:49:39 Avalon kernel: kauditd_printk_skb: 9 callbacks suppressed
Jan 22 04:49:39 Avalon kernel: audit: type=1131 audit(1611308979.072:69): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@976 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 22 04:49:39 Avalon systemd[1]: Stopping User Runtime Directory /run/user/976...
Jan 22 04:49:39 Avalon systemd[950]: run-user-976.mount: Succeeded.
Jan 22 04:49:39 Avalon systemd[1]: run-user-976.mount: Succeeded.
Jan 22 04:49:39 Avalon systemd[1]: user-runtime-dir@976.service: Succeeded.
Jan 22 04:49:39 Avalon systemd[1]: Stopped User Runtime Directory /run/user/976.
Jan 22 04:49:39 Avalon audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@976 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 22 04:49:39 Avalon systemd[1]: Removed slice User Slice of UID 976.
Jan 22 04:49:39 Avalon kernel: audit: type=1131 audit(1611308979.092:70): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@976 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 22 04:49:40 Avalon root[1279]: ACPI group/action undefined: ibm/hotkey / LEN0268:00
Jan 22 04:49:50 Avalon systemd[1]: systemd-hostnamed.service: Succeeded.
Jan 22 04:49:50 Avalon audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 22 04:49:50 Avalon kernel: audit: type=1131 audit(1611308990.778:71): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 22 04:49:50 Avalon audit: BPF prog-id=18 op=UNLOAD
Jan 22 04:49:50 Avalon audit: BPF prog-id=17 op=UNLOAD
Jan 22 04:49:50 Avalon kernel: audit: type=1334 audit(1611308990.902:72): prog-id=18 op=UNLOAD
Jan 22 04:49:50 Avalon kernel: audit: type=1334 audit(1611308990.902:73): prog-id=17 op=UNLOAD
Jan 22 04:49:55 Avalon root[1305]: ACPI group/action undefined: ibm/hotkey / LEN0268:00
Jan 22 04:50:15 Avalon root[1309]: ACPI group/action undefined: ibm/hotkey / LEN0268:00
Jan 22 04:50:26 Avalon root[1349]: ACPI group/action undefined: ibm/hotkey / LEN0268:00
Jan 22 04:50:32 Avalon root[1356]: ACPI group/action undefined: ibm/hotkey / LEN0268:00
Jan 22 04:50:45 Avalon root[1376]: ACPI group/action undefined: ibm/hotkey / LEN0268:00
Jan 22 04:51:14 Avalon root[1380]: ACPI group/action undefined: ibm/hotkey / LEN0268:00

Output of acpi_listen
ibm/hotkey LEN0268:00 00000080 00006032

Last edited by Frostmaine (2021-01-22 10:14:34)

Offline

#2 2021-01-22 14:55:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,624

Re: Arch immediate shutdown upon AC Power Removal

Does "acpi -b" show the battery? At what charging status/level?

Offline

#3 2021-01-22 15:24:24

Archlin
Member
Registered: 2018-05-09
Posts: 67

Re: Arch immediate shutdown upon AC Power Removal

Did you use/read the Thinkpad wiki that applies to your device to get everything up and running?
Perhaps you did mis something.

Offline

#4 2021-01-23 00:36:26

Frostmaine
Member
Registered: 2021-01-22
Posts: 9

Re: Arch immediate shutdown upon AC Power Removal

There is very little to do with the gen 8 carbon.   Unless I need to also do the things for the basic carbon article but I doubt it.  I am using Lenovo's firmware update service.  I did everything on the Gen 8 wiki page, https://wiki.archlinux.org/index.php/Le … on_(Gen_8)

Offline

#5 2021-01-23 00:39:12

Frostmaine
Member
Registered: 2021-01-22
Posts: 9

Re: Arch immediate shutdown upon AC Power Removal

seth wrote:

Does "acpi -b" show the battery? At what charging status/level?

The output of acpi -b

Battery 0: Unknown, 0%


The output of dmesg |  grep battery

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=****** rw loglevel=3 quiet resume battery acpi_call tp_smapi thinkpad_acpi
[    0.067522] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=******  rw loglevel=3 quiet resume battery acpi_call tp_smapi thinkpad_acpi
[    0.811490] battery: ACPI: Battery Slot [BAT0] (battery present)
[    0.844122]     battery
[    1.963388] thinkpad_acpi: battery 1 registered (start 0, stop 100)
[    1.963393] battery: new extension: ThinkPad Battery Extension

Offline

#6 2021-01-23 00:46:56

loqs
Member
Registered: 2014-03-06
Posts: 19,025

Re: Arch immediate shutdown upon AC Power Removal

Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=****** rw loglevel=3 quiet resume battery acpi_call tp_smapi thinkpad_acpi

Did something go wrong with bootloader configuration?  resume is not assigned a device and battery acpi_call tp_smapi thinkpad_acpi are listed as kernel parameters.

Offline

#7 2021-01-23 02:47:27

Frostmaine
Member
Registered: 2021-01-22
Posts: 9

Re: Arch immediate shutdown upon AC Power Removal

So I removed those kernel parameters and set resume to load from my swap partition.

Specifically I set my grub default linux parameters to

loglevel=3 quiet resume=/dev/nvme0n1p2

acpi -b now reads

Battery 0: Charging, 0%, charging at zero rate - will never fully charge.

dmesg | grep battery

[    0.830612] battery: ACPI: Battery Slot [BAT0] (battery present)
[    2.162072] thinkpad_acpi: battery 1 registered (start 0, stop 100)
[    2.162076] battery: new extension: ThinkPad Battery Extension

So the acpi battery message is no longer unknown but it is charging at zero rate. Which is interesting.

acpi -a confirms that I am plugged in and connected.  I have to assume there is a software issue I am missing.  As it is a brand new machine, and I have reset the battery.

Offline

#8 2021-01-23 09:31:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,624

Re: Arch immediate shutdown upon AC Power Removal

I have already done a battery hardware reset.


Did you try the battery w/ a different software stack - or a voltmeter?
Does the BIOS/UEFI report the charge level?

Offline

#9 2021-01-25 05:59:02

Frostmaine
Member
Registered: 2021-01-22
Posts: 9

Re: Arch immediate shutdown upon AC Power Removal

Just ordered a voltmeter (thanks for the excuse to do so), and I cannot find the charge level in the bios.

Offline

#10 2021-01-29 10:08:29

Frostmaine
Member
Registered: 2021-01-22
Posts: 9

Re: Arch immediate shutdown upon AC Power Removal

Alright for those still interested here is another info dump of diagnostic information.

[frost@Avalon ~]$ upower -i /org/freedesktop/UPower/devices/battery_BAT0

  native-path:          BAT0
  vendor:               Celxpert
  model:                5B10W13932
  serial:               5829
  power supply:         yes
  updated:              Fri Jan 29 05:04:52 2021 (95 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         47.94 Wh
    energy-full-design:  51 Wh
    energy-rate:         0 W
    voltage:             12.078 V
    percentage:          0%
    capacity:            94%
    technology:          lithium-polymer
    icon-name:          'battery-caution-charging-symbolic'
  History (charge):
    1611914692    0.000    unknown
  History (rate):
    1611914692    0.000    unknown

Offline

#11 2021-01-29 17:16:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,700

Re: Arch immediate shutdown upon AC Power Removal

That data is not sane.  One cannot charge at zero Watts.  And, a battery really cannot really be at 0 Watt Hours and still be serviceable (at least not a Lithium-polymer battery).
OTOH, the SMBus is clearly talking to it, as you know that it is a  Celxpert model 5B10W13932 serial number 5829.

If you do try to measure the voltage with a meter, please be very careful not to short the battery;  A Li-po battery can deliver a lot of energy very quickly.

Is that the battery that came with your system, or is it an after market part?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2021-01-30 03:17:55

Frostmaine
Member
Registered: 2021-01-22
Posts: 9

Re: Arch immediate shutdown upon AC Power Removal

It came with the system brand new.  Only had this machine for 3 months

Offline

#13 2021-01-30 07:35:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,624

Re: Arch immediate shutdown upon AC Power Removal

seth wrote:

Did you try the battery w/ a different software stack?

Ie. some live-distro…

Did it come inititally charged or were you facing this situation immediately?

Offline

#14 2021-01-30 14:50:04

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: Arch immediate shutdown upon AC Power Removal

Albeit a different brand, I have had dead-on-arrival battery units with brand-new Dell laptops in the past, so it's entirely possible your laptop was a dud. It should still be under warranty.

Offline

Board footer

Powered by FluxBB