HP EliteBook 830 G8 hang on shutdown on battery

Hello. I have an issue with kernel 5.14 (i have used 5.13 50 - 90 min before system update).
When notebook works on battery and i execute “reboot”, “shutdown -h now”, “systemctl poweroff” and etc, or just press “Shutdown” from GUI or Poweroff button, - system hang with black screen and blinking “Caps lock”. “Caps lock” identificate abnormal situation.
The same situation appears sometimes when i connect the power supply.
the dmesg don’t contain any regarding errors , but 1 time i saw “kernel panic - not sycing” (or smth like) before black screen appears.
I have tried to return on 5.13 but the issue still exists.

And the 2nd problem - battery is losing charge in shutdown state ~ 8% per hour (full shutdown, not hibernation, suspend or other like modes).

PS: i have tried to switch off all menu options in BIOS regarding power management in most of combinations. Before Manjaro i have try Ubuntu and there weren’t any issues with power. Battery worked near 10 hours in two days without charging with working hibernation and suspend mode. There was a lot of other problems with fprintd and LTE module and i decide to use Manjaro.

PPS: I face with system hang on any module load with “insmod” when i work on battery. The same operation with connected power supply goes without issues.

PPPS: Issues with Hibernation and Suspend. System hang (kernel panic) on resume after suspend. I have tried add intel_lpss_pci to initramfs and change RuntimeWatchdogSec value but it didn’t help. Hibernation mode looks like just shutdown. This issues reproduced on battery and on AC.

System:
  Kernel: 5.14.0-0-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: quiet splash loglevel=3 udev.log_priority=3 
  cryptdevice=UUID=5d5a78d5-9e07-4d5e-8e62-4553cc47cf00:luks-5d5a78d5-9e07-4d5e-8e62-4553cc47cf00 
  root=/dev/mapper/luks-5d5a78d5-9e07-4d5e-8e62-4553cc47cf00 
  rootflags=subvol=@ resume=UUID=ddb414e2-2de9-458c-a0ad-a7ab7d0423bb 
  resume_offset=6821120 apparmor=1 security=apparmor 
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: HP product: HP EliteBook 830 G8 Notebook PC v: N/A 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 880D v: KBC Version 30.2D.00 serial: <filter> UEFI: HP 
  v: T76 Ver. 01.01.32 date: 03/26/2021 
Battery:
  ID-1: BAT0 charge: 42.1 Wh (79.6%) condition: 52.9/53.2 Wh (99.3%) 
  volts: 12.4 min: 11.6 model: Hewlett-Packard Primary type: Li-ion 
  serial: <filter> status: Unknown cycles: 8 
