Framework 13 Ryzen AI 350 won't suspend in Linux due to mt7925e

Running Debian Trixie so this was on kernel 6.12.31. I’m running ZFS also and that didn’t support kernel 6.15 until ZFS 2.3.3 was released yesterday. I’m going to hold off building all that from source for now and wait until Debian has packages and then use them to upgrade to 6.15. For the moment I created systemd files to perform a workaround to fix the issue.

On sleep:

[Unit]
Description=Unload mt7925e wifi driver before sleep
Before=hibernate.target
Before=suspend.target

[Service]
ExecStart=/usr/sbin/modprobe -r mt7925e

[Install]
WantedBy=hibernate.target
WantedBy=suspend.target

On resume:

[Unit]
Description=Reload mt7925e wifi driver after resume from sleep
After=hibernate.target
After=suspend.target

[Service]
ExecStartPre=/usr/sbin/modprobe -r mt7925e
ExecStart=/usr/sbin/modprobe mt7925e

[Install]
WantedBy=hibernate.target
WantedBy=suspend.target

1 Like