“On critical battery power: Do nothing” ignored
I am running Xubuntu 21.10 (GNOME session software is also installed though I do not use it) on a Thinkpad P1. Most of the time power management works fine and my laptop will run for hours on battery power, and always on AC it is fine. From time to time however I unsuspend on battery power (with the battery mostly charged) and the battery display indicator claims to be at a critical level, maybe 1%. At that point I have perhaps thirty seconds before something—which I can only suspect is xfce4-power-manager—kicks in and shuts down the system without prompting. (Somewhat similar to #54 (closed) & #106 (closed).) If I notice the problem quickly enough, I can suspend, then resume again, at which point the indicator will show a reasonable number (94%, say) and all is well until the next time I am unlucky. I feel this problem began appearing in the last year but I am not sure if it started after an OS upgrade or happened from the start with this laptop. The problem never occurs when booting on battery power, nor I think when disconnecting AC while the OS is running—only when resuming from suspension while on battery power.
In the Power Manager dialog, under Critical power, Critical battery power level is set to 3% and On critical battery power is set to Do nothing. I can live with the obviously incorrect status indicator since the problem is usually resolved just by suspending and resuming, so long as I have a chance to even initiate the workaround before the system abruptly turns off and forces me to reboot.
I captured journalctl
logs from a problematic session in which I managed to suspend again after 16s. Within a second of the system resuming I see
upowerd[1755]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-9
upowerd[1755]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-9
tracker-miner-f[2842]: Running on LOW Battery, pausing
xfce4-power-man[3318]: Source ID 1341 was not found when attempting to remove it
In a regular session I see the first two messages from upowerd
but not the messages from tracker-miner-f
or xfce4-power-man
. I cannot see any other messages pertaining to power or battery except
kernel: acpi LNXPOWER:08: Turning OFF
kernel: acpi LNXPOWER:03: Turning OFF
kernel: acpi LNXPOWER:02: Turning OFF
kernel: acpi LNXPOWER:01: Turning OFF
which is printed in either case. dmesg
does not show anything additional.