mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 22:01:23 -06:00
[GH-ISSUE #741] Enhancement: Allow mouse speed scaling for clients with dissimilar DPI #581
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#581
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hovissimo on GitHub (Jun 8, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/741
Operating Systems
Server: N/A (Windows 10 1809)
Client: N/A (Ubuntu 20.04)
Barrier Version
2.2.0 installed via apt
Steps to reproduce bug
In my specific scenario my server's single display is 2560x1440 and the client's single display is 3840x2160. The mouse "feels" way too slow on the client, assumably because the mouse updates are done in screen pixels. This issue is an enhancement request for mouse position scaling. MVP would be a client parameter configured on the server, but hopefully a conversion factor could be figured (and maybe enabled?) automatically.
Other info
When did the problem start to occur?
N/A
Is there a way to work around it?
Trying to adjust mouse speed on the client isn't a good workaround, it doesn't work in Ubuntu 20.04 and it would affect the local mouse as well.
Does this bug prevent you from using Barrier entirely?
No
#195 is related.
@linaori commented on GitHub (Jun 26, 2020):
Today I forgot to bring home my display port to dvi converter. I can't stare at my laptop screen, it's too small. I tried fractional scaling on Ubuntu 20.04 with barrier and it turns out that my mouse becomes slow on the client. Changing the mouse speed doesn't work, it remains slow. This makes fractional scaling unusable for me :(
@aaronjensen commented on GitHub (Jul 8, 2020):
I ran into the opposite problem. The mouse was too fast on the client. Luckily, my server is linux, so I set up barrier to log to
/tmp/barrier.logand then I run the below script. You should be able to tweak the speeds to your liking. Note that you'll need to plug in your mouse and speed property. You may be able to do a similar thing with Windows or macOS as the server if you know how to change the mouse speed via the shell.@hovissimo commented on GitHub (Jul 28, 2020):
@aaronjensen That hack is evil and I love it. Regretfully, I have to have the server running on the Windows machine and I'm not feeling bullish about scripting mouse speeds on Windows.
@jasonyavorsky commented on GitHub (Aug 3, 2020):
Would love this, my barrier host is on 1080p and my client is 4k so the mouse moves very slow on the client.
@yangshao commented on GitHub (Aug 7, 2020):
I have the same issue, the mouse on the client(mac) is too fast and i'm on the windows server, hope to see some updates soon.
@mono424 commented on GitHub (Aug 17, 2020):
+1 mouse speed settings per client would be awesome 💯
@psignoret commented on GitHub (Aug 31, 2020):
@hovissimo I've ported @aaronjensen's wonderful hack to PowerShell: https://gist.github.com/psignoret/32cecc507fba2508d05f4672fe52eeb2. Example usage:
@mr-samuca commented on GitHub (Sep 29, 2020):
I added an extra:
because gnome will trap the cursor when i'm interacting with the interface. It takes a little less then a second to work, tho.
@gwillen commented on GitHub (Nov 29, 2020):
I, too, love this terrible hack. Does anybody have an equivalent one for when the server is running on macOS?
@MANTENN commented on GitHub (Feb 19, 2021):
What's your client device? I am using ubuntu as the client and I have macOS as the server. You only need to adjust the speed on the client to make it consistent. The script doesn't work for me on ubuntu had to make some changes.
It runs and adjusts the property values but I am not seeing the changes with the UI.
@MANTENN commented on GitHub (Feb 19, 2021):
For Snap Packages you will need to run the script as admin.
Make it executable
chmod +x ~/barrier.sh@Alexey-Tsarev commented on GitHub (Nov 3, 2021):
Better idea is implement something like an option in a client's settings.
Something like - mouse movement coefficient.
By default it's 1.
If someone wants twice speed, then the value is 2.
And the opposite, if mouse speed is too fast, then 0.5.