Computer doesn't suspend or shutdown on critical battery [SOLVED]  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
Horace Warblehat
Posts: 12
Joined: Thu Nov 10, 2022 12:40 pm

Computer doesn't suspend or shutdown on critical battery [SOLVED]

#1 Post by Horace Warblehat »

Hi


I set the power management critical battery level to 10, and the action on reaching it should be to suspend but that never happens.
The battery level has gone down to almost zero and the computer still won't shutdown.
Both Suspend and Hibernate work from their buttons and also using pm-suspend and pm-hibernate.

I have noticed this problem on other Linux distros too, but I was wondering if anyone could suggest what can be done to fix it.

Can anyone suggest why this might happen?
This is an Asus A15 Tuf laptop, but it has happened on other laptops and with other distros.

I have done some googling around and a lot of the suggestions appear to be way out of date (In one instance, they are talking about Ubuntu 14.1)

Thank you in advance
Last edited by Horace Warblehat on Fri Nov 11, 2022 3:06 pm, edited 1 time in total.
“People look down on stuff like geography and meteorology, and not only because they're standing on one and being soaked by the other.”
Terry Pratchett, Feet of Clay

Huckleberry Finn

Re: Computer doesn't suspend or shutdown on critical battery

#2 Post by Huckleberry Finn »

Sometimes this is overlooked:

There are 2 sub-tabs (in Power Manager): "On Battery" and "Plugged In"

Make it sure you did settings for the correct tab


Edit: Yes, that part doesn't change with the tabs...

Horace Warblehat
Posts: 12
Joined: Thu Nov 10, 2022 12:40 pm

Re: Computer doesn't suspend or shutdown on critical battery

#3 Post by Horace Warblehat »

@Huckleberry Finn: I did make sure it was on the battery tab, that was one of the first things I checked but I appreciate the suggestion anyway
“People look down on stuff like geography and meteorology, and not only because they're standing on one and being soaked by the other.”
Terry Pratchett, Feet of Clay

Huckleberry Finn

Re: Computer doesn't suspend or shutdown on critical battery

#4 Post by Huckleberry Finn »

You can do this: Select shutdown for what to do and set critical level to 1 (min. possible).. unplug ... then let it drain completely and shutdown by itself (yes it will sooner or later).

Then let it be charged fully (for hours, best is to leave till the morning). This way it'll be calibrated and it'll know better if it's really 10 or not etc..

Huckleberry Finn

Re: Computer doesn't suspend or shutdown on critical battery

#5 Post by Huckleberry Finn »

