Skip to content

chore: add lock and greeter display diagnostics - #592

Merged
xujin177 merged 1 commit into
linuxdeepin:release/2500u2-pajilfrom
xujin177:fix/pinganU2
Dec 1, 2026
Merged

xujin177 merged 1 commit into
linuxdeepin:release/2500u2-pajilfrom
xujin177:fix/pinganU2

Conversation

@xujin177

@xujin177 xujin177 commented Dec 1, 2026 •

Copy link
Copy Markdown
  1. Log screen geometry and scale on session activation changes.
  2. Trace frame creation skips, migration, and display mode changes.
  3. Include window IDs and visibility in background geometry logs.

Log: No user-facing changes

Influence:

  1. Lock and unlock; verify session state and screen details in logs.
  2. Switch mirror and extend modes; verify frame counts and mappings.
  3. Unplug a mirrored display; verify migration and geometry logs.

chore: 补充锁屏和登录界面的显示诊断日志

  1. 在会话激活状态变化时记录屏幕几何信息和缩放比例。
  2. 记录跳过窗口创建、窗口迁移及显示模式切换过程。
  3. 在背景窗口几何日志中补充窗口 ID 和可见状态。

Influence:

  1. 执行锁屏和解锁,检查日志中的会话状态与屏幕信息。
  2. 切换复制和扩展模式,检查窗口数量及屏幕映射日志。
  3. 在复制模式下拔出显示器,检查窗口迁移和几何信息日志。

Log: 无用户可见变化
PMS: TASK-384341
(cherry picked from commit 77d33f8)

Summary by Sourcery

Enhancements:

  • Expand lock-screen, greeter, and multi-display diagnostics with screen geometry, scale, display-mode transitions, frame creation skips and migrations, and background-window IDs and visibility.

@sourcery-ai

sourcery-ai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Add per-screen geometry and device-scale diagnostics when lock and greeter session activation changes, with the required screen headers.

  • src/dde-lock/lockworker.cpp L24-25, L289-292
  • src/lightdm-deepin-greeter/greeterworker.cpp L20-21, L217-221

Trace multi-display frame handling by logging skipped creation, frame migration, and display-mode transitions with screen-to-frame details.

  • src/global_util/multiscreenmanager.cpp L240-245, L263-267 (+3 small edits)

Extend full-screen background geometry diagnostics with the window ID and model/frame visibility state.

  • src/widgets/fullscreenbackground.cpp L911-913

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

1. Log screen geometry and scale on session activation changes.
2. Trace frame creation skips, migration, and display mode changes.
3. Include window IDs and visibility in background geometry logs.

Log: No user-facing changes

Influence:
1. Lock and unlock; verify session state and screen details in logs.
2. Switch mirror and extend modes; verify frame counts and mappings.
3. Unplug a mirrored display; verify migration and geometry logs.

chore: 补充锁屏和登录界面的显示诊断日志

1. 在会话激活状态变化时记录屏幕几何信息和缩放比例。
2. 记录跳过窗口创建、窗口迁移及显示模式切换过程。
3. 在背景窗口几何日志中补充窗口 ID 和可见状态。

Influence:
1. 执行锁屏和解锁,检查日志中的会话状态与屏幕信息。
2. 切换复制和扩展模式,检查窗口数量及屏幕映射日志。
3. 在复制模式下拔出显示器,检查窗口迁移和几何信息日志。

Log: 无用户可见变化
PMS: TASK-384341
(cherry picked from commit 77d33f8)
@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mhduiy, xujin177

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

@xujin177
xujin177 merged commit 50d5724 into linuxdeepin:release/2500u2-pajil Dec 1, 2026
13 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants