Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse sticking to upper left of screen on client device, constant up/left velocity on mouse? #500

Open
rspilk opened this issue Nov 19, 2019 · 10 comments
Labels
bug Something isn't working linux Related to Linux windows Related to Microsoft Windows

Comments

@rspilk
Copy link

rspilk commented Nov 19, 2019

Operating Systems

Server: Windows 10 Edu - 1809

Client: Arch Linux x86_64 Linux kernel 5.3.10-arch1-1 running i3

Barrier Version

2.3.2 (server and client)

Steps to reproduce bug

The issue happens all the time and barrier is completely unusable. Was working perfectly on this same version but unsure what has caused mouse behavior to change.

  1. Orient client to left of server
  2. Connect client to server successfully
  3. Move mouse to the left to the client
  4. Mouse is stuck to far upper left of screen, high mouse velocity might get it back to server but generally requires disconnecting to get mouse back on server.

Other info

  • When did the problem start to occur? It began last week
  • Is there a way to work around it? No
  • Does this bug prevent you from using Barrier entirely? Yes

Setting DEBUG2 in logs doesn't give me any info, it appears like there is a left/up velocity always on the mouse cursor on the client that I cannot remove. Issue persists on re installation of barrier on client and server. Barrier was working perfectly in i3 previously, I am unsure how to troubleshoot what caused the fault to begin as nothing is logged and googling is only yielding me issues here that have apparently been resolved.

Any troubleshooting steps to address would be appreciated.

@AdrianKoshka AdrianKoshka added bug Something isn't working linux Related to Linux windows Related to Microsoft Windows labels Nov 20, 2019
@rspilk
Copy link
Author

rspilk commented Nov 25, 2019

I rebuilt my client machine using lubuntu instead of arch, same behavior in both lxqt and i3 on this platform

@rspilk
Copy link
Author

rspilk commented Nov 27, 2019

I have completely uninstalled the application from both the lubuntu computer and the windows 10 pc. I have removed the files from ProgramData, AppData on the windows machine, and everywhere i could find any reference to them. I have reinstalled and still have the same behavior.

I have played with relative mouse settings, and still have no idea how to continue with fixing this, debug2 does not explain the behavior

@rspilk
Copy link
Author

rspilk commented Nov 27, 2019

Okay, so I ran barriers.exe to attempt to figure this out, I have the following config manually defined:

# +-------+  +--------+
 # |Laptop |  |Desktop1|
 # |       |  |        |
 # +-------+  +--------+

 section: screens
 	Laptop:
 	Desktop1:
 end

section: links
 	# Laptop is to the left of Desktop1
 	Desktop1:
 		left  = Laptop
 	# Desktop1 is to the right of Laptop
 	Laptop:
 		right = Desktop1
 end


 section: aliases
 	Laptop:
 		ansible
 	Desktop1:
 		XXXX-12345L
 end

I see the following messages:

