Recently Ubuntu removed code for laptop-lid-close-suspend-behavior from gnome-settings-daemon saying it’s buggy and creates problems when you attach a external monitor.
Bug: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1716160
Changelog: https://launchpad.net/ubuntu/+source/gnome-settings-daemon/3.26.1-0ubuntu3
This made unity-settings-daemon failed, so they patched back only gsettings schema part without the code. I am yet to find regressions on Unity because of this on my machines, so I am starting this thread.
On Unity laptop-lid-close-suspend-behavior is configurable. You can do it from Unity control center unlike in Gnome-Shell where you need tweak-tool. It is located at settings -> power-panel.
How-To-Test:
- Install unity-session on fresh machine. Log in .
- Go to the power panel , set
"when lid is closed" == "Do Nothing"
- Reboot. Close the laptop lid.
What happens ?
- Does it still suspend the laptop or does it simply blank the screen?
- Now change it back to “when lid is closed” == “Suspend”`.
- Connect a external monitor
- Reboot. And login keeping external monitor open.
- Colse the laptop lid
What happens ?
- Does it suspend the laptop ? (External monitor will go blank)
- Install gnome-tweak-tool.
sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop
- Reboot.
What happens ?
- Check autostart applications. Is there something like “ignore-lid-switch-tweak” auto-starting with boot for Unity session?
- If it is then repeat laptop-lid-close-suspend-behavior tests.
[If we are going to use our own unity.iso, then tweak-tool won’t be there and we don’t have to deal with it.]