[GH-ISSUE #1402] Request: Ability to send Wakeup Packet to Client #1084

Open
opened 2026-05-05 07:27:32 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @shymega on GitHub (Nov 5, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1402

Discussed in https://github.com/debauchee/barrier/discussions/1294

Originally posted by ga2k September 19, 2021
How hard would it be to implement the sending of a TCP/IP Wakeup Packet to a client so that we can use Barrier to login to a sleeping PC?

Ideally such a packet could be sent when the mouse tries to enter the client's activity area. Check if the client responds to a ping. If the client doesn't respond, send the wakeup packet and a message to the active screen saying "Waking up client - try again in a bit..."

This would have to be optional, of course, with a configuration option to enable/disable it.

Enhancements:

Maybe have a timer on the message with an option to cancel it, if the user was just waving the mouse around and didn't mean to go into the client's activation area. The message box say something like

 ------------------------------------------------------
|                 Mac Mini is asleep.                 |
|                                                     |
|   We will try to wake up the client in 10 seconds   |
|         or you can click "Don't Switch".            |
|                                                     |
|    ------------                    --------------   |
|   | Do it now! |                  | Don't switch |  | 
|    ------------                    --------------   |
-------------------------------------------------------

Then if the timer expires, send the wakeup packet, wait for the client to wake up, and perform the switch.

What do you think?

Originally created by @shymega on GitHub (Nov 5, 2021). Original GitHub issue: https://github.com/debauchee/barrier/issues/1402 ### Discussed in https://github.com/debauchee/barrier/discussions/1294 <div type='discussions-op-text'> <sup>Originally posted by **ga2k** September 19, 2021</sup> How hard would it be to implement the sending of a TCP/IP Wakeup Packet to a client so that we can use Barrier to login to a sleeping PC? Ideally such a packet could be sent when the mouse tries to enter the client's activity area. Check if the client responds to a ping. If the client doesn't respond, send the wakeup packet and a message to the active screen saying "Waking up client - try again in a bit..." This would have to be optional, of course, with a configuration option to enable/disable it. Enhancements: Maybe have a timer on the message with an option to cancel it, if the user was just waving the mouse around and didn't mean to go into the client's activation area. The message box say something like ``` ------------------------------------------------------ | Mac Mini is asleep. | | | | We will try to wake up the client in 10 seconds | | or you can click "Don't Switch". | | | | ------------ -------------- | | | Do it now! | | Don't switch | | | ------------ -------------- | ------------------------------------------------------- ``` Then if the timer expires, send the wakeup packet, wait for the client to wake up, and perform the switch. What do you think?</div>
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#1084
No description provided.