[GH-ISSUE #316] Server power button doesn't work when mouse is on client screen #254

Open
opened 2026-05-05 05:51:48 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @retnikt on GitHub (May 24, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/316

Operating Systems

Server: Ubuntu 18.04

Client: Windows 10 v1809

Barrier Version

2.2.0

Steps to reproduce bug

  1. Move mouse cursor to client screen
  2. Press server PC's power button
  3. Observe that nothing happens

Other info

  • When did the problem start to occur? Always I think
  • Is there a way to work around it? Yes, you can... move the mouse cursor to the server screen
  • Does this bug prevent you from using Barrier entirely? No
Originally created by @retnikt on GitHub (May 24, 2019). Original GitHub issue: https://github.com/debauchee/barrier/issues/316 ### Operating Systems ### Server: Ubuntu 18.04 Client: Windows 10 v1809 ### Barrier Version ### 2.2.0 ### Steps to reproduce bug ### 1. Move mouse cursor to client screen 2. Press server PC's power button 3. Observe that nothing happens ### Other info ### * When did the problem start to occur? Always I think * Is there a way to work around it? Yes, you can... move the mouse cursor to the server screen * Does this bug prevent you from using Barrier entirely? No
gitea-mirror added the
enhancement
label 2026-05-05 05:51:48 -06:00
Author
Owner

@AdrianKoshka commented on GitHub (May 24, 2019):

I don't understand, I need you to elaborate more.

<!-- gh-comment-id:495697171 --> @AdrianKoshka commented on GitHub (May 24, 2019): I don't understand, I need you to elaborate more.
Author
Owner

@retnikt commented on GitHub (May 24, 2019):

1 When I move the mouse cursor to the client screen,
2 and press the hardware power button on the server PC,
3 nothing happens.
Which part do you not understand?

<!-- gh-comment-id:495698405 --> @retnikt commented on GitHub (May 24, 2019): 1 When I move the mouse cursor to the client screen, 2 and press the hardware power button on the server PC, 3 nothing happens. Which part do you not understand?
Author
Owner

@noisyshape commented on GitHub (May 24, 2019):

Confirmed. Barrier grabs the X keyboard which according to xinput includes the power button. If the window manager is overriding logind/acpid to handle the power button, I would guess it's listening for an X event. The obvious solutions are for Barrier to either not grab that button or to simulate the key event on the server.

<!-- gh-comment-id:495770641 --> @noisyshape commented on GitHub (May 24, 2019): Confirmed. Barrier grabs the X keyboard which according to xinput includes the power button. If the window manager is overriding logind/acpid to handle the power button, I would guess it's listening for an X event. The obvious solutions are for Barrier to either not grab that button or to simulate the key event on the server.
Author
Owner

@AdrianKoshka commented on GitHub (May 24, 2019):

Oh…people do this…? I never knew.

<!-- gh-comment-id:495770944 --> @AdrianKoshka commented on GitHub (May 24, 2019): Oh…people do this…? I never knew.
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#254
No description provided.