hd_scania Again, it SUDDENLY shuts off, every time where the A/C plug was NOT properly tightened, and it’s randomized per length
hd_scania Not neccessarily in fact low-battery, but instead just for NOT properly tightening the plug from A/C
So, if the laptop is on A/C (and the plug is not loose), then the system doesn't shut off?
This looks very much like a battery issue.
Does the battery LED go on and off when power is applied/removed? (Check on both Linux & FreeBSD)
Does the battery LED change colour and blink if on low battery power? (Check on both Linux & FreeBSD)
hd_scania Already the final BIOS, but unfortunately it was from 2011
No matter. Flash that BIOS anyway
hd_scania Like booting USB thumbs thru the board itself, instead of rEFInd?
Yes. Uninstall, Clover & rEFInd, etc if you have overridden any ACPI-stuff. We want nothing which can modify the ACPI data.
hd_scania You mean, restore to the plist file that was delivered with the CloverEFI installation?
I haven't used CloverEFI, but, if you have made any ACPI-related changes or overrides, then revert/change them to the system defaults/original values. If the changes you made to CloverEFI were only UI or booting related, like themes, boot-order and such, then no changes are necessary.
Copy this shell script somewhere:
#!/bin/sh
LOG=${1:-/tmp/batt.log.txt}
SLEEP=10
echo "Logging to $LOG... Use Ctrl-C to stop."
while true
do echo "DATE: $(date)"
echo
echo "APM:"; apm
echo
echo "ACPICONF:"; acpiconf -i 0
echo
echo "HWSTAT:"; hwstat
echo "=========="
sleep $SLEEP
done >> $LOG
Add this line to /boot/loader.conf
hw.acpi.verbose=1
Install the hwstat
program
pkg install hwstat
Reboot the laptop, then at the console (no X), run the batt.sh
program for 5 minutes. While it is running, switch the AC power on and off a few times. (If the AC jack or socket is loose, don't touch it. Use the wall power switch, instead.) Check if the kernel reports the AC power state on the console.
After 5 mins, stop the script, then collect the kernel logs:
dmesg > /tmp/dmesg.txt
Post the /tmp/batt.log.txt
and /tmp/dmesg.txt
. Also note if the battery LEDs work.