... If still not (though we don't have your "Quick System Info") you can try the most recent kernel.

Horace Warblehat
Posts: 12
Joined: Thu Nov 10, 2022 12:40 pm

Re: Computer doesn't suspend or shutdown on critical battery

#6 Post by Horace Warblehat »

Apologies for that.
Here's the output from inxi:

System: Host: user Kernel: 5.18.0-4mx-amd64 x86_64 bits: 64 Desktop: Xfce 4.16.0
Distro: MX-21.2.1_ahs_x64 Wildflower September 18 2022
Machine: Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A15 FA506IC_FA506IC v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: FA506IC v: 1.0 serial: <superuser required>
UEFI: American Megatrends v: FA506IC.301 date: 12/15/2021
Battery: ID-1: BAT1 charge: 41.7 Wh (86.3%) condition: 48.3/48.1 Wh (100.5%)
CPU: Info: 6-Core AMD Ryzen 5 4600H with Radeon Graphics [MT MCP] speed: 2784 MHz
“People look down on stuff like geography and meteorology, and not only because they're standing on one and being soaked by the other.”
Terry Pratchett, Feet of Clay

User avatar
Eadwine Rose
Administrator
Posts: 14686
Joined: Wed Jul 12, 2006 2:10 am

Re: Computer doesn't suspend or shutdown on critical battery

#7 Post by Eadwine Rose »

QSI is in the menu, run that and hit paste in a reply.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Horace Warblehat
Posts: 12
Joined: Thu Nov 10, 2022 12:40 pm

Re: Computer doesn't suspend or shutdown on critical battery

#8 Post by Horace Warblehat »

right, here we go. Sorry about that.

Code: Select all

System:    Kernel: 5.18.0-4mx-amd64 [5.18.16-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.18.0-4mx-amd64 
           root=UUID=<filter> ro quiet splash 
           nvme_core.default_ps_max_latency_us=5500 resume=/dev/nvme0n1p3 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.2.1_ahs_x64 Wildflower September 18  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A15 FA506IC_FA506IC v: 1.0 
           serial: <filter> 
           Mobo: ASUSTeK model: FA506IC v: 1.0 serial: <filter> UEFI: American Megatrends 
           v: FA506IC.301 date: 12/15/2021 
Battery:   ID-1: BAT1 charge: 39.3 Wh (81.4%) condition: 48.3/48.1 Wh (100.5%) volts: 12.0 
           min: 11.7 model: ASUS A32-K55 type: Li-ion serial: N/A status: Discharging 
CPU:       Info: 6-Core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64 type: MT MCP 
           arch: Zen 2 family: 17 (23) model-id: 60 (96) stepping: 1 microcode: 8600106 cache: 
           L2: 3 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 71864 
           Speed: 1853 MHz min/max: 1400/3000 MHz boost: enabled Core speeds (MHz): 1: 1853 
           2: 1397 3: 1397 4: 1406 5: 1397 6: 1397 7: 1385 8: 1392 9: 1398 10: 1396 11: 1396 
           12: 1396 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP protection 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP: always-on, RSB 
           filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: ASUSTeK driver: N/A 
           alternate: nouveau bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0300 
           Device-2: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel bus-ID: 05:00.0 
           chip-ID: 1002:1636 class-ID: 0300 
           Device-3: Sonix USB2.0 HD UVC WebCam type: USB driver: uvcvideo bus-ID: 1-4:2 
           chip-ID: 322e:202c class-ID: 0e02 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.16.1 driver: 
           loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa display-ID: :0.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 res: 1920x1080 hz: 144 dpi: 142 size: 344x194mm (13.5x7.6") 
           diag: 395mm (15.5") 
           OpenGL: renderer: AMD RENOIR (LLVM 14.0.5 DRM 3.46 5.18.0-4mx-amd64) v: 4.6 Mesa 22.0.5 
           direct render: Yes 
Audio:     Device-1: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 01:00.1 
           chip-ID: 10de:2291 class-ID: 0403 
           Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK driver: snd_hda_intel 
           v: kernel bus-ID: 05:00.1 chip-ID: 1002:1637 class-ID: 0403 
           Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A 
           alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x 
           bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480 
           Device-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403 
           Sound Server-1: ALSA v: k5.18.0-4mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK 
           driver: r8169 v: kernel port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
           Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter 
           vendor: AzureWave driver: mt7921e v: kernel modules: wl port: e000 bus-ID: 03:00.0 
           chip-ID: 14c3:7961 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
Bluetooth: Device-1: IMC Networks Wireless_Device type: USB driver: btusb v: 0.8 bus-ID: 3-3:2 
           chip-ID: 13d3:3563 class-ID: e001 serial: <filter> 
           Report: hciconfig ID: hci0 rfk-id: 6 state: up address: <filter> 
           Info: acl-mtu: 1021:6 sco-mtu: 240:8 link-policy: rswitch sniff link-mode: slave accept 
Drives:    Local Storage: total: 476.94 GiB used: 16.14 GiB (3.4%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLQ512HBLU-00BTW 
           size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
           type: SSD serial: <filter> rev: FXM7201Q temp: 29.9 C scheme: GPT 
Partition: ID-1: / raw-size: 468.68 GiB size: 460.25 GiB (98.20%) used: 15.73 GiB (3.4%) fs: ext4 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
           ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat 
           dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 8 GiB used: 415.6 MiB (5.1%) priority: -2 
           dev: /dev/nvme0n1p3 maj-min: 259:3 
Sensors:   System Temperatures: cpu: 52.0 C mobo: N/A gpu: amdgpu temp: 42.0 C 
           Fan Speeds (RPM): cpu: 0 
Repos:     Packages: 2174 note: see --pkg apt: 2169 lib: 1118 flatpak: 5 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/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/mx.list 
           1: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bullseye main non-free
           2: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bullseye ahs
           Active apt repos in: /etc/apt/sources.list.d/vscodium.list 
           1: deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium main
Info:      Processes: 334 Uptime: 23h 4m wakeups: 20925 Memory: 7.2 GiB used: 3.44 GiB (47.8%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI
Last edited by Horace Warblehat on Fri Nov 11, 2022 2:28 pm, edited 1 time in total.
“People look down on stuff like geography and meteorology, and not only because they're standing on one and being soaked by the other.”
Terry Pratchett, Feet of Clay

User avatar
Eadwine Rose
Administrator
Posts: 14686
Joined: Wed Jul 12, 2006 2:10 am

Re: Computer doesn't suspend or shutdown on critical battery

#9 Post by Eadwine Rose »

Why did you edit the thing? Just paste was good. Then it gets formatted for the forum so it is easy to read.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Horace Warblehat
Posts: 12
Joined: Thu Nov 10, 2022 12:40 pm

Re: Computer doesn't suspend or shutdown on critical battery

#10 Post by Horace Warblehat »

There. Apologies.. I added code tags around it like it was supposed to have.
I Selected all and cut and pasted originally before I noticed the copy for forum button.
Last edited by Horace Warblehat on Fri Nov 11, 2022 2:29 pm, edited 1 time in total.
“People look down on stuff like geography and meteorology, and not only because they're standing on one and being soaked by the other.”
Terry Pratchett, Feet of Clay

Post Reply

Return to “MX Help”