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
signature.asc
Description: OpenPGP digital signature
