However, I still receive a notification to make a decision with three options (IIRC: Hiberbate, Sleep, Shutdown) and a cancel button. I cancel, and continue working, but within a few more seconds to a minute, the OS performs an unexpected shutdown.
How can I prevent this unwanted shutdown that must be triggered from elsewhere?
I live in Central America, and getting replacements is not easy, and other than misreporting to the OS, this battery works fine. I usually am on line power, but we lose power often here, and it is a laptop, so I'd like to use it on battery sometimes.
TIA

Code: Select all
$ upower -i $(upower -e | grep -i BAT0)
native-path: BAT0
vendor: Hewlett-Packard
model: Primary
serial: 48018 2015/05/09
power supply: yes
updated: Thu 30 Nov 2023 12:26:29 PM CST (42 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
warning-level: none
energy: 0.2166 Wh
energy-empty: 0 Wh
energy-full: 0.2166 Wh
energy-full-design: 0.2166 Wh
energy-rate: 0 W
voltage: 12.864 V
percentage: 100%
capacity: 100%
technology: lithium-ion
icon-name: 'battery-full-charged-symbolic'
Code: Select all
System: Kernel: 5.10.0-26-amd64 [5.10.197-1] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/vmlinuz-5.10.0-26-amd64 root=UUID=<filter> ro quiet
init=/lib/systemd/systemd
Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7
dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower January 15 2023
base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Laptop System: Hewlett-Packard product: HP EliteBook 840 G2 v: A3008D510B03
serial: <filter> Chassis: type: 10 serial: <filter>
Mobo: Hewlett-Packard model: 2216 v: KBC Version 96.5B serial: <filter>
BIOS: Hewlett-Packard v: M71 Ver. 01.31 date: 02/24/2020
Battery: ID-1: BAT0 charge: 0% condition: 0.2/0.2 Wh (100.0%) volts: 11.2 min: 11.4
model: Hewlett-Packard Primary type: Li-ion serial: <filter> status: Charging
CPU: Info: Dual Core model: Intel Core i5-5300U bits: 64 type: MT MCP arch: Broadwell
family: 6 model-id: 3D (61) stepping: 4 microcode: 2F cache: L2: 3 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18357
Speed: 2694 MHz min/max: 500/2900 MHz Core speeds (MHz): 1: 2694 2: 2694 3: 2694
4: 2694
Vulnerabilities: Type: gather_data_sampling status: Not affected
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data status: Unknown: No mitigations
Type: retbleed status: Not affected
Type: spec_rstack_overflow status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP:
conditional, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable
Graphics: Device-1: Intel HD Graphics 5500
vendor: Hewlett-Packard ZBook 15u G2 Mobile Workstation driver: i915 v: kernel
bus-ID: 00:02.0 chip-ID: 8086:1616 class-ID: 0300
Device-2: Chicony HP HD Webcam type: USB driver: uvcvideo bus-ID: 2-7:5
chip-ID: 04f2:b477 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.18.0 driver:
loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
s-diag: 414mm (16.3")
Monitor-1: eDP-1 res: 1366x768 hz: 60 dpi: 112 size: 309x174mm (12.2x6.9")
diag: 355mm (14")
OpenGL: renderer: Mesa Intel HD Graphics 5500 (BDW GT2) v: 4.6 Mesa 20.3.5
direct render: Yes
Audio: Device-1: Intel Broadwell-U Audio vendor: Hewlett-Packard driver: snd_hda_intel
v: kernel bus-ID: 00:03.0 chip-ID: 8086:160c class-ID: 0403
Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9ca0 class-ID: 0403
Sound Server-1: ALSA v: k5.10.0-26-amd64 running: yes
Sound Server-2: PulseAudio v: 14.2 running: yes
Network: Device-1: Intel Ethernet I218-LM vendor: Hewlett-Packard driver: e1000e v: kernel
port: 3080 bus-ID: 00:19.0 chip-ID: 8086:15a2 class-ID: 0200
IF: eth0 state: down mac: <filter>
Device-2: Intel Wireless 7265 driver: iwlwifi v: kernel modules: wl port: ef80
bus-ID: 02:00.0 chip-ID: 8086:095a class-ID: 0280
IF: wlan0 state: up mac: <filter>
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
bus-ID: 2-4:4 chip-ID: 8087:0a2a class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: enabled,running rfk-block:
hardware: no software: yes address: <filter>
Info: acl-mtu: 1021:5 sco-mtu: 96:6 link-policy: rswitch hold sniff
link-mode: slave accept
Drives: Local Storage: total: 238.47 GiB used: 140.35 GiB (58.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Micron model: MTFDDAK256TBN-1AR1ZABHA
size: 238.47 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD
serial: <filter> rev: 0012 scheme: MBR
Partition: ID-1: / raw-size: 237.46 GiB size: 232.67 GiB (97.98%) used: 140.25 GiB (60.3%)
fs: ext4 dev: /dev/dm-0 maj-min: 253:0 mapped: root.fsm
ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 105.1 MiB (10.8%)
fs: ext4 dev: /dev/sda1 maj-min: 8:1
Swap: Alert: No swap data was found.
Sensors: System Temperatures: cpu: 54.0 C mobo: 0.0 C
Fan Speeds (RPM): N/A
Repos: Packages: 2274 note: see --pkg apt: 2238 lib: 1125 flatpak: 36
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bullseye main
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://atl.mirrors.clouvider.net/debian bullseye-updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian bullseye main contrib non-free
2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list
1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
No active apt repos in: /etc/apt/sources.list.d/librewolf.list
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bullseye main non-free
Active apt repos in: /etc/apt/sources.list.d/nordvpn.list
1: deb https://repo.nordvpn.com/deb/nordvpn/debian stable main
Active apt repos in: /etc/apt/sources.list.d/signal-xenial-added-by-mxpi.list
1: deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
Info: Processes: 230 Uptime: 0m wakeups: 7 Memory: 15.04 GiB used: 2.21 GiB (14.7%)
Init: systemd v: 247 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: N/A alt: 10
Client: shell wrapper v: 5.1.4-release inxi: 3.3.06
Boot Mode: BIOS (legacy, CSM, MBR)