Skip to content

fix(osd): speed up checkmark updates during Super+P cycling - #1881

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:release/2500u2from
52cyb:tmp/bug-383567-super-p-2500u2
Dec 1, 2026
Merged

deepin-bot[bot] merged 1 commit into
linuxdeepin:release/2500u2from
52cyb:tmp/bug-383567-super-p-2500u2

Conversation

@52cyb

@52cyb 52cyb commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

修复内容

  • 显示模式 OSD 已打开且没有较早请求等待时,立即分发连续的 Super+P 请求,直接推进勾选。
  • 候选列表读取失败时在下一次按键重试。列表可用但当前模式未知时,从首项开始轮选。
  • 保留 release/2500u2 按候选项 key 查找当前选项的逻辑。停按两秒后应用最终选项。

验证

  • osdpanel 和 osd-displaymode 编译通过,git diff --check 通过。
  • 双屏实机待验证按住 Super 连按 P、最终切屏和首次读取失败后的恢复。

PMS: BUG-383567

Summary by Sourcery

Make rapid display-mode cycling responsive and reliable while keeping the OSD synchronized with display and audio state.

Bug Fixes:

  • Keep the display-mode OSD visible for the full request period during rapid Super+P cycling, and apply the final selected mode after cycling stops.
  • Retry loading display-mode candidates after a failed read, and cycle from the first candidate when the current mode is unknown.
  • Update the audio OSD when the default sink, volume, or mute state changes.

Enhancements:

  • Dispatch repeated display-mode requests immediately while the OSD is already handling monitor-switch cycling.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Uses of the API

Handle repeated SwitchMonitors requests before syncing display state, so each eligible press advances the checkmark without an unnecessary synchronous refresh.

  • panels/notification/osd/displaymode/package/main.qml L21-33

Implementation

Track the default audio sink and update cached volume and mute state from D-Bus notifications so the audio OSD reflects live changes without repeatedly fetching mute state for its icon.

  • panels/notification/osd/audio/audioapplet.cpp L18-36, L49-62, L80-148 (+5 small edits)
  • panels/notification/osd/audio/audioapplet.h L9-14, L47-55 (+3 small edits)

Refresh and validate the display-mode candidate list on demand, advance the cached selection on repeat presses, and retain the chosen mode until the action timer applies it.

  • panels/notification/osd/displaymode/displaymodeapplet.cpp L105-115, L120-130, L161-165 (+3 small edits)
  • panels/notification/osd/displaymode/displaymodeapplet.h L75-76, L83

Replace the queued hide callback with a cancellable timer and dispatch OSD requests immediately, preventing an earlier hide from shortening a newer request.

  • panels/notification/osd/osdpanel.cpp L51-54, L72-78 (+4 small edits)
  • panels/notification/osd/osdpanel.h L1, L49

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 found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="panels/notification/osd/displaymode/package/main.qml" line_range="31-33" />
<code_context>
-
-            if (osdType === "DirectSwitchLayout") {
-                if (Applet.state !== 2) {
-                    Applet.doAction()
-                }
-            } else if (osdType === "SwitchMonitors") {
-                if (Panel.lastOsdType() === osdType) {
-                    Applet.next()
-                }
-            }
+        if (!match(osdType))
+            return false

+        if (osdType === "SwitchMonitors" && Panel.lastOsdType() === osdType) {
+            Applet.next()
             return true
         }
-        return false
</code_context>
<issue_to_address>
**Unwanted display-mode OSD appears**

When a `DirectSwitchLayout` request is dispatched, `update()` now returns `true` for `DirectSwitchLayout`, so the parent OSD package activates this applet even though this path only syncs and optionally applies the mode; users see the display-mode selection overlay for a direct-switch request.

Preserve the false return for `DirectSwitchLayout` if that request should apply the mode without activating the display-mode OSD.
</issue_to_address>

### Comment 2
<location path="panels/notification/osd/osdpanel.cpp" line_range="78" />
<code_context>
+    // Keep repeat presses behind any OSD requests already scheduled for delivery.
+    if (m_visible && m_pendingDispatches == 0 && text == QLatin1String("SwitchMonitors")
+        && m_lastOsdType == text) {
+        dispatch();
+        return;
+    }
</code_context>
<issue_to_address>
**New cycling OSD hides prematurely**

