pop-os / system76-driver

System76 Driver for Pop!_OS
Other
112 stars 29 forks source link

Reset network 'links' on resume from sleep #227

Closed danieljohnson2 closed 2 years ago

danieljohnson2 commented 2 years ago

This resets the network adapters that are up upon resuming from sleep, just before restarting the network manager. For me, this makes them work after resumption. Not too sure why.

I struggled to get this to work with /bin/sh, and wound up spinning up awk to parse the output of 'ip link list' to find the adapters that are up. I'm not sure this is acceptable, but I figured it was better than switching to /bin/bash.

Resolves #226

danieljohnson2 commented 2 years ago

It appears Pop!_OS 22.04 does not suffer from this issue, so no need for anything in this script.