MSI MAG B850 Tomahawk WiFi: WoL and AC Power Recovery seem to be broken in firmware

System: 9800X3D, Corsair Vengeance DDR5 6000MT/s CL28 EXPO, XFX Quicksilver RX 9070 XT, be quiet! Pure Power 13M 1000W (ATX 3.1), Samsung 990 EVO Plus 2TB. Arch Linux 6.18.9-arch1-2, KDE Plasma 6 Wayland. BIOS 7E62v2A48, AGESA PI 1.2.0.3g. System is rock solid otherwise.

WoL, restore on AC power loss, set to Power on or Last state, all do not work on this board, apparently. All I need is remote power-on. I’ve got a Wireguard VPN on a Pi, SSH works fine, I just cannot get the desktop to turn on without physically pressing the button. Spent days on this and I cant find any fault besides firmware. Hoping I’m wrong.

The onboard RTL8126 NIC reports PME support for D0 through D3cold. The hardware claims it can do this. Yet PME-Enable is never set during sleep transitions. The NIC link light dies the instant the system enters S3 or S5. No standby power to the NIC whatsoever, so obviously nothing gets through.

OS side everything should be in order. r8126 DKMS v10.016.00 loaded with s5wol=1 s0_magic_packet=1 disable_wol_support=0 because Realtek, for some reason, hides WoL behind undocumented module parameters. Wake-on: g confirmed and persists through suspend. PCI wakeup enabled in sysfs. BIOS has Resume By PCI-E Device enabled, Onboard LAN enabled, Network Stack enabled, ErP disabled. I have tested every permutation of Wake Up Event (BIOS/OS), Network Stack (on/off), and ErP (on/off). Tested WoL locally on the same subnet with both a Python script(Termux) and the Wake On Lan app(Android). NIC just has no power.

Now, wake up events aren’t all dead. A USB macropad on the BIOS USB port wakes the system from S3 just fine, the lights never turning off making me think that at least the USB always on works during S3 suspend. The board simply does not keep the NIC powered to use it.

Moved on to AC power recovery as a workaround with a smart plug, locally hosted of course. Set “Restore on AC Power Loss” to “Power On”. Clean shutdown, PSU off, wait, PSU on. Board does fuck all. Tried “Last State”. Same. Tried ErP both ways. Same. This is an ATX 3.1 PSU and this feature has worked since the 90s, don’t think 3.1 broke it.

So that’s three independent features that all rely on the firmware handling power states correctly, and all three are broken, I’m pretty sure. The hardware supports WoL. The driver configures it. The OS enables it. Macropad USB wake should prove the path can work. The PSU is compliant.

Two newer BIOS versions exist (7E62v2A4C and 7E62v2A50). Both only list “AGESA PI pre-1.3.0.0 updated” with no mention of power management fixes. I haven’t tested them because MSI doesn’t publish detailed changelogs and the last BIOS update on this board already broke my WiFi. Not testing my luck again.

Any tips are so damn welcome.

I’ve got AC power recovery working, with a caveat.

Got a Shelly Plug S Gen3 on the desktop’s power cable, local API, no cloud. Toggling power through the plug with “Restore on AC Power Loss: Power On” in BIOS boots the board on power restore.

You need to wait about 5 minutes between cutting and restoring power though. Anything shorter (tried 10s, 30s, 60s) and the board doesn’t register the power loss. Tested the 5 minute wait three times, boots every time. Pretty sure this is the be quiet! Pure Power 13M holding charge on the 5VSB rail. It’s a beefy 1000W PSU which, apparently, takes a while for standby voltage to fully drain. The board clearly doesn’t see a power loss event until that rail hits zero.

In practice this isn’t a problem. I cut power to the Shelly when I leave the house anyway, and by the time I need the desktop remotely the capacitors have long drained. VPN into my Pi, flip the plug back on, board boots. Still more roundabout than WoL but it works fine.

WoL is still completely broken. NIC still loses all power during S3 and S5, link light dies instantly on suspend. That hasn’t changed and I don’t expect it to without a BIOS update.

Posting this in case anyone else with this board is trying to get remote power-on working. Smart plug with a long enough delay between power cut and restore does the job.

Hi!

Just wanted to report back since this thread helped me a lot.

Almost same board (MAG B850 TOMAHAWK MAX WIFI) on BIOS 2A60, same RTL8126 NIC issue, running Arch Linux with Hyprland on Wayland and systemd-boot.

Confirmed your PME-Enable finding with setpci - writes to 0x4c immediately reset to 0x0000 firmware actively clearing it.

Worth noting that BIOS 2A60 (released June 2nd) includes a WoL-related fix - “Fixed system auto power-on when pressing the power button during POST after Wake-on-LAN.” Not the core PME issue, but maybe MSI is at least aware of WoL problems.

More importantly I found a combination that works: Wake Up Event By → BIOS (not OS) + Resume By PCIE Device → Enabled + ErP → Disabled. With r8126-dkms and s5wol=1, WoL from full S5 shutdown works reliably.

The OS mode seems to be the issue - when set to OS the firmware clears PME-Enable, but when set to BIOS it handles it internally and keeps the NIC powered.

Hope that helps you!