Potential fix for WiFi resume from suspend
Opened this issue · 0 comments
nhobson99 commented
Currently, wifi supported for Snapdragon 7C devices is considered "flaky." I've found part of this to be that wifi does not resume alongside the OS when waking from sleep.
I was able to fix this by modifying /usr/lib/pm-utils/sleep.d/60_wpa_supplicant
to the following:
#!/bin/sh
# /etc/pm/sleep.d/60_wpa_supplicant
# Action script to notify wpa_supplicant of pm-action events.
PATH=/sbin:/usr/sbin:/bin:/usr/bin
WPACLI=wpa_cli
case "$1" in
suspend|hibernate)
$WPACLI suspend
;;
resume|thaw)
systemctl restart systemd-networkd # THIS PART CHANGED
$WPACLI resume
;;
esac
exit 0
If this fix ends up breaking in the next few days, I will update the issue accordingly. I've been making other small QoL changes as well, mostly to do with keyboard shortcuts and mouse gesture support, though they're not what I'd call usable at the moment.