Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello everybody I have very anoying issue with my ubuntu 14.04. When I close the screen of my laptop, the system logs me off and I need to enter my password to log in again. That would not be a problem, but I use my laptop as router for my XB360 console, so laptop has to be loged in all the time to allow me connect with Xbox Live. I have already switch the option of freezing the computer after closing the screen, but it still log me off and it disconnects me with Xbox Live.

share|improve this question
up vote 0 down vote accepted

Run this in a terminal:

gksudo gedit /etc/systemd/logind.conf


sudo nano /etc/systemd/logind.conf

Then look for the value #HandleLidSwitch=suspend and remove the "#" at the beginning and change it to:


To apply the changes run:

sudo restart systemd-logind

More info you can find here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.