Comment 49 for bug 1798921

Revision history for this message
Socratis K (socratis) wrote :

Sorry I couldn't test the pre-release version (out of order), but with my current version "4.15.0-50-generic", I still see the issue; the NICs aren't active upon wake up. I need the "/lib/systemd/system-sleep/sky2-refresh" workaround to make it happen:

#!/bin/bash

PROGNAME=$(basename "$0")
state=$1
action=$2

function log {
    logger -i -t "$PROGNAME" "$*"
}

log "Running $action $state"

if [[ $state == post ]]; then
    modprobe -r sky2 \
    && log "Removed sky2 for Marvell Ethernet" \
    && modprobe -i sky2 \
    && log "Inserted sky2 for Marvell Ethernet"
fi