Skip to content

fix #3863 and allow user to disable / enable audio cards - #4019

Merged
bbedward merged 3 commits into
duxlabs-dev:masterfrom
cmleon51:fix/audio_output
Oct 30, 2026
Merged

bbedward merged 3 commits into
duxlabs-dev:masterfrom
cmleon51:fix/audio_output

Conversation

@cmleon51

@cmleon51 cmleon51 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

As mentioned in Issue #3863 some users saw more devices inside QuickSetting than in the settings audio page. After investigation I found out that the devices that users see are not real devices but switchableOutputPorts available for different pipewire nodes.

Cause: the system had a repeater under the nodes list for switchableOutputPorts where if a user clicked one the parent node for that output port had it's port switched.

Fix: combine switchableOutputPorts and sink ports into a single list and selectable inside of the same tune popup

This merge tackles a regression that appeared because of this design choice: cards that were disabled no longer have the ability of being re-enabled

Cause: by removing the switchableOutputPorts rows disabled cards no longer appeared and no longer had the ability to switch on

Fix: add a new section that looks like the hidden sinks in the Audio settings page that allows the user to disable/enable audio cards

The code was written with Claude Code but it was reviewed, understood and modified by me.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

#3863

Screenshots / video

Issue #3863

Now the audio QuickSettings shows switchableOutputPorts together with normal output sinks:
image

After this merge switchableOutputPorts will be available in the tune section of a device:
image

Enable/Disable audio cards

Now there is no way for the user to disable an audio card but with this merge the user will be able to do it through the settings tab:

image image image

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

@github-actions github-actions Bot added breaking feature fix ui Quickshell UI under quickshell/ labels Oct 29, 2026
@bbedward

Copy link
Copy Markdown
Member

/claude review

Comment thread quickshell/Services/AudioService.qml Resolved
@claude

claude Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Claude review

One bug: some cards can be disabled but never re-enabled.

  • UCM and Bluetooth cards (no output:* profiles) can be disabled from Settings but never appear under "Disabled", so they cannot be turned back on. quickshell/Services/AudioService.qml:580

Checked: AudioService output choices, card profile switching and disabled-card detection, AudioPortSelector, AudioOutputDetail, AudioTab (confirm dialog, row slots, hidden/shown filters), i18n terms, deprecated shims. Model: claude-opus-5-5.

@cmleon51

Copy link
Copy Markdown
Contributor Author

Fixed the bug found by claude in commit 43669e1

@bbedward

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The earlier UCM/Bluetooth re-enable bug is fixed in 43669e1.

Checked: AudioService (output choices, card parsing with sink counts, disabled-card detection, id-based sink-to-card matching, setCardProfile, pending card switch), AudioPortSelector, AudioOutputDetail, AudioTab (disable/enable flow, confirm overlay, shown/hidden filters, card refresh on device-set change), i18n terms, deprecated shims, idle cost. Model: claude-opus-5-5.

@bbedward
bbedward merged commit f65e934 into duxlabs-dev:master Oct 30, 2026
3 checks passed
dux-ci Bot pushed a commit that referenced this pull request Oct 30, 2026
@purian23 purian23 removed the breaking label Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants