If after you suspend an alienware machine, the network is down, try this:
If this works:
echo 1 > sudo tee /sys/bus/pci/rescan
sleep 10s
sudo systemctl NetworkManager restart
create a script for it patch_alienware_no_networking_after_suspend.sh
echo 1 > /sys/bus/pci/rescan
sleep 10s
systemctl NetworkManager restart
Then you need to add that to the resume trigger
Create
/lib/systemd/system/alienware-resume.service
with these contents
[Unit]
Description=Rescan pci bus to recover network cards after resume
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target
[Service]
ExecStart=/PATH_TO_MY_SCRIPT/patch_alienware_no_networking_after_suspend.sh
[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target
now install the service:
sudo cp /home/jonny/Projects/patch/bin/patch_alienware_no_networking_after_suspend.service /lib/systemd/system/alienware-resume.service
sudo ln -s /lib/systemd/system/alienware-resume.service /etc/systemd/system/suspend.target.wants/
sudo ln -s /lib/systemd/system/alienware-resume.service /etc/systemd/system/hibernate.target.wants/
sudo ln -s /lib/systemd/system/alienware-resume.service /etc/systemd/system/hybrid-sleep.target.wants/
and enable the service
sudo systemctl enable alienware-resume