Bug#963135: systemd: logind parameters "IdleAction=Lock" is not working

Michael Biebl biebl at debian.org
Sun Jul 5 00:18:06 BST 2020


Hello

Am 19.06.20 um 16:09 schrieb venkat:
> ========================================================================================
> 
> I have seen the source code and after applying the below change the "Lock"
> event is working,
> 
> ========================================================================================
> diff --git a/src/login/logind.c b/src/login/logind.c
> index 95ec0a57c6..ea505ceed8 100644
> --- a/src/login/logind.c
> +++ b/src/login/logind.c
> @@ -1019,7 +1019,7 @@ static int manager_dispatch_idle_action(sd_event_source
> *s, uint64_t t, void *us
>                      (m->idle_action_not_before_usec <= 0 || n >=
> m->idle_action_not_before_usec + m->idle_action_usec)) {
>                          log_info("System idle. Taking action.");
> 
> -                        manager_handle_action(m, 0, m->idle_action, false,
> false);
> +                        manager_handle_action(m, 0, m->idle_action, false,
> true);
>                          m->idle_action_not_before_usec = n;
>                  }
> ========================================================================================
> 
> Is there any specific reason blocking the "Lock" action in the source code?
> If not, can this change will apply in upstream or at least as configurable.

I see that the relevant code is still unchanged in v245, the latest
upstream release. Could you please raise this upstream at
https://github.com/systemd/systemd and submit your change as PR.

Regards,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200705/7f1cb3ee/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list