Re: Issues resuming from hibernation

solitone <[email protected]>
Newsgroups gmane.linux.debian.user.laptop
Message-ID <2110396.SRlKo3uQFU@alan>
On Sunday, December 25, 2016 8:22:27 PM CET solitone wrote:
> So, I found out that removing the wifi driver after wake up from hibernation
> (rmmod brcmfmac), and then reloading it again (modprobe brcmfmac) solves
> the problem. The network starts to work again.

And here's the script I wrote to automate it:

#!/bin/sh
#
# /usr/lib/systemd/system-sleep/network_hack_hibernation
#
# Restores network functionality after wakeup from hibernation
#
# Tested on MacBookPro12,1
# BCM43602 WiFi network controller

if [ "$2" = "hibernate" ]; then
    case "$1" in
        pre)
            if lsmod | grep -q brcmfmac; then
                rmmod brcmfmac
            fi
            ;;
        post)
            modprobe brcmfmac
            ;;
    esac
fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.