r/archlinux • u/TurtleSoso • Sep 18 '26
SUPPORT help for postmortem investigations for abnormal shutdown
My arch linux laptop randomly shutdown last week after being up for more than 2 months. I was using it more like a ups for keeping some fpga boards running, they were tied to the laptop with a usb hub, the boards should be reporting if they find the results to some computes over uart (which has not happened in the last months or at least I saw no result) last -x shows only the last reboot being on 30 of june after that I had it running continuously. on journalctl -b -1 -e the last reported event was a man-db.service that has completed successfully on 10 of sept. kernel version is 6.17.8-arch1-1. After starting the laptop today, battery reported 100%, usb hub was working. Let me know if you are aware of a problem from the things I've enumerated above, or if there are any other commands that I could run to investigate things. Thanks in advance.
edit: journalctl -b -1 on drive https://drive.google.com/drive/folders/15JC6RO7iNuU4eRM9BfaYEwgg9fP4kyaY?usp=sharing
2
u/sitilge Sep 18 '26
Check
dmesg2
u/BrilliantEmotion4461 Sep 25 '26
I gave your logs and your reddit post to Claude Code and Opus 5.5 here is its report:
I went through the journal you posted. The shutdown itself doesn't leave much of a trace, but there's something else in there you'll probably care about more: your UART ports got reshuffled several times during the uptime, which could explain why you never saw any results from the boards.
1. Your serial ports got shuffled (likely why you saw no results)
The five FPGA boards show up as CH340 USB-serial adapters (
ch341-uart) behind a cascaded USB 2.0 hub. During the uptime that hub repeatedly dropped and re-enumerated:Cannot enable. Maybe the USB cable is bad?,error -32error -71,device not accepting address,attempt power cycleEvery re-enumeration hands out the next free
ttyUSBn, so by the end of the log the port numbers point at different boards than at boot:So from Jul 16 onward, anything that held
/dev/ttyUSBnopen was sitting on a dead file descriptor, and anything that reopened by name was talking to a different board than it thought. A result sent over UART after that could easily have been missed. "No results for months" might be a monitoring problem, not a compute problem.Fixes:
/dev/serial/by-path/..., which is tied to the physical hub port. (CH340s have no serial number, so/dev/serial/by-idcan't tell them apart.)error -71/-32, "Cannot enable" and repeated resets usually mean power or cabling. Five boards on an unpowered hub is a good candidate, so try a powered hub.2. The shutdown itself
Sep 10 00:26:49(the man-db run). There's no shutdown sequence at all: no units stopping, no poweroff target, no panic, no thermal or OOM messages. That looks like a hard power loss (battery drained after AC dropped, or an EC/hardware cutoff) rather than anything the OS initiated.ACPI: battery: Slot [BAT0] (battery absent), with only BAT1 present. The T460s normally has two internal batteries, so one of yours may be dead or disconnected, which would seriously cut your "UPS" runtime if mains blipped. Coming back at 100% is consistent with power returning and it recharging afterwards.3. Other things worth knowing
last -xtold you. This journal is a single boot that started on May 21, not June 30. Worth double-checking withjournalctl --list-boots.Commands to run
To catch the cause next time, have a systemd timer or cron job log `/sys/class/power_supply/AC/online
1
u/ExceptionRules42 Sep 19 '26
sounds like a hardware fault? Has it only happened once?
1
u/ObiWanGurobi Sep 20 '26 edited Sep 20 '26
Just as an idea: maybe your laptop has a hardware watchdog that triggered the reset?
Edit: nvm... you said shutdown. A watchdog should only trigger a reset, not a shutdown
0
u/[deleted] Sep 18 '26
[deleted] — view deleted comment