@Sebastien

Unity use unity-settings-daemon which depends on gnome-settings-daemon-
schemas and gsetting-ubuntu-schemas for power related settings.

How to reproduce:

1) Log in to unity-session

2) UCC-> Power

3) Choose "Do nothing" for lid is closed option.

It won't work. Certainly not without tweak-tool. But the Ubuntu
autostart ignore-lid-switch-tweak (/usr/lib/gnome-tweak-tool/gnome-
tweak-tool-lid-inhibitor) which needs to be disabled as well.


The patch only changes inhibit_lid_switch_action behavior. Gnome-shell can have 
tweak-tool, but other sessions are affected.


In short it's broken



Solution:
----------------

gsettings set org.gnome.settings-daemon.plugins.power.lid-close-ac-action 
'nothing'
gsettings set org.gnome.settings-daemon.plugins.power 
lid-close-suspend-with-external-monitor false

These schemas needs to be set to make it work properly. And we can do
that in "ubuntu-settings".

Also when laptop boots with lid-closed it's all gdm before login. So
these settings needs to be changed on the behalf of the gdm.

That way there won't be any conflict, both gnome-tweak-tool and unity
power settings will work properly.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1716160

Title:
  System goes to sleep with external monitor and lid closed after login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1716160/+subscriptions

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to