I am running ubuntu 18.04 on the XPS 15 9570. Dell removed normal sleep in favor of their modern-standby mode. This means battery drain and fans running while the laptop is in my backpack. In windows I was able to throw my laptop into hybrid sleep, and Ubuntu into deep sleep.
My current issue is that, after waking from deep sleep, my wifi is on, but shows as a question mark and will not allow me to browse the internet. I am using a killer wireless card, the one that dell ships with this laptop.
I found a fix for this to be
service network-manager restart
However, I do not want to run this manually every time I wake the laptop. I have tried other solutions from here about putting a script in
/lib/systemd/system-sleep/, however nothing has worked. I suspect this may be due to my change to deep sleep, but I am not 100% sure.
Can anyone help me run a script on wake from deep sleep, or even login of a user?