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


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