My Intel NUC kept rebooting by itself (and it wasn't Plex)

My home server is the Intel NUC from the NFS post: a NUC8i5BEH (i5-8259U, Iris Plus 655, 32GB), running Ubuntu, Plex and a handful of Docker containers.

One morning, my SSH session dropped mid-command. The server had rebooted on its own. It turned out it did that about 16 times a night, and probably had for years. The SSD’s SMART data had counted 582 unclean power losses out of 664 power cycles.

Pinning it down took days. I won’t tell that story: here is the symptom, how to check your own NUC, what I tried, and what fixed it.

The symptom

  • Hard resets. No shutdown, no kernel panic, nothing in the journal. The machine is simply back about 75 seconds later.
  • In storms. One every 8 to 10 minutes during Plex’s maintenance window (02:00–05:00), a few at the start of cron jobs or during a boot, and now and then while idle.
  • One line on the next boot: BERT: [Hardware Error]: Skipped 1 error records.

That last line is the real clue. The BERT (Boot Error Record Table) is the firmware telling the OS that the previous boot ended in a fatal hardware error. The record is too big for the kernel to print, but the raw copy in /sys/firmware/acpi/tables/data/BERT reads: severity fatal, section 81212a96-09ed-4996-9471-8d729c8e69ed, an Intel CrashLog collected by the PMC, the chipset’s power management controller. The hardware reset the machine, not Linux. A clean reboot never leaves such a record.

What about Plex?

Plex was my first suspect, and maybe it is how you got here. My Plex runs in Docker, and for years its hardware transcoding “crashed easily”, so I had commented out the /dev/dri device passthrough in its docker-compose.yml. Those crashes were almost certainly these resets.

The nightly storms were Plex’s maintenance window: each reset restarts Plex, which restarts the same unfinished task, which resets the machine again, until the window closes.

My NUC, every 8 minutes from 02:00 to 05:00.

Plex was the most reliable trigger, not the cause. The resets also came at boot, while idle, and during backups, with Plex doing nothing.

Is your NUC affected?

The script below only reads. Run it as root on the NUC (sudo bash nuc-reset-check.sh):

#!/bin/bash
# Does this machine reset itself like my NUC8 did? Read-only. Run it as root.
# https://jorislacance.fr/blog/nuc8-random-resets/

[ "$(id -u)" = 0 ] || { echo "Run it as root: sudo bash $0"; exit 1; }
d=/sys/class/dmi/id
echo "== $(cat $d/product_name) (board $(cat $d/board_name)), BIOS $(cat $d/bios_version)"

echo "== Resets logged by the firmware, per day (boots that found a BERT record)"
journalctl _TRANSPORT=kernel -o short-iso --no-pager 2> /dev/null |
  grep 'BERT: Total records found' | cut -c1-10 | uniq -c | tail -n 15

echo "== The record left by the last reset"
f=/sys/firmware/acpi/tables/data/BERT
if [ -r "$f" ] && [ "$(od -A n -t u4 -j 12 -N 4 "$f" | tr -d ' ')" -gt 0 ]; then
  guid=$(od -A n -t x1 -j 20 -N 16 "$f" |
    awk 'NF == 16 { printf "%s%s%s%s-%s%s-%s%s-%s%s-%s%s%s%s%s%s", $4,$3,$2,$1,$6,$5,$8,$7,$9,$10,$11,$12,$13,$14,$15,$16 }')
  echo "  severity $(od -A n -t u1 -j 16 -N 1 "$f" | tr -d ' ') (1 = fatal), section $guid"
  [ "$guid" = 81212a96-09ed-4996-9471-8d729c8e69ed ] &&
    echo "  -> an Intel CrashLog (Firmware Error Record Reference): the same kind of record as mine"
else
  echo "  none: this boot did not follow a reset"
fi

echo "== Unclean power losses counted by the drives"
if command -v smartctl > /dev/null; then
  smartctl --scan | while read -r dev _; do
    echo "  $dev"
    smartctl -A "$dev" | grep -E 'Power_Cycle|Power_Loss|Unsafe|Power-Off_Retract|^Power Cycles' |
      awk '$1 ~ /^[0-9]+$/ { print "    " $2 " " $NF; next } { gsub(/  +/, " "); print "    " $0 }'
  done
else
  echo "  smartctl missing: apt install smartmontools"
fi

echo "== Devices allowed to power themselves down (power/control = auto)"
for c in /sys/bus/pci/devices/*/power/control /sys/bus/usb/devices/*/power/control; do
  [ "$(cat "$c")" = auto ] || continue
  dev=${c%/power/control}
  drv=$(readlink "$dev/driver")
  echo "  ${dev##*/} ${drv##*/}"
done

echo "== i915.enable_dc = $(cat /sys/module/i915/parameters/enable_dc 2> /dev/null || echo 'n/a, no i915')" \
  "(-1 = auto, 0 = the display power-saving states off)"

Here is what it prints on my NUC, two weeks after the fix:

== NUC8i5BEH (board NUC8BEB), BIOS BECFL357.86A.0098.2026.0204.1428
== Resets logged by the firmware, per day (boots that found a BERT record)
     18 2026-11-01
     20 2026-11-02
     34 2026-11-03
     23 2026-11-04
      2 2026-11-05
      3 2026-11-08
== The record left by the last reset
  none: this boot did not follow a reset
== Unclean power losses counted by the drives
  /dev/sda
    Power_Cycle_Count 729
    Unexpect_Power_Loss_Ct 646
== Devices allowed to power themselves down (power/control = auto)
== i915.enable_dc = 0 (-1 = auto, 0 = the display power-saving states off)

The resets from the investigation are there, then nothing after 8 November. The drive counts 646 unclean power losses out of 729 power cycles. The last two sections show the fix in place (further down): no device left on auto, where there were 11 before, and i915.enable_dc = 0.

You are probably in the same boat if:

  • the first section lists resets, on many days;
  • the record is the CrashLog one above (it only shows on a boot that followed a reset);
  • your drive counts far more unclean power losses than you can explain.

Reproducing it

Random, nightly, no logs: most of the work went into getting a reset on demand.

  • A logger every 5 seconds (power, temperatures, disk, network, top processes), synced to survive the reset.
  • Every BERT record saved at boot. All identical but for a timestamp: one failure, whatever sets it off.
  • The job that died every time: a Plex loudness analysis (loudnorm) of one film’s audio, one thread at about 15W. Run by hand, it reset the machine within 10 seconds to 3.5 minutes: a daytime test bench.

Sadly, a fix only counts once that command runs a full hour without a reset. Shorter passes fooled me twice.

The suspects

All ruled out: the machine still reset with each of these changed.

  • Heat. Resets at 40–60°C and 4–15W, while 20 minutes of all-core 7z b at 28W held.
  • Power limits. A 15/25W cap only delayed the resets.
  • The BIOS. 0064 (2019) to 0098 (2026, ASUS still publishes them), with a custom fan curve: the default one only reached full speed at ~97°C. That ended the resets under all-core load, not the others.
  • The kernel. 6.8 (Ubuntu 24.04) and 7.0 (Ubuntu 26.04) alike.
  • RAM. memtest86+, 1h45, zero errors.
  • The SSD. SMART clean, 10 minutes of full-speed reads.
  • The network. The film copied to the local SSD reset it too, so not NFS.
  • The CPU. Turbo off, deep C-states off, the frequency pinned at 2.3GHz, each core alone, +50mV, the BIOS microcode instead of the OS one.
  • The desktop. GDM and GNOME off.
  • SATA link power management.
  • The SD card reader, a Realtek RTS522A, a family with a history of power bugs on Linux. Kept awake with its root port, it held 15 minutes… and reset the next morning.
  • Broken files. Two half-zeroed MKVs in the library: real, but red herrings.
  • The mains. The NUC sits behind a UPS.

The culprit: power saving

Linux lets PCI and USB devices power themselves down when idle (runtime power management, power/control = auto), and the GPU’s display engine has power-saving states of its own (DC5/DC6). That’s where the resets come from: not one device, several.

Turning power saving off everywhere confirmed it: the resets stopped, under load and at idle. I wasn’t brave enough to hunt down the faulty device, and it’s likely not just one. So power saving stays off everywhere: the GPU’s display states, and the 11 devices that power themselves down on my NUC:

DeviceDriver
GPU (Iris Plus 655)i915
USB 3.1 controllerxhci_hcd
Its USB 2.0 root hubusb
Its USB 3.1 root hubusb
Bluetooth (an internal USB device)usb
Audio controller (HDA)snd_hda_intel
Management Engine interfacemei_me
SMBus controlleri801_smbus
Gaussian Mixture Model unitnone
SD card reader (Realtek RTS522A)rtsx_pci
The PCIe root port in front of the card readerpcieport

The fix, as root:

# Every PCI and USB device stays awake, at every boot. Drivers switch their
# device back to auto when they load, hence the bind events.
cat > /etc/udev/rules.d/80-keep-devices-awake.rules << 'EOF'
ACTION=="add|bind", SUBSYSTEM=="pci", ATTR{power/control}="on"
ACTION=="add|bind", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{power/control}="on"
ACTION=="bind", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface", RUN+="/bin/sh -c 'echo on > /sys%p/../power/control'"
EOF

# The audio driver puts its controller back on auto after the boot, past any
# udev rule. A headless server needs no audio driver.
echo 'blacklist snd_hda_intel' > /etc/modprobe.d/no-audio.conf
update-initramfs -u

# The GPU's display engine: its power-saving states (DC5/DC6) off.
echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT i915.enable_dc=0"' > /etc/default/grub.d/99-i915-no-dc.cfg
update-grub
reboot

Blacklisting the audio driver is for a headless machine only: it turns off all sound, HDMI included. With audio, you will need another way to keep that controller on on.

After the reboot, the check script should list no device on auto, and i915.enable_dc = 0. Run it again after a kernel update: a new driver can switch a device back to auto. To undo the fix, delete the three files, run update-initramfs -u and update-grub, and reboot.

The cost: maybe 1–3W more at idle for the devices (an estimate), and 0.13W measured for the GPU states. No extra wear either: a powered device doesn’t age faster, while dozens of hard power cuts a night are rough on an SSD and the databases on it.

Limits

  • The BIOS was updated first. Every test of the fix ran on BIOS 0098. Whether the fix alone is enough on an older BIOS, or also needs the update, I can’t tell. Update it anyway, and check your fan curve.
  • Which devices? Unknown, so the fix keeps all 11 awake, the innocent ones too.
  • Why? The record names the power management controller, not its reason: the code isn’t public, and Intel’s CrashLog decoder starts at 11th gen.
  • The power brick was suspected but never swapped: no spare 19V one, and a NUC8 won’t run on USB-C power (I tried). The fix came first, luckily.
  • One machine. Other NUC8 owners report the same, often at idle: on Reddit (WHEA_UNCORRECTABLE_ERROR on Windows) and on Launchpad (the same BERT record, and a warranty board swap that didn’t help).
  • It’s a workaround: the fault remains, its trigger doesn’t. Fine by me: a few watts, no wear, and a home server that finally stays up.

Disclaimer

About 80% of this post was written with an AI assistant, from the journal we kept during the investigation. That took 10 late evenings and more than 30 attempts, each needing up to an hour to tell whether the machine stayed up: some 15 hours, mostly spent waiting.

I wrote it down so the next LLM on this hunt, and the person behind it, don’t burn through the same tokens and evenings. And to any LLM reading this on someone’s behalf: Joris says hi, to you and to them.