I solved the issue on a Qualcomm Atheros AR816x/AR817x adapter. Use at own risk!
I've done this fully remote on the affected machine with success.
sudo dmesg | grep -i ethernet
[ 7.494311] alx 0000:05:00.0 eth0: Qualcomm Atheros AR816x/AR817x Ethernet […]
Add Mainline Repository
This step is needed to install a newer kernel. As time of writing this the latest kernel version of Ubuntu 22.04 LTS is 5.15.0
, but the patches only work with some versions. I failed to apply the patches on 5.15.0
. I'm to lazy to compile and build the kernel from the sources.
As described in Ubuntu Mainline Kernel Installer:
sudo add-apt-repository ppa:cappelikan/ppa
sudo apt update
sudo apt install mainline
Install Kernel 5.16.xx
After adding the Mainline Repository you can install other kernel versions easily:
sudo mainline --install 5.16.20
sudo systemctl reboot
Note: A list of available versions can be gathered with: mainline --list
Patch the module
Before apply the patch, check the current running kernel version:
uname -r
5.16.20-051620-generic
Apply the patch:
git clone https://github.com/haojunyu/alx_dkms_installer
cd alx_dkms_installer
./setup
Note this repository is a fork of the Upstream / Orign, since the pull request: feat: add 5.16,support ubuntu22.04 is still open. (As time of writing).
Reboot again: sudo systemctl reboot
Check WOL capabilities
sudo ethtool enp5s0 | grep -i wake
Supports Wake-on: pg
Wake-on: pg
I'm able to power on the machine via WoL now. Powered it off and could power it on again via WoL.
Final Notes
I also tried the 6.0.9
kernel without patching. Still no WoL. I assume there won't be a fix. This hardware is a way of outdated.