You are not logged in.

#1 2017-07-29 16:06:10

fl4m3ph03n1x
Member
Registered: 2017-07-27
Posts: 26

[SOLVED] Network manager disabled when lid closed

I have a laptop and I want to IGNORE the lid. I don't want the laptop to sleep, hibernate, nothing. I want it to work as normal.

To achieve this, I followed the instructions in the debian docs for Jessie (8):
https://wiki.debian.org/Suspend

and so I ran:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Since that was not enough I also changed the logind.conf file by adding:

HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore

With that solved, I then had yet another issue: xdg was now locking my screen when I closed the lid.

To fix it I followed the solution on this link:
https://askubuntu.com/a/541093/149504

Which pretty much deletes the "/etc/xdg/autostart/light-locker.desktop" file... Good riddance.

Now however, I have a third problem, I was not yet able to fix.
When I close my lid, the network-manager gets disabled.

I have no idea why this is happening. All I know is that after closing the lid,I have to run

sudo service network-manager restart

to have internet again with the lid closed. Furthermore, if I close the lid and then open it again (without running the previous command) the network-manager never restarts, and so I loose my internet connection permanently until I either reboot or run the previous command.

In my mind, I am sure that the lid event is not being ignore by some process, but I don't know which.

TL;DR
How do I close the lid, without locking the screen and sleeping and without stopping my network manager?

Last edited by fl4m3ph03n1x (2017-07-29 20:08:41)

Offline

#2 2017-07-29 16:13:40

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Network manager disabled when lid closed

Why didn't you just r-click on the battery icon and choose Power Manager Settings?

Or Menu -> Preferences -> Power Management?

Sorry about all the bloat  ]:D


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-07-29 20:07:35

fl4m3ph03n1x
Member
Registered: 2017-07-27
Posts: 26

Re: [SOLVED] Network manager disabled when lid closed

-.-
....

Reverting all the files back to its original state and doing it via power options worked ...

Thanks ... I guess xD

Offline

Board footer

Powered by FluxBB