Skip to content

feat: remote screen brightness control from sender#68

Closed
ThomasWaldmann wants to merge 1 commit into
swellweb:mainfrom
ThomasWaldmann:control-brightness
Closed

feat: remote screen brightness control from sender#68
ThomasWaldmann wants to merge 1 commit into
swellweb:mainfrom
ThomasWaldmann:control-brightness

Conversation

@ThomasWaldmann
Copy link
Copy Markdown
Contributor

This pull request adds support for controlling the target receiver's screen brightness directly from the sender app.

Key Changes

  • Protocol update: Added packet type 0x33 (TB_PKT_BRIGHTNESS / .brightness) to transmit brightness levels.
  • Receiver implementation (C): Dynamically loads Apple's private DisplayServices framework at runtime via dlopen to control active screens' brightness smoothly.
  • Sender implementation (Swift/SwiftUI): Displays an interactive orange Slider in each active session card with instant synchronization and localized strings for Italian, English, and German.

DrDavidL added a commit to DrDavidL/targetBridge that referenced this pull request Jun 3, 2026
PR swellweb#68 (remote brightness control) already claims packet type 0x33, and it
predates this branch. Cede 0x33 to brightness and shift the KVM input
types up one: inputControl 0x33→0x34, mouseMove→0x35, mouseButton→0x36,
scroll→0x37, key→0x38. Updated in lockstep in TBMonitorProtocol.swift and
the receiver's proto.h (both reference these by name, so only the wire
values change). Now swellweb#68 and this PR can merge in any order without a
packet-type clash.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@swellweb
Copy link
Copy Markdown
Owner

swellweb commented Jun 3, 2026

Thanks again for this contribution. Remote brightness control is included in the 3.0 release branch and is part of the new release PR to main. Really appreciate the work on this.

@ThomasWaldmann
Copy link
Copy Markdown
Contributor Author

@swellweb If you have all you need from here, feel free to close.

@swellweb swellweb closed this Jun 4, 2026
@ThomasWaldmann ThomasWaldmann deleted the control-brightness branch June 5, 2026 08:30
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.

2 participants