I am running Ubuntu 16.04 and when the lid of my laptop is closed the wifi disconnects and needs to be turned on manually when the lid is opened.
I have tried the following till now, without any success:
sudo -H gedit /etc/systemd/logind.conf, Add a line HandleLidSwitch=ignore
IgnoreLid=true in /etc/UPower/UPower.conf
My settings in the power-manager are set to 'Do Nothing'. Can you please help in identifying the issue?