[systemd-devel] IdleAction=lock not working in ubuntu

Lennart Poettering lennart at poettering.net
Wed May 6 08:43:40 UTC 2020


On Mi, 06.05.20 06:40, Archana Polampalli (Archana.c727 at toshiba-tsip.com) wrote:

> Hi All,
>
> My requirement is my system should get locked automatically when the system is idle for 5min.
> So for this I have configured /etc/system/logind.conf file as
> IdleAction = lock
> IdleActionSec=2min
>
> And I restarted systemd service with  'setemctl restart system-logind.service' and I kept my system idle for more than 20min,but system not getting locked .and
> IdleAction = poweroff
> IdleActionSec=2min
> Is working ,but lock not working,what I am missing here.
> Please any one can  help me at your earliest convenience .

Which desktop environment are you using? Not all DEs support the
locking logic and simply ignore it.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list