When a new SwitchMonitors request arrives after `doneSetting()` has queued a hide but before that hide runs, `dispatch()` calls `showOsd()`, which restarts `m_osdTimer` but does not cancel a hide already scheduled by `doneSetting()`; that stale callback hides the OSD at its original deadline, so the user loses the checkmark before cycling finishes.

Cancel or invalidate pending hide callbacks whenever `showOsd()` displays or refreshes the OSD.
</issue_to_address>

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

Comment on lines +31 to +33
Applet.doAction()

return true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Unwanted display-mode OSD appears

When a DirectSwitchLayout request is dispatched, update() now returns true for DirectSwitchLayout, so the parent OSD package activates this applet even though this path only syncs and optionally applies the mode; users see the display-mode selection overlay for a direct-switch request.

Preserve the false return for DirectSwitchLayout if that request should apply the mode without activating the display-mode OSD.

Prompt for AI agents
In `panels/notification/osd/displaymode/package/main.qml` at lines 31-33:

**Unwanted display-mode OSD appears**

When a `DirectSwitchLayout` request is dispatched, `update()` now returns `true` for `DirectSwitchLayout`, so the parent OSD package activates this applet even though this path only syncs and optionally applies the mode; users see the display-mode selection overlay for a direct-switch request.

Preserve the false return for `DirectSwitchLayout` if that request should apply the mode without activating the display-mode OSD.

Comment thread panels/notification/osd/osdpanel.cpp Resolved
@deepin-ci-robot

deepin-ci-robot commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ OBS CI 构建警告日志 (Commit: 88173d85)

提示:以下为 OBS CI 构建中 Lintian 检测到的警告信息,默认折叠,点击展开查看详情。完整日志请参阅对应构建状态链接。

