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

Archana Polampalli Archana.c727 at toshiba-tsip.com
Wed May 6 13:47:19 UTC 2020


4.IdleAction=lock does it work in tty console .

-----Original Message-----
From: Archana Polampalli 
Sent: Wednesday, May 6, 2020 2:52 PM
To: 'Archana Polampalli' <Archana.c727 at toshiba-tsip.com>; Lennart Poettering <lennart at poettering.net>
Cc: systemd-devel at lists.freedesktop.org
Subject: RE: [systemd-devel] IdleAction=lock not working in ubuntu

Hi Lennart ,
I have few more questions,

1.I have run $loginctl lock-session <session-ID> command in gnome DE,it is locking the session. and why it is not locking through logind.conf parameters.

2.As per my investigation on session locking,  logind uses DBus to propagate the "Lock" event .we will need an application that listens for those events for ex.xss-lock,GDM,SDDM So I have installed xss-lock though I found same behavior  

2.May I know which Desktop Environment support locking logic 1.Gnome 2.Mate 3.Lxde 4.Jwm


Thank in advance 

Regards,
Archana
-----Original Message-----
From: systemd-devel <systemd-devel-bounces at lists.freedesktop.org> On Behalf Of Archana Polampalli
Sent: Wednesday, May 6, 2020 2:25 PM
To: Lennart Poettering <lennart at poettering.net>
Cc: systemd-devel at lists.freedesktop.org
Subject: Re: [systemd-devel] IdleAction=lock not working in ubuntu

Thank you very much for the prompt reply

 I am using 'gnome' Desktop Environment

Regards,
Archana

-----Original Message-----
From: Lennart Poettering <lennart at poettering.net>
Sent: Wednesday, May 6, 2020 2:14 PM
To: Archana Polampalli <Archana.c727 at toshiba-tsip.com>
Cc: systemd-devel at lists.freedesktop.org
Subject: Re: [systemd-devel] IdleAction=lock not working in ubuntu

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
The information contained in this e-mail message and in any attachments/annexure/appendices is confidential to the recipient and may contain privileged information. 
If you are not the intended recipient, please notify the sender and delete the message along with any attachments/annexure/appendices. You should not disclose, copy or otherwise use the information contained in the message or any annexure. Any views expressed in this e-mail are those of the individual sender except where the sender specifically states them to be the views of Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.

Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Toshiba Embedded Software India Pvt. Ltd, for any loss or damage arising in any way from its use.

_______________________________________________
systemd-devel mailing list
systemd-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
The information contained in this e-mail message and in any
attachments/annexure/appendices is confidential to the 
recipient and may contain privileged information. 
If you are not the intended recipient, please notify the
sender and delete the message along with any 
attachments/annexure/appendices. You should not disclose,
copy or otherwise use the information contained in the
message or any annexure. Any views expressed in this e-mail 
are those of the individual sender except where the sender 
specifically states them to be the views of 
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.

Although this transmission and any attachments are believed to be
free of any virus or other defect that might affect any computer 
system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility 
is accepted by Toshiba Embedded Software India Pvt. Ltd, for any loss or
damage arising in any way from its use.



More information about the systemd-devel mailing list