[2019-11-27T07:35:23] DEBUG2: reading secure socket
[2019-11-27T07:35:23] DEBUG2: reading secure socket
[2019-11-27T07:35:23] DEBUG2: reading secure socket
[2019-11-27T07:35:23] DEBUG2: want to read, error=2, attempt=1
[2019-11-27T07:35:23] DEBUG2: msg from "ansible": CALV
[2019-11-27T07:35:23] DEBUG2: msg from "ansible": CNOP
[2019-11-27T07:35:23] DEBUG2: no-op from
[2019-11-27T07:35:24] DEBUG2: onMouseMoveSecondary -210,-133
[2019-11-27T07:35:24] DEBUG2: find neighbor on left of "Laptop"
[2019-11-27T07:35:24] DEBUG2: no neighbor on left of "Laptop"
[2019-11-27T07:35:24] DEBUG1: try to leave "Laptop" on left
[2019-11-27T07:35:24] DEBUG1: no neighbor left
[2019-11-27T07:35:24] DEBUG2: clamp to left of "Laptop"
[2019-11-27T07:35:24] DEBUG2: clamp to top of "Laptop"
[2019-11-27T07:35:24] DEBUG2: onMouseMoveSecondary -210,-132
[2019-11-27T07:35:24] DEBUG2: find neighbor on left of "Laptop"
[2019-11-27T07:35:24] DEBUG2: no neighbor on left of "Laptop"
[2019-11-27T07:35:24] DEBUG1: try to leave "Laptop" on left
[2019-11-27T07:35:24] DEBUG1: no neighbor left
[2019-11-27T07:35:24] DEBUG2: clamp to left of "Laptop"
[2019-11-27T07:35:24] DEBUG2: clamp to top of "Laptop"
[2019-11-27T07:35:24] DEBUG2: onMouseMoveSecondary -210,-132
[2019-11-27T07:35:24] DEBUG2: find neighbor on left of "Laptop"
[2019-11-27T07:35:24] DEBUG2: no neighbor on left of "Laptop"
[2019-11-27T07:35:24] DEBUG1: try to leave "Laptop" on left
[2019-11-27T07:35:24] DEBUG1: no neighbor left
[2019-11-27T07:35:24] DEBUG2: clamp to left of "Laptop"
[2019-11-27T07:35:24] DEBUG2: clamp to top of "Laptop"
[2019-11-27T07:35:26] DEBUG2: writef(CALV)
[2019-11-27T07:35:26] DEBUG2: wrote 4 bytes
[2019-11-27T07:35:26] DEBUG2: writing secure socket:000001664EC18DC0

The issue lines I am seeing are the "clamp to top and left" which is the behavior im seeing

@rspilk
Copy link
Author

rspilk commented Nov 27, 2019

I solved the issue with a workaround for anyone looking for this in the future. I found the following link related to synergy

It describes the issue as being caused by high DPI settings. To solve it do the following in Windows 10:

  1. Navigate to the install path of Barrier in explorer.exe (default: C:\Program Files\Barrier)
  2. Right click on barriers.exe, select properties, click Compatibility tab
  3. Click "Change Settings for All Users"
  4. Click on "Change high DPI settings
  5. Check the box "Override high DPI scaling behavior"
  6. Select Scaling performed by: Application
  7. click OK through the open boxes and reconnect synergy

This bug seems to be something to do with my resolution settings? I am not sure. I never experienced this before

@github-actions
Copy link

github-actions bot commented Oct 1, 2020

Is this issue still an issue for you? Please do comment and let us know! Alternatively, you may close the issue yourself if it is no longer an problem

@AstralStorm
Copy link

Confirmed with 2.3.3-release-743515e7 - with both server and client Windows 10 x64, one Insider 201024-2009, the other 1909.
Workaround on server side avoids the problem.

@rspilk
Copy link
Author

rspilk commented Jun 22, 2023

This issue still seems present in 2.4.0 and resolved by the same solution presented in #500 (comment)

@200found
Copy link

confirmed workaround still works as of 9/2023 on 2.4.0. thank you very much for this extensive solution.

@rspilk
Copy link
Author

rspilk commented Sep 27, 2023

confirmed workaround still works as of 9/2023 on 2.4.0. thank you very much for this extensive solution.

I'm really happy to hear that. Nothing worse than finding your exact problem in a google search and seeing a response to google it.

Since this issue has been present since synergy forks I wonder if there is any ideas on how it can be addressed this late in the game. Is this too OS-Level?

@rspilk
Copy link
Author

rspilk commented Sep 27, 2023

According to the Issue on the synergy-core project: deskflow#4041

After extensive conversation, the last comment is:

This bug is back in Windows 10 r1709. The fix that eventually worked for me was to remove the "Run in compatibility mode for: Windows 7" setting on synergys.exe. Unfortunately the configuration tool forces this setting back on any time you open it.

I don't know if it is fixable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux Related to Linux windows Related to Microsoft Windows
Projects
None yet
Development

No branches or pull requests

5 participants