Now found this bug, I think it is the lightdm who is not reporting idle status to the system. See https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1730606 for a script I run via cron every 15 minutes that overrides active status of login screens or closing sessions. It also takes care of commands running under sleep inhibitor.
Now found this bug, I think it is the lightdm who is not reporting idle status to the system. See https:/ /bugs.launchpad .net/ubuntu/ +source/ lightdm/ +bug/1730606 for a script I run via cron every 15 minutes that overrides active status of login screens or closing sessions. It also takes care of commands running under sleep inhibitor.