Mute requires two presses after restoring volume when “Enable Mute DDC command” is disabled

Đang mở
#1,935 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@proever đang làm issue này rồi.

Từ ngày 13/11/2026.

  • #1 của @proever — đang mở
  • #1937 của @proever — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
swift
Lĩnh vực
desktop

Hướng nghiên cứu

Start with OtherDisplay.stepVolume and toggleMute() in MonitorControl/Model/OtherDisplay.swift, and check how the enableMuteUnmute setting gates the saved mute state. Review open pull request #1937 first, since it already targets this bug. Done means that after a volume-up restores sound, the next mute press mutes, and that this holds with the mute DDC command disabled.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug

After muting a monitor and restoring sound with a volume key, the next mute press does nothing audible. A second press mutes successfully.

Repeated mute/unmute presses work normally until volume is adjusted again. I reproduced this with both the MacBook’s built-in keyboard and a Logitech MX Keys S for Mac.

Steps to reproduce
  1. Select the Dell S2725QC speakers as the macOS sound output.
  2. In MonitorControl’s display settings, enable hardware DDC and keyboard control, and leave Enable Mute DDC command unchecked.
  3. Play audio at a moderate volume.
  4. Press mute. Audio stops.
  5. Press volume-up. Audio resumes.
  6. Press mute once. Audio remains audible.
  7. Press mute again. Audio stops.
Expected behavior

The first mute press in step 6 should silence the speakers.

Anything else?

Enabling Enable Mute DDC command makes mute stop working entirely on this display. Published S2725QC capability data includes volume control (0x62) but omits the separate mute command (0x8D), so enabling that option isn’t a working workaround. Capability data

A possible cause is in OtherDisplay.stepVolume: it calculates the updated mute state, but saves it only when enableMuteUnmute is enabled. Meanwhile, toggleMute() saves and reads that state regardless of the setting. This appears to leave “muted” recorded after a volume adjustment has restored sound, causing the next mute press to perform an unmute.

Could the logical mute state stay synchronized when using the volume-zero fallback? This is a source-level hypothesis; I haven’t tested a patched build.

Possibly related: #1294, with the sequence above providing a specific reproduction.

Environment
  • macOS 27.2.1 (26B131)
  • MacBook Pro, M4 Pro (Mac16,7)
  • MonitorControl 4.4.0, build 7152
  • Dell S2725QC, built-in speakers
  • Built-in keyboard and Logitech MX Keys S for Mac
  • OpenLogi 0.8.14 was running; not yet retested with it quit

AI disclosure: Codex assisted with source inspection and drafting this report. I personally confirmed the reproduction steps above.

Ngôn ngữ chính
Swift
Star
34.9k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MonitorControl/MonitorControl

Tất cả issue của MonitorControl/MonitorControl

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.