Skip to content

fix(logind): don't setup idle session watch for lock-screen and greeter - #422

Open
deepin-ci-robot wants to merge 1 commit into
deepin-community:masterfrom
deepin-ci-robot:backport/fix-logind-idle-session-watch
Open

fix(logind): don't setup idle session watch for lock-screen and greeter#422
deepin-ci-robot wants to merge 1 commit into
deepin-community:masterfrom
deepin-ci-robot:backport/fix-logind-idle-session-watch

Conversation

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

Problem Before the Change

When StopIdleSessionSec= is configured, systemd-logind sets up a stop-on-idle session watch for every session, including greeter and lock-screen sessions. These session classes are idle by definition (they have no meaningful user activity), so the idle watch immediately considers them idle and the stop-idle-session logic can terminate them incorrectly.

What This PR Changes

Skip the idle session watch (stop-on-idle timer) for SESSION_GREETER and SESSION_LOCK_SCREEN session classes in session_setup_stop_on_idle_timer(), and document in man/logind.conf.xml that StopIdleSessionSec= does not apply to greeter or lock-screen sessions.

Problem Solved After the Change

Greeter and lock-screen sessions are no longer subject to the idle-session timeout, so they will not be stopped by the StopIdleSessionSec= logic while sitting idle.

Changes

  • Add debian/patches/fix-logind-idle-session-watch-lock-screen-greeter.patch
  • Modify debian/patches/series
  • Modify debian/changelog

Upstream

systemd/systemd@508b4786

Generated-By: glm-5.3-flash
Co-Authored-By: deepin-ci-robot packages@deepin.org

Reason to skip the idle session logic for these session classes is that
they are idle by default.

Changes:
  - Add debian/patches/fix-logind-idle-session-watch-lock-screen-greeter.patch
  - Modify debian/patches/series
  - Modify debian/changelog

Upstream: systemd/systemd@508b478

Generated-By: glm-5.3-flash
Co-Authored-By: deepin-ci-robot <packages@deepin.org>
@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tsic404 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

TAG Bot

TAG: 255.2-4deepin68
EXISTED: no
DISTRIBUTION: unstable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant