Nexus BIOS: enable auto power-on after AC loss #210
Labels
No labels
blocked
needs-manual-review
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
matt/homelab-docker#210
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Incident: Power outage overnight 2026-08-09. Nexus (HP Workstation) shut down gracefully via NUT at 05:20 EDT when its UPS (Battery Backup 2, CyberPower) hit low battery. AC power appears to have been restored by ~06:32 (based on PVE, on the separate Battery Backup 1/APC UPS, auto-recovering at that time), but Nexus stayed powered off until manually turned on at 20:26 EDT -- roughly 15 hours of unplanned downtime for all Docker services (Home Assistant, Frigate, Komodo, etc.).
Root cause: Nexus BIOS setting
Power state after power lossis set toPrevious State(readable via/sys/class/firmware-attributes/hp-bioscfg/attributes/Power state after power loss/current_value). Since NUT shut the machine down (S5/off) before AC returned, "previous state" was OFF, so the BIOS kept it off when power came back instead of booting.Fix: In BIOS/UEFI setup (or via the exposed
hp-bioscfgsysfs interface as root -- no BIOS admin password is set), changePower state after power lossfromPrevious StatetoPower On. This matches how PVE recovers automatically today.The sysfs write to make this change without a physical reboot into F10 setup:
Update: The
hp-bioscfgsysfs write path does NOT work on this hardware. Triedecho "Power On" | sudo tee .../current_valueandprintf %s "Power On" | sudo tee ...-- both failed withtee: Invalid argument.Kernel log shows why:
This machine's BIOS WMI implementation returns a truncated ACPI package (the driver expects 13 elements, gets 11), so
hp_bioscfgcan read attribute values but its write/set path is broken for this firmware -- not a string-formatting issue, a firmware/driver incompatibility.Resolution: use physical BIOS setup instead of the sysfs interface. Reboot -> F10 at POST -> Advanced/Power Management -> set "Power state after power loss" to "Power On" -> save & exit. That path doesn't go through this WMI interface so it should work regardless of the ACPI-package bug.