8

When I close lid and then I open it black screen appears (display seems to be turned off). I have tried all options in power management (screen turn off, suspend, block screen). Screen turn off and suspend options don't work completly but block screen seems to be little bugged. It takes me to login screen and then if i choose unblock black screen appears but if i choose user and then click unblock it works.

I have also tried to turn off lid handling but it seems that logind.conf (HandleLidSwitch=ignore) file is ignored and handling lid normally works..

I want it to work normally without black screen, so is there a way to fix block screen option bug or how can i turn off lid handling?

I'm running xUbuntu 16.04

xkazeshinix
  • 83
  • 1
  • 3

1 Answers1

9

To make Ubuntu do nothing when laptop lid is closed: Open the /etc/systemd/logind.conf file in a text editor as root, for example

sudo -H gedit /etc/systemd/logind.conf

Add a line HandleLidSwitch=ignore

Restart the systemd daemon with this command:

sudo service systemd-logind restart

If that didn't work set the following

IgnoreLid=true in /etc/UPower/UPower.conf

Sharad Gautam
  • 2,480
  • 2
  • 12
  • 24
Alan Jameson
  • 339
  • 1
  • 2
  • 12
  • 1
    HandleLidSwitch=ignore doesn't change anything but IgnoreLid=true in UPower.conf does :) however lid still works but now it just darken display and on reopening it comes back to life (maybe because it's old laptop Acer Aspire 5610) :) this resolve my problem thank you! :) – xkazeshinix Mar 31 '17 at 08:42
  • That's what happens to everyone laptop when you set this configuration. It dims when you close it. Your welcome and have a nice day dear. – Alan Jameson Mar 31 '17 at 09:31
  • This doesn't work for me – BourbonCreams Jun 01 '18 at 12:32