Add systemd-sleep hook to restore network connectivity after resume#1925
Closed
segusantos wants to merge 1 commit into
Closed
Add systemd-sleep hook to restore network connectivity after resume#1925segusantos wants to merge 1 commit into
segusantos wants to merge 1 commit into
Conversation
Adds systemd-sleep hook that restarts network services after system resume: - Restarts systemd-networkd and iwd services when present and enabled - Helps resolve connectivity issues with captive portals after sleep/resume - Ensures reliable network reconnection in hotel wifi and public networks Includes migration script to deploy the sleep hook during system updates.
Member
|
This is an interesting idea, but I think it's too big of a hammer to hit with. We should be finding the specific issue and try to solve it at the root. This is not something I've seen on the Framework 13, for example. But would be nice to have this as a documented path for folks with this problem until we have a root-cause solution. Please do add it to Discussions > Manual ✌️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a
systemd-sleephook that restarts network services after the system resumes from sleep.systemd-networkdandiwdservices when present and enabled.I've had the issue of having to fully reboot in order to reconnect to captive portals after suspend for a while now, and restarting network services on resume fixed it for me.
I’m not fully certain if restarting these services is the ideal solution or if there’s a more subtle fix, but I'm open to discussion in order to fix this in the best way possible.