Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential fix for WiFi resume from suspend #156

Open
nhobson99 opened this issue Oct 31, 2022 · 0 comments
Open

Potential fix for WiFi resume from suspend #156

nhobson99 opened this issue Oct 31, 2022 · 0 comments

Comments

@nhobson99
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant