debauchee / barrier

Open-source KVM software
Other
27.59k stars 1.52k forks source link

Ubuntu 20.04 host loses mouse and keyboard in xwindows when windows client is rebooted during windows update #1083

Open foftoogs opened 3 years ago

foftoogs commented 3 years ago

Describe the bug I use an Ubuntu 20.04 host and a windows 10 client machine.

I find that sometimes when I have focus on the client windows machine and I need to reboot that client machine (with a windows update or something), the mouse and keyboard is no longer working on the ubuntu host. It is like the barrier service dies on the windows machine and the focus remains on the client and does not switch back to the.

To Reproduce

Steps to reproduce the behavior:

  1. Configure barrier on the Ubuntu 20.04 host as the server
  2. Configre the barrier on the windows 10 client
  3. Once you have logged into windows make sure the focus of your mouse and keyboard is on the Windows 10 client machine
  4. Turn off the windows machine by doing a windows update or something that automatically reboots the machine. Ensure the the focus of the mouse and keyboard is still on that windows machine.
  5. Try and move your mouse and keyboard on the host machine.
  6. While you will see glimpses of the effect the cursor has in areas of the screen you expect it to be active on the host ubuntu desktop (host) you will not see the cursor itself. You will not be able to click on things or type into anything.

Expected behavior I expect that once you turn off a client machine and the focus is gone (because the client machine is no longer connected to the host machine) that the focus should be put back onto the host machine so that the mouse and keyboard can be used on that host machine.

Desktop (please complete the following information):

Additional context

I have tried this with straight restarting by clicking restart in windows but it does not have the same behaviour. You need to turn the machine off with a mechanism like windows update for the behaviour mentioned above.

lvzhaobing commented 3 years ago

I had the same problem, please help.

tibmeister commented 3 years ago

I have the same issue with the only remedy is to SSH into the Ubuntu box and kill -9 all barrier processes.

kohend commented 1 year ago

I saw this with an Ubuntu client rebooting while the mouse was on the client's screen.