linux-cachyos icon indicating copy to clipboard operation
linux-cachyos copied to clipboard

[BUG] Poweroff returns to power-on on ASUS ROG STRIX X870E-E GAMING WIFI7 NEO (ErP On workaround; S5 wake source suspected)

Open XBold opened this issue 2 months ago • 3 comments

Pre-flight checklist

  • [x] I have searched existing issues and this is not a duplicate. (Related-but-closed: #529, #897.)
  • [x] I have read the Contributing Guidelines.
  • [x] I have verified the issue is reproducible with the latest available CachyOS kernel. (7.2.3-1-cachyos, current stable.)
  • [ ] I have tried to reproduce the issue on Arch Linux's linux kernel. — Not yet done. This is the open triage question: I believe the bug is firmware-side (it disappears with BIOS ErP On regardless of OS), but I have not yet confirmed whether it's kernel-specific. Happy to test linux-cachyos-zen and Arch linux and post the result.

Upstream / vanilla kernel check

  • I have not tested with a vanilla/upstream kernel yet. Based on the ErP behavior this points to firmware (BIOS) rather than the kernel, but I'll confirm with a vanilla-kernel test and update this issue.

Kernel variant

  • linux-cachyos (EEVDF, Clang) — running 7.2.3-1-cachyos (Clang 22.1.8, PREEMPT_DYNAMIC), booted via Limine.

System information (cachyos-bugreport.sh)

The script requires root and this box's sudo needs a password I don't have from the SSH account I used, so I couldn't capture its output. Provided inxi -Fxxxz manually below instead. I can attach a full bugreport if you tell me how to run it non-interactively / I can add the host to my sudoers.

Manual system information

  • Kernel version: 7.2.3-1-cachyos (x86_64, 64-bit, clang 22.1.8, clocksource tsc)
  • CPU: AMD Ryzen 9 9950X3D (16c/32t, Zen 5)
  • GPU: NVIDIA GB203 [GeForce RTX 5080] — driver nvidia 610.57.04
  • Board / firmware: ASUSTeK ROG STRIX X870E-E GAMING WIFI7 NEO, Rev 1.xx, UEFI, AMI BIOS 1002, dated 07/13/2026
  • RAM: 30 GiB
  • NICs: RTL8126 5GbE (r8169), MT7927 Wi-Fi 7 (mt7925e)
  • DE/init: KWin Wayland (Xwayland), systemd, btrfs subvol @
  • SCX scheduler: none active (scx_loader.service disabled)

Bug description

systemctl poweroff completes cleanly all the way to ACPI S5, but the board powers itself back on within seconds to ~1 minute, booting straight to the Limine boot manager. The machine behaves as if it rebooted. Behavior is intermittent — often the second consecutive poweroff sticks. Setting BIOS ErP Ready → On (S4+S5) stops it entirely; the bug only occurs with ErP Disabled.

Steps to reproduce

  1. BIOS → APM Configuration → ErP Ready: Disabled (or S5-only)
  2. From a logged-in CachyOS session, run systemctl poweroff
  3. OS shuts down fully to S5; wait a few seconds to ~1 minute
  4. Observe: board powers back on by itself (intermittent — repeat to see the auto-on; the next poweroff usually sticks)

Expected behavior

systemctl poweroff leaves the system off (S5). No automatic power-on.

Actual behavior

After a clean S5 power-off, the board powers back on by itself within ~1 minute and boots normally. Repeatable with ErP Disabled; not reproducible with ErP On (multiple cycles tested).

Logs / stack traces

From the journal of a failing boot, the shutdown is clean to the last second:

  • All filesystems unmounted, systemd-poweroff.service reached, Reached target Shutdown, no oops/panic, nowatchdog in cmdline.
  • No kernel errors in the final moments before S5.
  • No resume/S4 evidence in the following boot — this is a genuine power-on, not a resume.
  • last -x reboot shows a string of ~1-minute "boot sessions" — each is an auto power-on after a failed poweroff; the following real boot is minutes later.
  • While running, /proc/acpi/wakeup shows ~25 wake sources armed for S4/S5: XHCI0/1/2, PCIe GPP0/2/3/7/8, 10GbE upstream ports, USB hub ports.
  • Boot cmdline: quiet nowatchdog splash rw rootflags=subvol=/@ ... reboot=acpi. (reboot= only affects the warm-reset path and has no effect on this issue — confirmed.)
  • BIOS Memory Context Restore / Power Down Enable toggling: no effect (only made POST slower).

Hypothesis

With ErP Disabled, the board leaves a PCIe PME/USB wake source armed at S5 (5V standby present); a spurious wake event during the power-off transition makes the firmware power the system back on. That fits the "ErP On fixes it" data and points to firmware. However, the kernel's handling of PME wake enables at shutdown could be contributing (e.g. not clearing PME_En before the S5 transition, or an interaction with CachyOS ACPI/ASUS patches — cf. the suspicion in the now-closed #529). A kernel-side triage is welcome.

Additional system information

  • Also reported on the ASUS ROG forum: ROG STRIX X870E-E GAMING WIFI7 NEO — poweroff auto-powers-back-on (fixed by ErP On).
  • The user's only concern with the ErP On workaround is loss of Wake-on-LAN / standby wake, which they use for remote access — hence the ask for a proper fix rather than living with ErP On permanently.
  • Willing to run any requested kernel/parameter test (zen, Arch linux, pcie_port_pm=off, per-source wake disabling) and post results.

XBold avatar Sep 06 '26 12:09 XBold

I suspect i'm having the same issue on the Valve Steam Machine (Fremont) It also reboots when i'm pressing shutdown. However it does instantly reboots and does not "randomly" wait between 1 second and a minute before rebooting. I disabled all wake-on-.. options and it still reboots.

theupriser avatar Sep 08 '26 12:09 theupriser

I ran into what looks like a closely related issue on different X870E hardware, but with one important difference: ErP did not fix it in my case.

Hardware

  • Ryzen 9 9900X3D
  • Gigabyte X870E AORUS PRO ICE Rev. 1.0
  • RTX 5080
  • 64 GB DDR5-6000
  • Qualcomm WCN785x / FastConnect 7800 Wi-Fi 7 (17cb:1107)
  • BIOS F11 and final F12 / AGESA 1.3.0.1

Behaviour

systemctl poweroff completed normally, the machine physically powered off, then immediately powered itself back on and POSTed.

Windows had previously shut down normally on the same hardware.

I reproduced it on:

  • linux-cachyos 7.2.6-1-cachyos
  • linux-cachyos-lts 6.18.52-1-cachyos-lts
  • stock Arch 7.2.6-arch2-1
  • official Arch Linux 2026.09.01 live ISO
  • Bazzite/Fedora live environment

I also tested BIOS F11/F12, BIOS defaults, ErP on/off, Power Loading on/off, WoL disabled, USB wake disabled, and all currently enabled PCI wake sources disabled. None of those changed the behaviour.

The shutdown itself looked clean. On the following boot I repeatedly saw:

x86/amd: Previous system reset reason [0x00200800]: ACPI power state transition occurred

What finally fixed it

During testing I noticed the onboard Qualcomm WCN785x Wi-Fi PCIe function had completely disappeared from lspci, while the Bluetooth side of the module was still present over USB.

I then completely removed AC/standby power from the board for ~30 seconds, pressed the case power button while disconnected to discharge it, then restored power.

After that:

  • the WCN785x immediately reappeared in lspci
  • Linux shutdown started working normally
  • shutdown continued working with ErP both enabled and disabled

So in my case ErP itself was not the fix. The only thing that changed the behaviour was a complete loss of AC/5V standby power.

Seems like the Wi-Fi device was just another symptom, this looks like some persistent firmware/chipset/PCIe/platform power state surviving normal reboots and shutdowns until standby power was fully removed.

Sol-Arbiter avatar Sep 18 '26 06:09 Sol-Arbiter

Hi all, a little update: I've updated to version 1003 and now seems that the power off complete correctly. I'm not entirely sure if it was the version 1003 or some cachyOS updates but now the issue seems to be solved. Just to add more infos, to my computer is connected an old stereo with the jack 3.5mm and seems that when I cut the power to it, some "leftover" current go back to the motherboard turning it on. It happened to me only once and after I've removed power from my smart plug to the stereo. It's not related to this issue but I wanted to give some additional information that maybe can be helpful!

I'll proceed to close the issue, thanks everyone! 💃

XBold avatar Sep 23 '26 09:09 XBold