deepin_develop / aarch64 (Lintian 警告: 15 条)
[ 1921s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[ 1921s] N: 
[ 1921s] N:   The desktop entry specifies a Command that does not match any of the
[ 1921s] N:   executables shipped in the package.
[ 1921s] N:   
[ 1921s] N:   This condition is often caused by a typo, or the desktop file was not
[ 1921s] N:   updated after the installed path of the executable was modified.
[ 1921s] N:   
[ 1921s] N:   Packages should ship executables that are used as commands in desktop
[ 1921s] N:   files.
[ 1921s] N: 
[ 1921s] N:   Visibility: warning
[ 1921s] N:   Show-Always: no
[ 1921s] N:   Check: menu-format
[ 1921s] N: 
[ 1921s] N:
[ 1921s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/aarch64-linux-gnu/libds-notification-shared.so.2.0.61.1 [usr/lib/aarch64-linux-gnu/libds-notification-shared.so]
[ 1921s] N: 
[ 1921s] N:   Although this package is not a "-dev" package, it installs a
[ 1921s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[ 1921s] N:   library. When the link doesn't include the version number, it is used by
[ 1921s] N:   the linker when other programs are built against this shared library.
[ 1921s] N:   
[ 1921s] N:   Shared libraries are supposed to place such symbolic links in their
[ 1921s] N:   respective "-dev" packages, so it is a bug to include it with the main
[ 1921s] N:   library package.
[ 1921s] N:   
[ 1921s] N:   However, if this is a small package which includes the runtime and the
[ 1921s] N:   development libraries, this is not a bug. In the latter case, please
[ 1921s] N:   override this warning.
[ 1921s] N: 
[ 1921s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[ 1921s] N:   Manual for details.
[ 1921s] N: 
[ 1921s] N:   Visibility: warning
[ 1921s] N:   Show-Always: no
[ 1921s] N:   Check: libraries/shared/links
[ 1921s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[ 1921s] N: 
[ 1921s] N:
[ 1921s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[ 1921s] N: 
[ 1921s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[ 1921s] N:   a manual page
[ 1921s] N:   
[ 1921s] N:   Note that though the man program has the capability to check for several
[ 1921s] N:   program names in the NAMES section, each of these programs should have its
[ 1921s] N:   own manual page (a symbolic link to the appropriate manual page is
[ 1921s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[ 1921s] N:   support this.
[ 1921s] N:   
[ 1921s] N:   If the name of the manual page differs from the binary by case, man may be
[ 1921s] N:   able to find it anyway; however, it is still best practice to match the
[ 1921s] N:   exact capitalization of the executable in the manual page.
[ 1921s] N:   
[ 1921s] N:   If the manual pages are provided by another package on which this package
[ 1921s] N:   depends, Lintian may not be able to determine that manual pages are
[ 1921s] N:   available. In this case, after confirming that all binaries do have manual
[ 1921s] N:   pages after this package and its dependencies are installed, please add a
[ 1921s] N:   Lintian override.
[ 1921s] N: 
[ 1921s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[ 1921s] N:   for details.
[ 1921s] N: 
[ 1921s] N:   Visibility: warning
[ 1921s] N:   Show-Always: no
[ 1921s] N:   Check: documentation/manual
[ 1921s] N:   Renamed from: binary-without-manpage
[ 1921s] N: 
[ 1921s] N:
[ 1921s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[ 1921s] N: 
[ 1921s] N:   When you NMU a package, that fact should be mentioned on the first line in
[ 1921s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[ 1921s] N:   insensitive).
[ 1921s] N:   
[ 1921s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[ 1921s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[ 1921s] N:   identical to the maintainer or one of the uploaders. If this is a local
[ 1921s] N:   package (not intended for Debian), you can suppress this warning by
[ 1921s] N:   putting "local" in the version number or "local package" on the first line
[ 1921s] N:   of the changelog entry.
[ 1921s] N: 
[ 1921s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[ 1921s] N:   Developer's Reference for details.
[ 1921s] N: 
[ 1921s] N:   Visibility: warning
[ 1921s] N:   Show-Always: no
[ 1921s] N:   Check: nmu
[ 1921s] N:   Renamed from: changelog-should-mention-nmu
[ 1921s] N: 
[ 1921s] N:
[ 1921s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[ 1921s] N: 
[ 1921s] N:   The package name of a library package should usually reflect the soname of
[ 1921s] N:   the included library. The package name can determined from the library
[ 1921s] N:   file name with the following code snippet:
[ 1921s] N:   
[ 1921s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[ 1921s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[ 1921s] N: 
[ 1921s] N:   Visibility: warning
[ 1921s] N:   Show-Always: no
[ 1921s] N:   Check: libraries/shared/soname
[ 1921s] N: 
[ 1921s] N:
[ 1921s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[ 1921s] N:
[ 1921s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[ 1921s] N:
[ 1921s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61.1+u006 [debian/changelog:1]
[ 1921s] N: 
[ 1921s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[ 1921s] N:   native package). This is to prevent stealing version numbers from the
[ 1921s] N:   maintainer.
[ 1921s] N:   
[ 1921s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[ 1921s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[ 1921s] N:   identical to the maintainer or one of the uploaders. If this is a local
[ 1921s] N:   package (not intended for Debian), you can suppress this warning by
[ 1921s] N:   putting "local" in the version number or "local package" on the first line
[ 1921s] N:   of the changelog entry.
[ 1921s] N: 
[ 1921s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[ 1921s] N:   Developer's Reference for details.
[ 1921s] N: 
[ 1921s] N:   Visibility: warning
[ 1921s] N:   Show-Always: no
[ 1921s] N:   Check: nmu
[ 1921s] N: 
[ 1921s] N:
[ 1921s] W: dde-shell: unknown-section DDE
[ 1921s] N: 
[ 1921s] N:   The "Section:" field in this package's control file is not one of the
[ 1921s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[ 1921s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[ 1921s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[ 1921s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[ 1921s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[ 1921s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[ 1921s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[ 1921s] N:   
[ 1921s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[ 1921s] N:   "non-free-firmware/" if the package is in the according archive area.
[ 1921s] N: 
[ 1921s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[ 1921s] N:   details.
[ 1921s] N: 
[ 1921s] N:   Visibility: warning
[ 1921s] N:   Show-Always: no
[ 1921s] N:   Check: fields/section
[ 1921s] N: 
[ 1921s] N:
[ 1921s] W: dde-shell-example: unknown-section DDE
[ 1921s] N:
[ 1921s] W: libdde-shell: unknown-section DDE
[ 1921s] N:
[ 1921s] W: libdde-shell-dev: unknown-section DDE
[ 1921s] N:
[ 1921s] W: libdde-shell-dock: unknown-section DDE
[ 1921s] N:
[ 1921s] W: libdde-shell-dock-dev: unknown-section DDE
[ 1921s] Warning: mkbaselibs missing in build root, skipping baselibs
deepin_develop / x86_64 (Lintian 警告: 15 条)
[  341s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  341s] N: 
[  341s] N:   The desktop entry specifies a Command that does not match any of the
[  341s] N:   executables shipped in the package.
[  341s] N:   
[  341s] N:   This condition is often caused by a typo, or the desktop file was not
[  341s] N:   updated after the installed path of the executable was modified.
[  341s] N:   
[  341s] N:   Packages should ship executables that are used as commands in desktop
[  341s] N:   files.
[  341s] N: 
[  341s] N:   Visibility: warning
[  341s] N:   Show-Always: no
[  341s] N:   Check: menu-format
[  341s] N: 
[  341s] N:
[  341s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/x86_64-linux-gnu/libds-notification-shared.so.2.0.61.1 [usr/lib/x86_64-linux-gnu/libds-notification-shared.so]
[  341s] N: 
[  341s] N:   Although this package is not a "-dev" package, it installs a
[  341s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  341s] N:   library. When the link doesn't include the version number, it is used by
[  341s] N:   the linker when other programs are built against this shared library.
[  341s] N:   
[  341s] N:   Shared libraries are supposed to place such symbolic links in their
[  341s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  341s] N:   library package.
[  341s] N:   
[  341s] N:   However, if this is a small package which includes the runtime and the
[  341s] N:   development libraries, this is not a bug. In the latter case, please
[  341s] N:   override this warning.
[  341s] N: 
[  341s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  341s] N:   Manual for details.
[  341s] N: 
[  341s] N:   Visibility: warning
[  341s] N:   Show-Always: no
[  341s] N:   Check: libraries/shared/links
[  341s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  341s] N: 
[  341s] N:
[  341s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  341s] N: 
[  341s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  341s] N:   a manual page
[  341s] N:   
[  341s] N:   Note that though the man program has the capability to check for several
[  341s] N:   program names in the NAMES section, each of these programs should have its
[  341s] N:   own manual page (a symbolic link to the appropriate manual page is
[  341s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  341s] N:   support this.
[  341s] N:   
[  341s] N:   If the name of the manual page differs from the binary by case, man may be
[  341s] N:   able to find it anyway; however, it is still best practice to match the
[  341s] N:   exact capitalization of the executable in the manual page.
[  341s] N:   
[  341s] N:   If the manual pages are provided by another package on which this package
[  341s] N:   depends, Lintian may not be able to determine that manual pages are
[  341s] N:   available. In this case, after confirming that all binaries do have manual
[  341s] N:   pages after this package and its dependencies are installed, please add a
[  341s] N:   Lintian override.
[  341s] N: 
[  341s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  341s] N:   for details.
[  341s] N: 
[  341s] N:   Visibility: warning
[  341s] N:   Show-Always: no
[  341s] N:   Check: documentation/manual
[  341s] N:   Renamed from: binary-without-manpage
[  341s] N: 
[  341s] N:
[  341s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  341s] N: 
[  341s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  341s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  341s] N:   insensitive).
[  341s] N:   
[  341s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  341s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  341s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  341s] N:   package (not intended for Debian), you can suppress this warning by
[  341s] N:   putting "local" in the version number or "local package" on the first line
[  341s] N:   of the changelog entry.
[  341s] N: 
[  341s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  341s] N:   Developer's Reference for details.
[  341s] N: 
[  341s] N:   Visibility: warning
[  341s] N:   Show-Always: no
[  341s] N:   Check: nmu
[  341s] N:   Renamed from: changelog-should-mention-nmu
[  341s] N: 
[  341s] N:
[  341s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  341s] N: 
[  341s] N:   The package name of a library package should usually reflect the soname of
[  341s] N:   the included library. The package name can determined from the library
[  341s] N:   file name with the following code snippet:
[  341s] N:   
[  341s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  341s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  341s] N: 
[  341s] N:   Visibility: warning
[  341s] N:   Show-Always: no
[  341s] N:   Check: libraries/shared/soname
[  341s] N: 
[  341s] N:
[  341s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  341s] N:
[  341s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  341s] N:
[  341s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61.1+u006 [debian/changelog:1]
[  341s] N: 
[  341s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  341s] N:   native package). This is to prevent stealing version numbers from the
[  341s] N:   maintainer.
[  341s] N:   
[  341s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  341s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  341s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  341s] N:   package (not intended for Debian), you can suppress this warning by
[  341s] N:   putting "local" in the version number or "local package" on the first line
[  341s] N:   of the changelog entry.
[  341s] N: 
[  341s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  341s] N:   Developer's Reference for details.
[  341s] N: 
[  341s] N:   Visibility: warning
[  341s] N:   Show-Always: no
[  341s] N:   Check: nmu
[  341s] N: 
[  341s] N:
[  341s] W: dde-shell: unknown-section DDE
[  341s] N: 
[  341s] N:   The "Section:" field in this package's control file is not one of the
[  341s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  341s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  341s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  341s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  341s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  341s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  341s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  341s] N:   
[  341s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  341s] N:   "non-free-firmware/" if the package is in the according archive area.
[  341s] N: 
[  341s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  341s] N:   details.
[  341s] N: 
[  341s] N:   Visibility: warning
[  341s] N:   Show-Always: no
[  341s] N:   Check: fields/section
[  341s] N: 
[  341s] N:
[  341s] W: dde-shell-example: unknown-section DDE
[  341s] N:
[  341s] W: libdde-shell: unknown-section DDE
[  341s] N:
[  341s] W: libdde-shell-dev: unknown-section DDE
[  341s] N:
[  341s] W: libdde-shell-dock: unknown-section DDE
[  341s] N:
[  341s] W: libdde-shell-dock-dev: unknown-section DDE
[  341s] Warning: mkbaselibs missing in build root, skipping baselibs

@52cyb
52cyb force-pushed the tmp/bug-383567-super-p-2500u2 branch 2 times, most recently from 375ff90 to 3abcf51 Compare November 26, 2026 04:15
1. Dispatch OSD requests immediately by removing the fixed 100 ms delay.
2. Read display state on open. Advance the checkmark from the cached list
   on repeat presses and apply the final selection after two seconds.
3. Retry failed list reads. Start from the first item if the active mode
   or primary output is unknown.
4. Update audio OSD from Volume and Mute notifications. Refresh volume,
   mute and the volume boost setting when the default output changes.

Log: Improve Super+P checkmark response and refresh audio OSD on changes

Influence:
1. Verify the first Super+P press shows the active display mode.
2. Hold Super and tap P repeatedly. Verify the checkmark advances and
   only the final selection is applied after two seconds.
3. Verify recovery after a failed display list or mode read.
4. Test volume up from zero, mute and switching the default audio output
   while the OSD is visible. Check the progress bar and 100% mark.

fix(osd): 加快 Super+P 切换显示模式时的勾选更新

1. 移除 OSD 固定的 100 ms 延时,收到请求后立即派发。
2. 首次打开读取显示状态,连按时用缓存列表推进勾选,
   停按两秒后应用最后选中的模式。
3. 候选列表读取失败时重试,当前模式或主屏未知时从首项开始轮选。
4. 根据音量和静音通知补刷音量 OSD,默认输出切换时同时刷新
   音量、静音和音量增强设置。

Influence:
1. 首按 Super+P,确认面板勾选当前模式。
2. 按住 Super 连按 P,确认勾选逐次推进,停按两秒只应用最后一项。
3. 验证候选列表或实际模式读取失败后仍能恢复轮选。
4. 验证音量从零回升、静音和面板可见时切换默认输出,
   检查进度条和 100% 刻度是否正确。

Log: 加快 Super+P 勾选更新,并在音量状态变化后补刷面板
PMS: BUG-383567
@52cyb
52cyb force-pushed the tmp/bug-383567-super-p-2500u2 branch from 3abcf51 to 88173d8 Compare December 1, 2026 08:39
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 52cyb, wjyrich

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

@52cyb

52cyb commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

/forcemerge

@deepin-bot
deepin-bot Bot merged commit d35fbb7 into linuxdeepin:release/2500u2 Dec 1, 2026
6 of 13 checks passed
@deepin-bot

deepin-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

This pr force merged! (status: unstable, merge_method: rebase)

@52cyb
52cyb deleted the tmp/bug-383567-super-p-2500u2 branch December 1, 2026 08:49
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