Memory:
  RAM: total: 14.89 GiB used: 2.65 GiB (17.8%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: 11th Gen Intel Core i7-1165G7 bits: 64 type: MT MCP 
  arch: Tiger Lake family: 6 model-id: 8C (140) stepping: 1 microcode: 78 
  cache: L2: 12 MiB bogomips: 44864 
  Speed: 846 MHz min/max: 400/4700 MHz Core speeds (MHz): 1: 846 2: 969 3: 553 
  4: 1172 5: 837 6: 608 7: 601 8: 1143 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_capabilities 
  arch_perfmon art avx avx2 avx512_bitalg avx512_vbmi2 avx512_vnni 
  avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f 
  avx512ifma avx512vbmi avx512vl bmi1 bmi2 bts cat_l2 cdp_l2 clflush 
  clflushopt clwb cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl 
  dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma 
  fpu fsgsbase fsrm fxsr gfni ht hwp hwp_act_window hwp_epp hwp_notify 
  hwp_pkg_req ibpb ibrs ibrs_enhanced ida intel_pt invpcid invpcid_single 
  lahf_lm lm mca mce md_clear mmx monitor movbe movdir64b movdiri msr mtrr 
  nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge 
  pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed rdt_a rdtscp rep_good 
  sdbg sep sha_ni smap smep split_lock_detect ss ssbd sse sse2 sse4_1 sse4_2 
  ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer 
  tsc_known_freq umip vaes vme vmx vnmi vpclmulqdq vpid x2apic xgetbv1 xsave 
  xsavec xsaveopt xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown 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: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Hewlett-Packard 
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:9a49 class-ID: 0300 
  Device-2: Luxvisions Innotech Limited HP HD Camera type: USB 
  driver: uvcvideo bus-ID: 3-2:2 chip-ID: 30c9:000f class-ID: 0e02 
  serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 166 size: 294x165mm (11.6x6.5") 
  diag: 337mm (13.3") 
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.2.1 
  direct render: Yes 
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Hewlett-Packard 
  driver: sof-audio-pci-intel-tgl 
  alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3 
  chip-ID: 8086:a0c8 class-ID: 0401 
  Sound Server-1: ALSA v: k5.14.0-0-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.34 running: yes 
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel port: 3000 
  bus-ID: 00:14.3 chip-ID: 8086:a0f0 class-ID: 0280 
  IF: wlp0s20f3 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  IF-ID-1: wwan0 state: down mac: N/A 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 3-10:4 chip-ID: 8087:0026 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
  Device-1: luks-5d5a78d5-9e07-4d5e-8e62-4553cc47cf00 maj-min: 254:0 
  type: LUKS dm: dm-0 size: 476.44 GiB 
  Components: 
  p-1: nvme0n1p2 maj-min: 259:2 size: 476.44 GiB 
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd 
  v: 0.6 port: 3000 bus-ID: 00:0e.0 chip-ID: 8086.9a0b rev: class-ID: 0104 
Drives:
  Local Storage: total: 476.94 GiB used: 199.66 GiB (41.9%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: PC SN530 SDBPNPZ-512G-1006 size: 476.94 GiB block-size: 
  physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD 
  serial: <filter> rev: HPS2 temp: 28.9 C scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 476.44 GiB size: 476.44 GiB (100.00%) 
  used: 199.63 GiB (41.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-5d5a78d5-9e07-4d5e-8e62-4553cc47cf00 label: N/A 
  uuid: ddb414e2-2de9-458c-a0ad-a7ab7d0423bb 
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) 
  used: 27.6 MiB (5.4%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A 
  uuid: 41EA-6DDA 
  ID-3: /home raw-size: 476.44 GiB size: 476.44 GiB (100.00%) 
  used: 199.63 GiB (41.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-5d5a78d5-9e07-4d5e-8e62-4553cc47cf00 label: N/A 
  uuid: ddb414e2-2de9-458c-a0ad-a7ab7d0423bb 
  ID-4: /swap raw-size: 476.44 GiB size: 476.44 GiB (100.00%) 
  used: 199.63 GiB (41.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-5d5a78d5-9e07-4d5e-8e62-4553cc47cf00 label: N/A 
  uuid: ddb414e2-2de9-458c-a0ad-a7ab7d0423bb 
  ID-5: /var/cache raw-size: 476.44 GiB size: 476.44 GiB (100.00%) 
  used: 199.63 GiB (41.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-5d5a78d5-9e07-4d5e-8e62-4553cc47cf00 label: N/A 
  uuid: ddb414e2-2de9-458c-a0ad-a7ab7d0423bb 
  ID-6: /var/log raw-size: 476.44 GiB size: 476.44 GiB (100.00%) 
  used: 199.63 GiB (41.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-5d5a78d5-9e07-4d5e-8e62-4553cc47cf00 label: N/A 
  uuid: ddb414e2-2de9-458c-a0ad-a7ab7d0423bb 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: file size: 17 GiB used: 0 KiB (0.0%) priority: -2 
  file: /swap/swapfile 
Unmounted:
  Message: No unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 1 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 3-2:2 info: Luxvisions Innotech Limited HP HD Camera type: Video 
  driver: uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 30c9:000f class-ID: 0e02 serial: <filter> 
  Device-2: 3-7:3 info: Synaptics type: <vendor specific> driver: N/A 
  interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 06cb:00f0 
  class-ID: ff00 serial: <filter> 
  Device-3: 3-10:4 info: Intel AX201 Bluetooth type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0026 
  class-ID: e001 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 45.0 C mobo: 25.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 298 Uptime: 3m wakeups: 354 Init: systemd v: 248 tool: systemctl 
  Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1601 lib: 404 
  flatpak: 0 Shell: Zsh v: 5.8 default: Bash v: 5.1.8 running-in: yakuake 
  inxi: 3.3.06

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and press the three dots below your post and press the :pencil2: to give us more information so we can see what’s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

:+1:

Thank you for the reply. I have added inxi output to the post and some additional notes in “PPS”. about log, json, dmesg there are no any records about kernel errors or acpi, just about kde widgets.

It is funny…
I have added one module to the kernel external modules folder, run “depmod” and “mkinitcpio -p linux514” and now all work flawlessly. not issues with hang on reboot.

If you could provide the exact module name and the exact steps you took, and click the 3 dots below the answer to mark a solution like this below your answer:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well!

Hello. Module doesn’t correlate with the issue, i just try to enable LTE on my laptop with xmm7360. When i tried to load module system hang on battery.
Command “depmod” solve the issue :slight_smile: but exactly i don’t clue how.
But problem with battery charge isn’t resolved.
And one more problem rise. I have added it to my main post.

Ah sorry! In that case, please read this:

Especially the Linux has multiple kernels section.

Then install an LTS kernel and all your problems will go away…

:+1:

Hello.
I have install LTS kernel, Hibernation start working as expected.
But suspend - not . Caps Lock not blinking, but system can’t start.

What exactly i have:
Kernel 5.10
btrfs with full disk encryption (with /boot) secure boot + luks1 + tpm2.0 + swapfile - all is working
xmm7360-pci (LTE modem) from git - is working
hibernation - work
suspend - not

Kernel 5.14
btrfs with full disk encryption (with /boot) secure boot + luks1 +tpm2.0 + swapfile - all is working
xmm7360-pci (LTE modem) from git - is working but xmm7360.c have to modified on 1322 line to “.write_room = (unsigned int (*)(struct tty_struct *)) xmm7360_tty_write_room,”
hibernation don’t work
suspend - dont’t work
some issues on battery but command “depmod” and mkinitcio -p linux514 solve this problem.
what i try to do to enable hibernation and suspend on 5.14

  1. change resume=UUID= to resume=/dev/mapper/…
  2. MAJ:MIN from lsblk echoed to /sys/power/resume
  3. resume_offset value to /sys/power/resume_offset
  4. modify /etc/systemd/system.conf and sleep.conf according man and arch wiki
  5. add (it is needed, it is absent in config after system install) “resume” to HOOKS in /etc/mkinitcpio.conf (in the end of string, a i have tried other places also)
  6. Have tried to add Environment variable to ignore memory check in systemd services.
    Nothing helps.

I am noted the difference in journalctl -b 0 on 5.10 and 5.14:
kernel 5.14 write error that it does not know about commands “splash” and “cryptdevice=” in grub command line.

I can’t help you any further, sorry!

:sob: