When I close the lid of my laptop, the Wifi should not disconnect automatically
At first I didn't understand your question but then surmised if you are closing your lid and want WiFi to stay on that must mean you have your Laptop docked or have an HDMI monitor attached and the system is suspending the Wifi.
You already edited logind.conf
once and need to again. Set the line:
HandleLidSwitchDocked=ignore
Then save the file and reboot. Hopefully this solves the problem. If so mark this as solution by clicking check mark, if not post a comment.
Related videos on Youtube
user2849789
Updated on September 18, 2022Comments
-
user2849789 over 1 year
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 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?
-
negusp over 7 yearsThe screen will switch off regardless of whether sleep is enabled. There is a magnetic sensor within the frame of the screen. You can't keep the wifi on and also use suspend. Is your computer suspending when you close the lid? The wifi shouldn't disconnect if its not suspending.
-
user2849789 over 7 yearsNope my computer doesn't suspend as I can play the songs when the lid is closed, but somehow the wifi is switched off and it doesnt even start automatically when I open the lid again