Thanks @Daniel for the workaround, it does the trick. Notice however, as I'm not sure I was clear enough, that the lid is already closed when the session begins, it's not an event that happens while the session has began.
Also notice it is a regression regarding the behaviour of Unity 7... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1716160 Title: System goes to sleep with lid closed after login To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1716160/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs