[GH-ISSUE #757] Feature request: send command to HDMI switch #594

Open
opened 2026-05-05 06:44:16 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @VE3NEA on GitHub (Jun 19, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/757

When switching the mouse and keyboard between the screens, send a source selection command to the HDMI switch so that the monitor is switched as well. This will turn barrier from KM into a true KVM.

I am using barrier to switch the keyboard and mouse, and this HDMI switch to switch the monitor. All works fine, except that to switch the screens, I have to press both the barrier hotkey and the button on the switch.

It would be nice if the user could specify the RS232 port settings and the source switch command in the UI, and barrier would send this command to the specified COM port when switching the screens.

As a P.O.C., I have written code that sends the command to the switch on Windows, using my own
hard-coded port settings and commands. A complete solution will require some extra code to edit and store the settings.

Originally created by @VE3NEA on GitHub (Jun 19, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/757 When switching the mouse and keyboard between the screens, send a source selection command to the HDMI switch so that the monitor is switched as well. This will turn _barrier_ from KM into a true KVM. I am using _barrier_ to switch the keyboard and mouse, and [this HDMI switch](https://www.amazon.ca/dp/B01N2B8UTF) to switch the monitor. All works fine, except that to switch the screens, I have to press both the _barrier_ hotkey and the button on the switch. It would be nice if the user could specify the RS232 port settings and the source switch command in the UI, and _barrier_ would send this command to the specified COM port when switching the screens. As a P.O.C., I have written code that sends the command to the switch on Windows, using my own hard-coded port settings and commands. A complete solution will require some extra code to edit and store the settings.
gitea-mirror added the
work-in-progress
label 2026-05-05 06:44:16 -06:00
Author
Owner

@VE3NEA commented on GitHub (Jun 19, 2020):

Here is the pull request for my P.O.C. code. It works fine on my system and could be used as part of the complete solution.

<!-- gh-comment-id:646674151 --> @VE3NEA commented on GitHub (Jun 19, 2020): Here is the [pull request](https://github.com/debauchee/barrier/pull/758) for my P.O.C. code. It works fine on my system and could be used as part of the complete solution.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 19, 2020):

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:695146235 --> @github-actions[bot] commented on GitHub (Sep 19, 2020): This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@shymega commented on GitHub (Sep 25, 2020):

This is still being worked on. Adding bot mitigation label.

<!-- gh-comment-id:699151480 --> @shymega commented on GitHub (Sep 25, 2020): This is still being worked on. Adding bot mitigation label.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#594
No description provided.