[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Issues resuming from hibernation



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


Reply to: