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

Windows running server with scaled DPI doesn't work (v2.4.0) #1638

Open
badvision opened this issue Apr 7, 2022 · 16 comments
Open

Windows running server with scaled DPI doesn't work (v2.4.0) #1638

badvision opened this issue Apr 7, 2022 · 16 comments

Comments

@badvision
Copy link

What happened?

I was using an older RC of 2.3.3 on Windows (running server) and MacOS (running client). I have a 4k monitor with scaling factor usually set to 250%. This was working fine in 2.3.3, but after upgrading to 2.4.0 (both mac and windows) when I connect the client, the mouse gets stuck in the bottom-right corner of the client (which layout-wise is on the right with the server windows machine on the left.)

When I set my desktop scaling in windows to 100% and restart, the issue goes away. So I suspect very strongly this is a regression in how Windows HiDPI settings are handled by Barrier.

Given that HiDPI is neither a new windows feature nor is it uncommon to use it, it would be wonderful if the application were more aware of it.

Version

v2.4.0

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

Installed from the github release downloads

What OSes are you seeing the problem on? (Check all that apply)

Windows

What OS versions are you using?

Windows (server): 10 21H1
Mac (client): 12.3.1

Relevant log output

No weird errors in the log but it's clear by the mouse enter coordinate that it's going all the way to the lower-right of the screen because it's getting a multiplied set of mouse coordinates and not the real physical coordinate somewhere along the way.

Any other information

No response

@badvision
Copy link
Author

image
After a lot of trial and error (and reading bug reports from Synergy dating back to 2014) here's what I've come up with as a work-around:

  1. Open the program folder
  2. Right-click on "barriers.exe" (note the S at the end, we want the server executable)
  3. Open properties
  4. Click "Change settings for all users" (this is the part that really stumped me, Barrier doesn't run as my user account!)
  5. Click "Change High DPI Settings"
  6. I'm not sure which one worked but I checked "Use this setting to fix scaling problems" and also Override high DPI scaling set to "Application"
  7. OK on all the dialogs
  8. Restart barrier (make sure you stop the server process and restart it so the setting takes effect.)

@badvision
Copy link
Author

Can a 6-year old bug get some love?

@airsoftsnake
Copy link

image After a lot of trial and error (and reading bug reports from Synergy dating back to 2014) here's what I've come up with as a work-around:

Confirm that this works, important to do the "change setings for all users" I did not do that at first - I only did the change high dpi settings. Once I did the "all users", it worked. Thanks!

@igoticecream
Copy link

I can confirm this was the solution to my problem, I couldn't move the mouse on the client (clicks and keyboard did work). My display is 4K 150%

@greenkalx
Copy link

greenkalx commented May 7, 2022

This resolved the problem for me as well.
Windows server: 4k monitors with 200% scaling
Linux client: single monitor 1600x1200

This wasn't a problem with Barrier 2.3.2.

@yatli
Copy link

yatli commented May 20, 2022

Can confirm it works.
It's the server program barriers.exe, not the UI program barrier.exe! :D

@damienvancouver
Copy link

damienvancouver commented Jun 22, 2022

I have tried the workaround every which way but had no luck using Windows 11, 250% scaling on my 4k builtin with an external 1440p DP -> HDMI. If I set scaling to 100% on the builtin monitor it works, but i literally have to use a magnifying glass i have sitting by the laptop if i have to look at any text on that screen, lol!

Has anyone else got the workaround to behave in win11?

Do we know what changed or where to look to start working on a fix?

EDIT: I was able to workaround by uninstalling then downloading/reinstalling barrier v2.3.4. Everything works properly with scaling using that version.

@sejinK
Copy link

sejinK commented Jun 30, 2022

I can't find v2.3.5
after v2.3.4 there is only v2.4.0

@damienvancouver
Copy link

I can't find v2.3.5
after v2.3.4 there is only v2.4.

Sorry, it is version 2.3.4 you want, my mistake!

@patpadgett
Copy link

Thanks! This helped me TREMENDOUSLY!

image After a lot of trial and error (and reading bug reports from Synergy dating back to 2014) here's what I've come up with as a work-around:

  1. Open the program folder
  2. Right-click on "barriers.exe" (note the S at the end, we want the server executable)
  3. Open properties
  4. Click "Change settings for all users" (this is the part that really stumped me, Barrier doesn't run as my user account!)
  5. Click "Change High DPI Settings"
  6. I'm not sure which one worked but I checked "Use this setting to fix scaling problems" and also Override high DPI scaling set to "Application"
  7. OK on all the dialogs
  8. Restart barrier (make sure you stop the server process and restart it so the setting takes effect.)

@NaiveXu
Copy link

NaiveXu commented Jun 13, 2023

image After a lot of trial and error (and reading bug reports from Synergy dating back to 2014) here's what I've come up with as a work-around:

  1. Open the program folder
  2. Right-click on "barriers.exe" (note the S at the end, we want the server executable)
  3. Open properties
  4. Click "Change settings for all users" (this is the part that really stumped me, Barrier doesn't run as my user account!)
  5. Click "Change High DPI Settings"
  6. I'm not sure which one worked but I checked "Use this setting to fix scaling problems" and also Override high DPI scaling set to "Application"
  7. OK on all the dialogs
  8. Restart barrier (make sure you stop the server process and restart it so the setting takes effect.)

thanks a lot for solving my problem!

@amias-channer
Copy link

would be great if this setting could be enabled by the installer

@gleitoncampos
Copy link

Confirmed here too, this workaround works like a charm.

@hiuling
Copy link

hiuling commented Jan 3, 2024

win 11 doesnt work..

@SpaceCowboy850
Copy link

SpaceCowboy850 commented Jan 31, 2024

Barrier 2.4.0-release-3e0d758b
I can't get the workaround to work.
Windows 11 as server with 4K screen
Ubuntu 23.10 as client

I've set C:\Program Files\Barrier\barrier.exe Properties->Compatibility -> Change Settings For All Users -> Change High DPI scaling override -> CHECKED Override high DPI scaling behavior Scaling performed by "Application"

And on dragging the mouse to my Ubuntu machine, the mouse still locks to the bottom right corner of the screen. If I change DPI scaling to 100%, everything works, but my server becomes unreadable.

Any other ideas?

@kzaoaai
Copy link

kzaoaai commented Feb 22, 2024

Putting this here in case someone had the same situation as I have. My case was MacOS server with Windows 11 client. Follow the same steps above, but instead of the "barrierS.exe" (server) file, apply them to the "barrierC.exe" (client) file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests