It's very unlikely that this is related to systemd, as it's got nothing at all to do with handling the user session and screen locking. This is handled by unity. The most probable reason is that unity crashes when it's trying to lock the screen. When this happens, do you get a crash notification? Do you have anything in /var/crash/ ? Please also attach ~/.cache/upstart/unity7.log right after this happens. Thanks!
** Package changed: systemd (Ubuntu) => unity (Ubuntu) ** Changed in: unity (Ubuntu) Status: New => Incomplete ** Summary changed: - When running systemd the system sometimes logs out rather than locking the scrren + the system sometimes logs out rather than locking the scrren ** Summary changed: - the system sometimes logs out rather than locking the scrren + the system sometimes logs out rather than locking the screen -- You received this bug notification because you are a member of DX Packages, which is subscribed to unity in Ubuntu. Matching subscriptions: dx-packages https://bugs.launchpad.net/bugs/1443791 Title: the system sometimes logs out rather than locking the screen Status in unity package in Ubuntu: Incomplete Bug description: I am using Ubuntu 15.04 and booting with systemd. In most cases locking the screen works as expected but in certain cases the machine logs out instead. Can this be fixed? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1443791/+subscriptions -- Mailing list: https://launchpad.net/~dx-packages Post to : dx-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~dx-packages More help : https://help.launchpad.net/ListHelp