Comment 52 for bug 1555775

Revision history for this message
Andy Barry (abarry-gmail) wrote : Re: WiFi + wired ethernet broken after suspend on Alienware 15 R2

This script now solves the problem (although does cause a delay before wifi connection):

$ cat /etc/pm/sleep.d/alienware_pci_rescan
#! /bin/sh

# This script rescans the PCI bus after resume from suspend to fix
# broken WiFi, wired ethernet, and the card reader on the Alienware 15 R2.

case $1 in
     resume|thaw)
        echo 1 > /sys/bus/pci/devices/0000\:00\:1c.4/rescan
 echo 1 > /sys/bus/pci/devices/0000\:00\:1c.5/rescan
 echo 1 > /sys/bus/pci/devices/0000\:00\:1c.6/rescan
        ;;
esac