[GH-ISSUE #300] [Bug] Mouse is jumping #243

Open
opened 2026-05-05 05:46:54 -06:00 by gitea-mirror · 79 comments
Owner

Originally created by @domske on GitHub (May 7, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/300

Bug Report

The mouse is jumping if moved from rest. No problem when I move it continuously.
But if you wait between movements (just a few milliseconds / < second), the mouse jumps.
It's like it sleeps immediately, as soon as she stops moving.

See screen record:
screenrecord

Reproduce:
Move the mouse back and forth. While she has come to a complete halt for a moment.

This is very annoying. I expected a smooth movement. This is not possible if the mouse awakes delayed and jumps to position.
Maybe this is a wanted behavior to hibernate the transmission. If so, the timeout time should be increased to a minute or a few seconds.

Version

Server: Windows 10 Home (2.2.0)
Client: Mac OS X High Sierra (2.10) (Issue)

Any questions? I am glad to help.

Originally created by @domske on GitHub (May 7, 2019). Original GitHub issue: https://github.com/debauchee/barrier/issues/300 #### Bug Report The mouse is jumping if moved from rest. No problem when I move it continuously. But if you wait between movements (just a few milliseconds / < second), the mouse jumps. It's like it sleeps immediately, as soon as she stops moving. See screen record: ![screenrecord](https://user-images.githubusercontent.com/28209992/57329434-0a716900-7114-11e9-88ce-5b99ec1a35bf.gif) Reproduce: Move the mouse back and forth. While she has come to a complete halt for a moment. This is very annoying. I expected a smooth movement. This is not possible if the mouse awakes delayed and jumps to position. Maybe this is a wanted behavior to hibernate the transmission. If so, the timeout time should be increased to a minute or a few seconds. #### Version Server: Windows 10 Home (2.2.0) Client: Mac OS X High Sierra (2.10) (Issue) Any questions? I am glad to help.
gitea-mirror added the
macOS
bug
windows
labels 2026-05-05 05:46:54 -06:00
Author
Owner

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

Would I be correct in assuming that you're connecting over wifi? And that one or both systems have a power saving feature enabled? A mitigation for this might be sending dummy packets for a while after mouse movement.

<!-- gh-comment-id:490297140 --> @noisyshape commented on GitHub (May 8, 2019): Would I be correct in assuming that you're connecting over wifi? And that one or both systems have a power saving feature enabled? A mitigation for this might be sending dummy packets for a while after mouse movement.
Author
Owner

@domske commented on GitHub (May 8, 2019):

Yes, both devices are connected via WiFi in same network on a router. Do you mean, using LAN will not have this problem?...

<!-- gh-comment-id:490382129 --> @domske commented on GitHub (May 8, 2019): Yes, both devices are connected via WiFi in same network on a router. Do you mean, using LAN will not have this problem?...
Author
Owner

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

Do you mean, using LAN will not have this problem?...

It's entirely possible, I was tired when I saw this issue, but thanks for @noisyshape for pointing out the possible WiFi problem. In my experience with WiFi and barrier, things do seem latent. I'm not going to say it will fix your issue, but if you could try to reproduce this over ethernet, it'd be appreciated.

<!-- gh-comment-id:490469732 --> @AdrianKoshka commented on GitHub (May 8, 2019): > Do you mean, using LAN will not have this problem?... It's entirely possible, I was tired when I saw this issue, but thanks for @noisyshape for pointing out the possible WiFi problem. In my experience with WiFi and barrier, things do seem latent. I'm not going to say it will fix your issue, but if you could try to reproduce this over ethernet, it'd be appreciated.
Author
Owner

@mrwensveen commented on GitHub (May 9, 2019):

I also have this issue when I'm connected over WiFi. It's not consistent, though. Sometimes everything is silky smooth and sometimes not. I think it might depend on how much the network is utilized (it definitely seems worse when the kids are home and streaming video etc.)

<!-- gh-comment-id:490815382 --> @mrwensveen commented on GitHub (May 9, 2019): I also have this issue when I'm connected over WiFi. It's not consistent, though. Sometimes everything is silky smooth and sometimes not. I think it might depend on how much the network is utilized (it definitely seems worse when the kids are home and streaming video etc.)
Author
Owner

@AdrianKoshka commented on GitHub (Jun 28, 2019):

New release, unlikely it fixes this issue, but I thought I'd bring it up: https://github.com/debauchee/barrier/releases/tag/v2.3.0

<!-- gh-comment-id:506570264 --> @AdrianKoshka commented on GitHub (Jun 28, 2019): New release, unlikely it fixes this issue, but I thought I'd bring it up: https://github.com/debauchee/barrier/releases/tag/v2.3.0
Author
Owner

@maliesa96 commented on GitHub (Oct 29, 2019):

I had this issue. Decreasing the polling frequency on my mouse fixed it.

<!-- gh-comment-id:547269091 --> @maliesa96 commented on GitHub (Oct 29, 2019): I had this issue. Decreasing the polling frequency on my mouse fixed it.
Author
Owner

@tinybot-ca commented on GitHub (Mar 1, 2020):

I recall this being an issue with Synergy way back in the day -- and connecting my client machine (Macbook Pro laptop) via Ethernet got around it. Now, many years later, this still seems to be an issue on Wi-Fi? I suppose I can dig up an ethernet dongle -- but would love for a solution that would work for Wi-Fi.

Update: I connected my MacBook Pro to ethernet via dongle, and sure enough, this lagging/stuttering/jumping went completely away. If you do this, don't forget to stop and reload Barrier to pick-up and use the IP address used by your ethernet connection.

<!-- gh-comment-id:593050104 --> @tinybot-ca commented on GitHub (Mar 1, 2020): I recall this being an issue with Synergy way back in the day -- and connecting my client machine (Macbook Pro laptop) via Ethernet got around it. Now, many years later, this still seems to be an issue on Wi-Fi? I suppose I can dig up an ethernet dongle -- but would love for a solution that would work for Wi-Fi. Update: I connected my MacBook Pro to ethernet via dongle, and sure enough, this lagging/stuttering/jumping went completely away. If you do this, don't forget to stop and reload Barrier to pick-up and use the IP address used by your ethernet connection.
Author
Owner

@pinei commented on GitHub (Aug 7, 2020):

It seems to perform better over 5 Ghz Wifi than 2 Ghz

<!-- gh-comment-id:670304773 --> @pinei commented on GitHub (Aug 7, 2020): It seems to perform better over 5 Ghz Wifi than 2 Ghz
Author
Owner

@mrpew commented on GitHub (Oct 28, 2020):

Bug still relevant, I get frequent mouse stuttering/jumping between two Ubuntu Systems connected via Ethernet with a sub 1ms ping.

Sometimes happens occasionally (e.g. every 10-30 seconds) sometimes constantly (Unusable until barrier process is killed or direct input on the client is given).

While its happening, using the keyboard does not work either.

Happens with both the v2.3.3 release tag as well as the current master branch.

<!-- gh-comment-id:717741670 --> @mrpew commented on GitHub (Oct 28, 2020): Bug still relevant, I get frequent mouse stuttering/jumping between two Ubuntu Systems connected via **Ethernet** with a sub 1ms ping. Sometimes happens occasionally (e.g. every 10-30 seconds) sometimes constantly (Unusable until barrier process is killed or direct input on the client is given). While its happening, using the keyboard does not work either. Happens with both the v2.3.3 release tag as well as the current master branch.
Author
Owner

@fiftyfathoms commented on GitHub (Oct 30, 2020):

This bug affects me too. Kubuntu host 18.04.5, Windows 10 guest. It's strange that everything used work just fine for months and all of a sudden the mouse pointer started to show extreme stutters today.

<!-- gh-comment-id:719603010 --> @fiftyfathoms commented on GitHub (Oct 30, 2020): This bug affects me too. Kubuntu host 18.04.5, Windows 10 guest. It's strange that everything used work just fine for months and all of a sudden the mouse pointer started to show extreme stutters today.
Author
Owner

@Skrimpton commented on GitHub (Nov 16, 2020):

I have the same issue on one manjaro nibia 20.2 client.

Mouse also stops even with continous movement.

It is not an issue (at all) on a clean-installed Manjaro minimal nibia 20.2 laptop, where both share a windows 10 host.

The client with the bug is an upgraded system, that has been in use for about 6/7 months, with several "extra" apps installed.

The bug occurs with both a wireless logitech g602 mouse and a wired hp M-BT96a. Keyboard (logitech k350 wireless) is also affected, but with less noticable lag.

Added: Host pc uses a wired connection, whereas both clients are connected via WI-FI.

Second addition: Seems like rebooting into a "fresh" session fixed whatever was causing the issue for me. Also forgot to add I am running KDE Plasma on both clients.

Sorry if this then is a divergent/different issue, but leaving the comment for others to delete if neccesary

<!-- gh-comment-id:728236305 --> @Skrimpton commented on GitHub (Nov 16, 2020): I have the same issue on one manjaro nibia 20.2 client. Mouse also stops even with continous movement. It is not an issue (at all) on a clean-installed Manjaro minimal nibia 20.2 laptop, where both share a windows 10 host. The client with the bug is an upgraded system, that has been in use for about 6/7 months, with several "extra" apps installed. The bug occurs with both a wireless logitech g602 mouse and a wired hp M-BT96a. Keyboard (logitech k350 wireless) is also affected, but with less noticable lag. Added: Host pc uses a wired connection, whereas both clients are connected via WI-FI. Second addition: Seems like rebooting into a "fresh" session fixed whatever was causing the issue for me. Also forgot to add I am running KDE Plasma on both clients. Sorry if this then is a divergent/different issue, but leaving the comment for others to delete if neccesary
Author
Owner

@clankill3r commented on GitHub (Dec 3, 2020):

Same issue with 10.14.6. Ethernet cable made it better, but that's not really an option for me.

<!-- gh-comment-id:737759763 --> @clankill3r commented on GitHub (Dec 3, 2020): Same issue with 10.14.6. Ethernet cable made it better, but that's not really an option for me.
Author
Owner

@fiftyfathoms commented on GitHub (Dec 3, 2020):

An update to my previous comment:
After also checking Synergy and experiencing the same issue, I changed the the wifi band of my router from 2.4 to 5 GHz and the issue seems to be gone. I had switched off the 5 GHz channel long before, mainly due to the rather long distance between my computer and the router. Apparently even slight change in the position of the router helps a great deal with the transmission performance of the signal.

<!-- gh-comment-id:737765784 --> @fiftyfathoms commented on GitHub (Dec 3, 2020): An update to my previous comment: After also checking Synergy and experiencing the same issue, I changed the the wifi band of my router from 2.4 to 5 GHz and the issue seems to be gone. I had switched off the 5 GHz channel long before, mainly due to the rather long distance between my computer and the router. Apparently even slight change in the position of the router helps a great deal with the transmission performance of the signal.
Author
Owner

@ishridharhegde commented on GitHub (Dec 15, 2020):

I still have this issue using Windows 10 -> Linux Lite connected over wifi.
Many of you have suggested to switch to 5GHz band but my router does not have that band!
Is there any other fixes that any of you have found?

When I am using Windows 10 -> Windows 10, Mouse Without Borders works flawlessly !

<!-- gh-comment-id:745092676 --> @ishridharhegde commented on GitHub (Dec 15, 2020): I still have this issue using Windows 10 -> Linux Lite connected over wifi. Many of you have suggested to switch to 5GHz band but my router does not have that band! Is there any other fixes that any of you have found? When I am using Windows 10 -> Windows 10, Mouse Without Borders works flawlessly !
Author
Owner

@hungerregnuh commented on GitHub (Jan 22, 2021):

For my setup:

  • Client is a MBP (Catalina and Big Sur)
  • Linux Mint as my server and had no issues
  • I'm now running it as a server on a MBP (Big Sur) and this is when i noticed the mouse jumping issue.

What ultimately fixed it for me was getting my multi-display issue fixed. Anyone running a MBP with multi-display knows how finicky OSX has been lately with them. I have a 3 display setup and getting the third display to be stable was key. Once i got the third display to stop reconnecting the mouse jumping issue went away. Even when i don't have the third display connected the mouse jumps. I suspect barrier, OSX or both are "remembering" the third display even though it's not connected and is causing the mouse to jump around as something is constantly changing the actual width of my desktops.

not sure if this helps, hope it does.

<!-- gh-comment-id:765447841 --> @hungerregnuh commented on GitHub (Jan 22, 2021): For my setup: - Client is a MBP (Catalina and Big Sur) - Linux Mint as my server and had no issues - I'm now running it as a server on a MBP (Big Sur) and this is when i noticed the mouse jumping issue. What ultimately fixed it for me was getting my multi-display issue fixed. Anyone running a MBP with multi-display knows how finicky OSX has been lately with them. I have a 3 display setup and getting the third display to be stable was key. Once i got the third display to stop reconnecting the mouse jumping issue went away. Even when i don't have the third display connected the mouse jumps. I suspect barrier, OSX or both are "remembering" the third display even though it's not connected and is causing the mouse to jump around as something is constantly changing the actual width of my desktops. not sure if this helps, hope it does.
Author
Owner

@hungerregnuh commented on GitHub (Feb 2, 2021):

Not a fix, but it works - i also found out that if you enable the double tap edge to switch, the mouse doesn't jump around anymore, not as convenient sure - but works.

<!-- gh-comment-id:771648431 --> @hungerregnuh commented on GitHub (Feb 2, 2021): Not a fix, but it works - i also found out that if you enable the double tap edge to switch, the mouse doesn't jump around anymore, not as convenient sure - but works.
Author
Owner

@leonardssh commented on GitHub (Feb 26, 2021):

Has anyone solved this problem? (🟦Windows > 🐧Ubuntu) 😊

<!-- gh-comment-id:786932595 --> @leonardssh commented on GitHub (Feb 26, 2021): Has anyone solved this problem? (🟦Windows > 🐧Ubuntu) 😊
Author
Owner

@bbook1997 commented on GitHub (Mar 5, 2021):

Running Windows 10 Pro 10.0.19041 Build on two PC's. Connected via wireless for months now.
Running Barrier 2.3.3-release-f2bf7cb7 without any issues during all this time except for one time with mouse became sluggish on client. Restarting the server fixed it. Been running fine for weeks since then.
Suddenly, yesterday, the mouse has become very choppy on the client. I've rebooted both server and client twice since then, and it is still the same. I tried @hungerregnuh 's workaround, but that didn't help. I've tried changing the port used, but that hasn't helped. Logging is not turned on. Over 100GB available on all disk drives.
Would love to get some ideas on how to fix it.

I believe it is related to the fact that I have been doing a lot of testing using applications that talk to each other over the same network, and yesterday I had them sending tons of messages back and forth. But that test is not running now, and after rebooting, I had hoped it would clear out whatever is causing the delays, but nothing has helped so far.

Edit:
After uninstalling on both client and server and reinstalling, it now runs smoothly again.

<!-- gh-comment-id:791532063 --> @bbook1997 commented on GitHub (Mar 5, 2021): Running Windows 10 Pro 10.0.19041 Build on two PC's. Connected via wireless for months now. Running Barrier 2.3.3-release-f2bf7cb7 without any issues during all this time except for one time with mouse became sluggish on client. Restarting the server fixed it. Been running fine for weeks since then. Suddenly, yesterday, the mouse has become very choppy on the client. I've rebooted both server and client twice since then, and it is still the same. I tried @hungerregnuh 's workaround, but that didn't help. I've tried changing the port used, but that hasn't helped. Logging is not turned on. Over 100GB available on all disk drives. Would love to get some ideas on how to fix it. I believe it is related to the fact that I have been doing a lot of testing using applications that talk to each other over the same network, and yesterday I had them sending tons of messages back and forth. But that test is not running now, and after rebooting, I had hoped it would clear out whatever is causing the delays, but nothing has helped so far. Edit: After uninstalling on both client and server and reinstalling, it now runs smoothly again.
Author
Owner

@harveyr commented on GitHub (Apr 20, 2021):

I just had this problem for the first time. Host is macOS, client is Ubuntu. The problem seemed to coincide with a large-ish Google Meet on the client machine, which I assume caused a lot of network activity. More troubling than the mouse choppiness was the keyboard activity. It acted like keys were sticking on the client machine. So I'd try to type "Hello" and end up with "Hhhhhhhhhhheloooooooooo."

The problem persisted after the meeting ended. I tried restarting both client and server to no avail. I used the Reload button and hadn't tried manually restarting the processes yet. But just as I arrived here to write this, the problem went away. 🤷

Edit: This might be my issue https://github.com/debauchee/barrier/pull/679

<!-- gh-comment-id:823501145 --> @harveyr commented on GitHub (Apr 20, 2021): I just had this problem for the first time. Host is macOS, client is Ubuntu. The problem seemed to coincide with a large-ish Google Meet on the client machine, which I assume caused a lot of network activity. More troubling than the mouse choppiness was the keyboard activity. It acted like keys were sticking on the client machine. So I'd try to type "Hello" and end up with "Hhhhhhhhhhheloooooooooo." The problem persisted after the meeting ended. I tried restarting both client and server to no avail. I used the Reload button and hadn't tried manually restarting the processes yet. But just as I arrived here to write this, the problem went away. 🤷 Edit: This might be my issue https://github.com/debauchee/barrier/pull/679
Author
Owner

@noveltomatillo8 commented on GitHub (Apr 23, 2021):

I'm having this same issue for the first time on my client. Host and client are both W10, WiFi host, ethernet client. The (wireless) mouse cursor lags and skips around for 1-5 seconds every 5-10 seconds no matter what speed I move the cursor but keyboard is totally fine. Switching mice didn't make a difference. Did a clean reinstall of Barrier on both machines to no avail. I only have one band on my router, so changing that isn't an option.

Worked perfectly for a month or so, but now randomly seeing this issue with no changes to either machine that I can think of. Any idea if this is just an underlying bug, or did any fix make a lasting difference?

<!-- gh-comment-id:825886621 --> @noveltomatillo8 commented on GitHub (Apr 23, 2021): I'm having this same issue for the first time on my client. Host and client are both W10, WiFi host, ethernet client. The (wireless) mouse cursor lags and skips around for 1-5 seconds every 5-10 seconds no matter what speed I move the cursor but keyboard is totally fine. Switching mice didn't make a difference. Did a clean reinstall of Barrier on both machines to no avail. I only have one band on my router, so changing that isn't an option. Worked perfectly for a month or so, but now randomly seeing this issue with no changes to either machine that I can think of. Any idea if this is just an underlying bug, or did any fix make a lasting difference?
Author
Owner

@bbook1997 commented on GitHub (Apr 23, 2021):

Somewhat off topic, but I switched over to "Mouse Without Boarders" from Microsoft. And so far, I've had very little problem with it. Only once when I had heavy internet traffic did the mouse start lagging, but a quick disconnect / reconnect fixed it immediately. Also, I had a lot of problems with Barrier connecting my two computers together. Sometimes having to fiddle with things for several minutes. I've had zero issues with MWB connecting the two PC's together. Also, it's a 2-way connection, so I can use either mouse or keyboard. All in all, much better experience on Windows 10

<!-- gh-comment-id:825889164 --> @bbook1997 commented on GitHub (Apr 23, 2021): Somewhat off topic, but I switched over to "Mouse Without Boarders" from Microsoft. And so far, I've had very little problem with it. Only once when I had heavy internet traffic did the mouse start lagging, but a quick disconnect / reconnect fixed it immediately. Also, I had a lot of problems with Barrier connecting my two computers together. Sometimes having to fiddle with things for several minutes. I've had zero issues with MWB connecting the two PC's together. Also, it's a 2-way connection, so I can use either mouse or keyboard. All in all, much better experience on Windows 10
Author
Owner

@intositeme commented on GitHub (May 4, 2021):

Somewhat off topic, but I switched over to "Mouse Without Boarders" from Microsoft. And so far, I've had very little problem with it. Only once when I had heavy internet traffic did the mouse start lagging, but a quick disconnect / reconnect fixed it immediately. Also, I had a lot of problems with Barrier connecting my two computers together. Sometimes having to fiddle with things for several minutes. I've had zero issues with MWB connecting the two PC's together. Also, it's a 2-way connection, so I can use either mouse or keyboard. All in all, much better experience on Windows 10

Thanks for the share! Was connecting 2 Windows 10 systems, one on LAN and another on Wifi, and had the jumpy/laggy mouse on the client system. Tried "Mouse Without Boarders" and it didn't have the same kind of lag.

<!-- gh-comment-id:831741189 --> @intositeme commented on GitHub (May 4, 2021): > Somewhat off topic, but I switched over to "Mouse Without Boarders" from Microsoft. And so far, I've had very little problem with it. Only once when I had heavy internet traffic did the mouse start lagging, but a quick disconnect / reconnect fixed it immediately. Also, I had a lot of problems with Barrier connecting my two computers together. Sometimes having to fiddle with things for several minutes. I've had zero issues with MWB connecting the two PC's together. Also, it's a 2-way connection, so I can use either mouse or keyboard. All in all, much better experience on Windows 10 Thanks for the share! Was connecting 2 Windows 10 systems, one on LAN and another on Wifi, and had the jumpy/laggy mouse on the client system. Tried "Mouse Without Boarders" and it didn't have the same kind of lag.
Author
Owner

@jwallet commented on GitHub (May 4, 2021):

I'm still following this thread, but I found out it was better for me to be connected by LAN instead of wirelessly (WAN). I'm sure I will always have issues on wifi because my laptop only connects to the 2.4gHz network, and I also tried to have everything on the same desk (pc (wired), laptop (wifi), router) and I still got issues.

2.4gHz frequency band network can have their beacon signal interfered by many stuff in your house that use this same frequency, like appliances, like microwave or the router next door or even your cellphone, unlike 5gHz that have less interference. However 5gHz are easily stop by walls, so they reach less far than 2.4gHz band network.

It might not be what cause your problem, though.
But, if someone wants to try out the app using 5.gHz band network, that would be nice.

<!-- gh-comment-id:831875498 --> @jwallet commented on GitHub (May 4, 2021): I'm still following this thread, but I found out it was better for me to be connected by LAN instead of wirelessly (WAN). I'm sure I will always have issues on wifi because my laptop only connects to the 2.4gHz network, and I also tried to have everything on the same desk (pc (wired), laptop (wifi), router) and I still got issues. 2.4gHz frequency band network can have their beacon signal interfered by many stuff in your house that use this same frequency, like appliances, like microwave or the router next door or even your cellphone, unlike 5gHz that have less interference. However 5gHz are easily stop by walls, so they reach less far than 2.4gHz band network. It might not be what cause your problem, though. But, if someone wants to try out the app using 5.gHz band network, that would be nice.
Author
Owner

@clankill3r commented on GitHub (May 5, 2021):

I don't think people realize how fast computers are. You don't need 5gHz in order to send the mouse position 60 times a second.

<!-- gh-comment-id:832456668 --> @clankill3r commented on GitHub (May 5, 2021): I don't think people realize how fast computers are. You don't need 5gHz in order to send the mouse position 60 times a second.
Author
Owner

@jwallet commented on GitHub (May 31, 2021):

No but, like I said, you need a steady connection, I did not talk about the speed, but interference. I'm talking about shitty home router or having too many stuff interfering on your network, that may lower the quality of your wireless signal randomly. I want this software to be accurate at all time, not dropping for a second every 15 minutes or so.

<!-- gh-comment-id:851455050 --> @jwallet commented on GitHub (May 31, 2021): No but, like I said, you need a steady connection, I did not talk about the speed, but interference. I'm talking about shitty home router or having too many stuff interfering on your network, that may lower the quality of your wireless signal randomly. I want this software to be accurate at all time, not dropping for a second every 15 minutes or so.
Author
Owner

@idenc commented on GitHub (Jun 10, 2021):

Even on a 5gHz network, it stutters for me. Only solution was to use LAN

<!-- gh-comment-id:858248131 --> @idenc commented on GitHub (Jun 10, 2021): Even on a 5gHz network, it stutters for me. Only solution was to use LAN
Author
Owner

@aboode95 commented on GitHub (Jun 21, 2021):

To make barrier work over wifi, disable wifi power management:

Run:

sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

This conf file contains:

[connection]
wifi.powersave = 3

change the value to '2'. And reboot.

These instruction are from here.

Big thanks to @noisyshape for mentioning it is a wifi power saving feature issue!

(I am using a laptop with ralink 3090 card. Pretty troublesome card I must say)

<!-- gh-comment-id:865233923 --> @aboode95 commented on GitHub (Jun 21, 2021): To make barrier work over wifi, disable wifi power management: Run: sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf This conf file contains: [connection] wifi.powersave = 3 change the value to '2'. And reboot. These instruction are from [here](https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently). Big thanks to @noisyshape for mentioning it is a wifi power saving feature issue! (I am using a laptop with ralink 3090 card. Pretty troublesome card I must say)
Author
Owner

@sgon00 commented on GitHub (Aug 19, 2021):

I am running barrier in three devices: Linux (Debian 10), Windows 10, MacOS (Big Sur).
Linux as the server.
Windows 10 and MacOS as the clients.
I don't have any problems btw Linux and Windows 10.
The lagging issue only happens in MacOS Client.
To me, the problem is only in MacOS.

<!-- gh-comment-id:901589759 --> @sgon00 commented on GitHub (Aug 19, 2021): I am running barrier in three devices: Linux (Debian 10), Windows 10, MacOS (Big Sur). Linux as the server. Windows 10 and MacOS as the clients. I don't have any problems btw Linux and Windows 10. The lagging issue only happens in MacOS Client. To me, the problem is only in MacOS.
Author
Owner

@siathalysedI commented on GitHub (Aug 27, 2021):

For me it was solved selecting: "Use relative mouse moves"
Screen Shot 2021-08-27 at 0 25 46_2

<!-- gh-comment-id:906958521 --> @siathalysedI commented on GitHub (Aug 27, 2021): For me it was solved selecting: "Use relative mouse moves" <img width="799" alt="Screen Shot 2021-08-27 at 0 25 46_2" src="https://user-images.githubusercontent.com/548549/131082107-452119c6-b1d2-437c-acee-1ef1255cc075.png">
Author
Owner

@kvnxiao commented on GitHub (Aug 27, 2021):

If you don't need AirDrop, disable the awdl0 network interface which is for Apple Wireless Direct Link:

sudo ifconfig awdl0 down

This will help alleviate the choppiness in the mouse movement a lot

<!-- gh-comment-id:907528592 --> @kvnxiao commented on GitHub (Aug 27, 2021): If you don't need AirDrop, disable the `awdl0` network interface which is for Apple Wireless Direct Link: ``` sudo ifconfig awdl0 down ``` This will help alleviate the choppiness in the mouse movement _a lot_
Author
Owner

@nocode99 commented on GitHub (Sep 1, 2021):

I'm using the server on Big Sur and Ubuntu 20.04 as the client (I also reversed the set up as well) and none of the recommendations helped. I unfortunately cannot test using wired connections but found disabling Wi-Fi Networking in Location services to get rid of the issue. There's a little bit of jitter, but I don't expect the client to be 100% smooth.

Go to System Preferences -> Security & Privacy -> Location Services Unlock on the bottom left corner and then select Details in System Services. Uncheck Wi-Fi Networking

disable

<!-- gh-comment-id:910491017 --> @nocode99 commented on GitHub (Sep 1, 2021): I'm using the server on Big Sur and Ubuntu 20.04 as the client (I also reversed the set up as well) and none of the recommendations helped. I unfortunately cannot test using wired connections but found disabling `Wi-Fi Networking` in Location services to get rid of the issue. There's a little bit of jitter, but I don't expect the client to be 100% smooth. Go to *System Preferences -> Security & Privacy -> Location Services* Unlock on the bottom left corner and then select `Details` in System Services. Uncheck `Wi-Fi Networking` ![disable](https://i.imgur.com/9tnFqWL.png)
Author
Owner

@xQsme commented on GitHub (Sep 8, 2021):

Hi, I believe I'm suffering from this same issue.

I'm running the server on Linux and accessing on a MacOS client.
I've tried every suggestion except for plugging in an ethernet cable (don't have a dongle).

In my case, this issue was very severe, my laptop would freeze constantly, about 2s every 10s, during zoom calls.
After testing my internet stability (https://test.vsee.com/network/index.html), I bought a pretty good Wi-Fi powerline, and my connection became very stable, with low ping, high bandwidth, and no packet loss.

Currently, when listening to music, watching videos, or during zoom calls, I might occasionally get a short freeze (less than 1 sec), where my audio glitches completely.

If i click on the Wi-Fi indicator on MacOS's menu bar, the mouse movement loses it's smoothness for a couple seconds, I've also re-ran the network stability tests while doing this action and I end up with 8-40% packet loss when repeatedly doing this action, though if I disconnect Barrier and use my laptop's touchpad, the connection is flawless.

I'd honestly appreciate it a lot if this issue was resolved, and I'm available to contribute with anything I'm able to.
Thanks.

<!-- gh-comment-id:915254278 --> @xQsme commented on GitHub (Sep 8, 2021): Hi, I believe I'm suffering from this same issue. I'm running the server on Linux and accessing on a MacOS client. I've tried every suggestion except for plugging in an ethernet cable (don't have a dongle). In my case, this issue was very severe, my laptop would freeze constantly, about 2s every 10s, during zoom calls. After testing my internet stability (https://test.vsee.com/network/index.html), I bought a pretty good Wi-Fi powerline, and my connection became very stable, with low ping, high bandwidth, and no packet loss. Currently, when listening to music, watching videos, or during zoom calls, I might occasionally get a short freeze (less than 1 sec), where my audio glitches completely. If i click on the Wi-Fi indicator on MacOS's menu bar, the mouse movement loses it's smoothness for a couple seconds, I've also re-ran the network stability tests while doing this action and I end up with 8-40% packet loss when repeatedly doing this action, though if I disconnect Barrier and use my laptop's touchpad, the connection is flawless. I'd honestly appreciate it a lot if this issue was resolved, and I'm available to contribute with anything I'm able to. Thanks.
Author
Owner

@webdog commented on GitHub (Oct 1, 2021):

I'm experiencing this issue on a hard-wired setup. Each machine is on the same switch so latency is sub 1ms. No error messages reported in the log (logs turned up to highest debug level), but the mouse appears to freeze/jump every 100-500px without fail. Keyboard also suffers from latency. Issues survive a restart, and I've also swapped client/server with no resolution. On each host machine, the keyboard and mouse work fine.

MacOS 11.6 on both machines.

<!-- gh-comment-id:932497973 --> @webdog commented on GitHub (Oct 1, 2021): I'm experiencing this issue on a hard-wired setup. Each machine is on the same switch so latency is sub 1ms. No error messages reported in the log (logs turned up to highest debug level), but the mouse appears to freeze/jump every 100-500px without fail. Keyboard also suffers from latency. Issues survive a restart, and I've also swapped client/server with no resolution. On each host machine, the keyboard and mouse work fine. MacOS 11.6 on both machines.
Author
Owner

@itsCaveMan commented on GitHub (Oct 17, 2021):

I solved my lag by changing client sync to 1000ms

Configure server --> Advanced server settings --> Check clients every [1000]ms

Screenshot 2021-10-17 at 16 43 08

I have no lag on my 5g wifi AP, and the odd second here and there on my none-5g wifi AP

Host: MacOS Catalina
Client: Windows 10

<!-- gh-comment-id:945137605 --> @itsCaveMan commented on GitHub (Oct 17, 2021): I solved my lag by changing client sync to 1000ms `Configure server --> Advanced server settings --> Check clients every [1000]ms` ![Screenshot 2021-10-17 at 16 43 08](https://user-images.githubusercontent.com/51651537/137632470-0596bdf8-731a-4f6c-9aca-03a397f3b260.png) I have no lag on my 5g wifi AP, and the odd second here and there on my none-5g wifi AP Host: MacOS Catalina Client: Windows 10
Author
Owner

@RainOfPain125 commented on GitHub (Jan 14, 2022):

Waiting for devs to fix this, 3 years later.

I'm having this problem. I skimmed all the discussion, unlike others I am using a straight up ethernet connection, so wifi signal or what not is not affecting this at all.

I tried what some people here suggested - changing "Use relative mouse moves" on, and lowering the "Check clients every" from 5000ms to 1000ms, even 100ms. None of these fixed it.

Barrier was working just fine when I first started using it, I changed none of my settings. This leads me to believe there is nothing wrong on my end, and that Barrier simply starts to fuck up over time? I mean, I'm new to Linux and I've been installing stuff.

I installed Samba and setup a computer-to-computer file share over the same ethernet cord. However, disabling Samba (sudo service smbd stop, sudo service nmbd stop) did not fix the problem either (as I suspected maybe Samba was messing up the connection in some way). I think the problem may have been eased a little, but its probably just the placebo effect of turning off what I thought was harming Barrier's performance. Nevertheless, the problem still persists.

I used "iftop" to monitor all the ethernet connections between the two computers. Even when Barrier was the only connection, the input leaps still persisted.

<!-- gh-comment-id:1012632323 --> @RainOfPain125 commented on GitHub (Jan 14, 2022): Waiting for devs to fix this, 3 years later. I'm having this problem. I skimmed all the discussion, unlike others I am using a straight up ethernet connection, so wifi signal or what not is not affecting this at all. I tried what some people here suggested - changing "Use relative mouse moves" on, and lowering the "Check clients every" from 5000ms to 1000ms, even 100ms. None of these fixed it. Barrier was working just fine when I first started using it, I changed none of my settings. This leads me to believe there is nothing wrong on my end, and that Barrier simply starts to fuck up over time? I mean, I'm new to Linux and I've been installing stuff. I installed Samba and setup a computer-to-computer file share over the same ethernet cord. However, disabling Samba (sudo service smbd stop, sudo service nmbd stop) did not fix the problem either (as I suspected maybe Samba was messing up the connection in some way). I think the problem may have been eased a little, but its probably just the placebo effect of turning off what I thought was harming Barrier's performance. Nevertheless, the problem still persists. I used "iftop" to monitor all the ethernet connections between the two computers. Even when Barrier was the only connection, the input leaps still persisted.
Author
Owner

@clankill3r commented on GitHub (Jan 15, 2022):

I stopped using Barrier and use ShareMouse now.

<!-- gh-comment-id:1013667114 --> @clankill3r commented on GitHub (Jan 15, 2022): I stopped using Barrier and use ShareMouse now.
Author
Owner

@RainOfPain125 commented on GitHub (Jan 19, 2022):

I stopped using Barrier and use ShareMouse now.

Sadly this is not an option for me, because ShareMouse does not support Linux.

<!-- gh-comment-id:1016718403 --> @RainOfPain125 commented on GitHub (Jan 19, 2022): > I stopped using Barrier and use ShareMouse now. Sadly this is not an option for me, because ShareMouse does not support Linux.
Author
Owner

@mooreaa commented on GitHub (Mar 29, 2022):

Am having this issue as well.

Host: Mac OS Big Sur
Client: Win 11

Both machines are connected via ethernet. Mouse will periodically jump in normal use.

I have tried ShareMouse and it doesn't have the same problem.

I'm wondering if somehow its a process priority issue where barrier is being starved under heavy load conditions.

---- Using ShareMouse is NOT a good alternative as its 150 for the license ---- Hoping to find out why we're having this jumping issue with Barrier.

<!-- gh-comment-id:1082318300 --> @mooreaa commented on GitHub (Mar 29, 2022): Am having this issue as well. Host: Mac OS Big Sur Client: Win 11 Both machines are connected via ethernet. Mouse will periodically jump in normal use. I have tried ShareMouse and it doesn't have the same problem. I'm wondering if somehow its a process priority issue where barrier is being starved under heavy load conditions. ---- Using ShareMouse is NOT a good alternative as its 150 for the license ---- Hoping to find out why we're having this jumping issue with Barrier.
Author
Owner

@Agustin-Q commented on GitHub (Aug 4, 2022):

It seems to perform better over 5 Ghz Wifi than 2 Ghz

For me this solved the problem 100%

<!-- gh-comment-id:1205392054 --> @Agustin-Q commented on GitHub (Aug 4, 2022): > It seems to perform better over 5 Ghz Wifi than 2 Ghz For me this solved the problem 100%
Author
Owner

@j2L4e commented on GitHub (Sep 8, 2022):

For most people the issue should be their wireless adapter's powersave mode. When you continouusly ping your laptop, you'll likely notice rising latency when there's no network activity.

I don't think solving this on barrier's side (without effectively breaking wifi powersaving) is straight-forward.

My laptop usually runs on AC power when I use barrier, so I'm disabling powersave mode when not on battery.

To automate this on arch linux I'm using these udev rules. Attribute and device names can be different on other systems.

SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/bin/iw dev wlp1s0 set power_save on"
SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/bin/iw dev wlp1s0 set power_save off"
<!-- gh-comment-id:1240576371 --> @j2L4e commented on GitHub (Sep 8, 2022): For most people the issue should be their wireless adapter's powersave mode. When you continouusly ping your laptop, you'll likely notice rising latency when there's no network activity. I don't think solving this on barrier's side (without effectively breaking wifi powersaving) is straight-forward. My laptop usually runs on AC power when I use barrier, so I'm disabling powersave mode when not on battery. To automate this on arch linux I'm using these udev rules. Attribute and device names can be different on other systems. ``` SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/bin/iw dev wlp1s0 set power_save on" SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/bin/iw dev wlp1s0 set power_save off" ```
Author
Owner

@sgon00 commented on GitHub (Sep 8, 2022):

@j2L4e I totally disagree with you. You can only determine your case. How can you determine the cause for most people? My case is not related to wireless adapter's powersave mode at all. It only happens in MacOS. You can see that the author is having the problem in MacOS too. I don't know what happened to your arch linux, but the author is not using arch linux for sure.

<!-- gh-comment-id:1240835711 --> @sgon00 commented on GitHub (Sep 8, 2022): @j2L4e I totally disagree with you. You can only determine your case. How can you determine the cause for most people? My case is not related to wireless adapter's powersave mode at all. It only happens in MacOS. You can see that the author is having the problem in MacOS too. I don't know what happened to your arch linux, but the author is not using arch linux for sure.
Author
Owner

@j2L4e commented on GitHub (Sep 8, 2022):

You can only determine your case. How can you determine the cause for most people?

Enabling wifi powersaving reproducibly causes the exact behavior described by the author. It is also a useful feature that's enabled on close to all platforms by default. So if you're experiencing the described problem, this is a likely cause.

It only happens in MacOS.

That's obviously untrue because I observed the same thing on linux.

You can see that the author is having the problem in MacOS too. I don't know what happened to your arch linux, but the author is not using arch linux for sure.

The suspected cause is platform-independant. Letting people know how I worked around the problem might help them fix it on their end.

I totally disagree with you.

That's okay.
Why do you think what I wrote doesn't fit your problem?

<!-- gh-comment-id:1241047571 --> @j2L4e commented on GitHub (Sep 8, 2022): > You can only determine your case. How can you determine the cause for most people? Enabling wifi powersaving reproducibly causes the exact behavior described by the author. It is also a useful feature that's enabled on close to all platforms by default. So if you're experiencing the described problem, this is a likely cause. > It only happens in MacOS. That's obviously untrue because I observed the same thing on linux. > You can see that the author is having the problem in MacOS too. I don't know what happened to your arch linux, but the author is not using arch linux for sure. The suspected cause is platform-independant. Letting people know how I worked around the problem might help them fix it on their end. > I totally disagree with you. That's okay. Why do you think what I wrote doesn't fit your problem?
Author
Owner

@emircanerkul commented on GitHub (Sep 13, 2022):

I'm still following this thread, but I found out it was better for me to be connected by LAN instead of wirelessly (WAN). I'm sure I will always have issues on wifi because my laptop only connects to the 2.4gHz network, and I also tried to have everything on the same desk (pc (wired), laptop (wifi), router) and I still got issues.

2.4gHz frequency band network can have their beacon signal interfered by many stuff in your house that use this same frequency, like appliances, like microwave or the router next door or even your cellphone, unlike 5gHz that have less interference. However 5gHz are easily stop by walls, so they reach less far than 2.4gHz band network.

It might not be what cause your problem, though. But, if someone wants to try out the app using 5.gHz band network, that would be nice.

I'm here because I had the same problem. After I changed to 5ghz the problem disappear

<!-- gh-comment-id:1245820746 --> @emircanerkul commented on GitHub (Sep 13, 2022): > I'm still following this thread, but I found out it was better for me to be connected by LAN instead of wirelessly (WAN). I'm sure I will always have issues on wifi because my laptop only connects to the 2.4gHz network, and I also tried to have everything on the same desk (pc (wired), laptop (wifi), router) and I still got issues. > > 2.4gHz frequency band network can have their beacon signal interfered by many stuff in your house that use this same frequency, like appliances, like microwave or the router next door or even your cellphone, unlike 5gHz that have less interference. However 5gHz are easily stop by walls, so they reach less far than 2.4gHz band network. > > It might not be what cause your problem, though. But, if someone wants to try out the app using 5.gHz band network, that would be nice. I'm here because I had the same problem. After I changed to 5ghz the problem disappear
Author
Owner

@caseyrapnicki commented on GitHub (Oct 11, 2022):

I had Debug2 logging enabled (only to the error log, not to a file) on my client laptop (MacOS). Once I turned it back to Info, the mouse lag went away.

<!-- gh-comment-id:1274886712 --> @caseyrapnicki commented on GitHub (Oct 11, 2022): I had Debug2 logging enabled (only to the error log, not to a file) on my client laptop (MacOS). Once I turned it back to Info, the mouse lag went away.
Author
Owner

@spacegaucho commented on GitHub (Oct 13, 2022):

For most people the issue should be their wireless adapter's powersave mode. When you continouusly ping your laptop, you'll likely notice rising latency when there's no network activity.

I don't think solving this on barrier's side (without effectively breaking wifi powersaving) is straight-forward.

My laptop usually runs on AC power when I use barrier, so I'm disabling powersave mode when not on battery.

To automate this on arch linux I'm using these udev rules. Attribute and device names can be different on other systems.

SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/bin/iw dev wlp1s0 set power_save on"
SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/bin/iw dev wlp1s0 set power_save off"

yes this seems to be the problem. tried it out in linux client (lenovo notebook): echo 'on' | sudo tee /sys/bus/pci/devices/0000:3d:00.0/power/control

no more stutters, and as a bonus: latency decreased and mouse wheel doesn't stop working anymore.

if you are using linux, try using sudo powertop (needs to be installed in most distros) and figure out which wireless adapter you have. then disable powersaving.

<!-- gh-comment-id:1278209134 --> @spacegaucho commented on GitHub (Oct 13, 2022): > For most people the issue should be their wireless adapter's powersave mode. When you continouusly ping your laptop, you'll likely notice rising latency when there's no network activity. > > I don't think solving this on barrier's side (without effectively breaking wifi powersaving) is straight-forward. > > My laptop usually runs on AC power when I use barrier, so I'm disabling powersave mode when not on battery. > > To automate this on arch linux I'm using these udev rules. Attribute and device names can be different on other systems. > > ``` > SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/bin/iw dev wlp1s0 set power_save on" > SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/bin/iw dev wlp1s0 set power_save off" > ``` yes this seems to be the problem. tried it out in linux client (lenovo notebook): `echo 'on' | sudo tee /sys/bus/pci/devices/0000:3d:00.0/power/control` no more stutters, and as a bonus: latency decreased and mouse wheel doesn't stop working anymore. if you are using linux, try using `sudo powertop` (needs to be installed in most distros) and figure out which wireless adapter you have. then disable powersaving.
Author
Owner

@minimask commented on GitHub (Nov 21, 2022):

If you don't need AirDrop, disable the awdl0 network interface which is for Apple Wireless Direct Link:

sudo ifconfig awdl0 down

This will help alleviate the choppiness in the mouse movement a lot

Thanks! This fixed it for me. Worth a try if you're sharing between two Macs.

<!-- gh-comment-id:1322712367 --> @minimask commented on GitHub (Nov 21, 2022): > If you don't need AirDrop, disable the `awdl0` network interface which is for Apple Wireless Direct Link: > > ``` > sudo ifconfig awdl0 down > ``` > > This will help alleviate the choppiness in the mouse movement _a lot_ Thanks! This fixed it for me. Worth a try if you're sharing between two Macs.
Author
Owner

@mishmishb commented on GitHub (Nov 25, 2022):

@j2L4e @spacegaucho do either of you maybe have an idea of how to do this for MacOS? I would like to try and see if it helps as well :) however I haven't been able to find a useful result from Google

<!-- gh-comment-id:1327295688 --> @mishmishb commented on GitHub (Nov 25, 2022): @j2L4e @spacegaucho do either of you maybe have an idea of how to do this for MacOS? I would like to try and see if it helps as well :) however I haven't been able to find a useful result from Google
Author
Owner

@mishmishb commented on GitHub (Nov 25, 2022):

If you don't need AirDrop, disable the awdl0 network interface which is for Apple Wireless Direct Link:

sudo ifconfig awdl0 down

This will help alleviate the choppiness in the mouse movement a lot

This helped me a lot too :) so I guess this was the main reason for my issues

<!-- gh-comment-id:1327296721 --> @mishmishb commented on GitHub (Nov 25, 2022): > If you don't need AirDrop, disable the `awdl0` network interface which is for Apple Wireless Direct Link: > > ``` > sudo ifconfig awdl0 down > ``` > > This will help alleviate the choppiness in the mouse movement _a lot_ This helped me a lot too :) so I guess this was the main reason for my issues
Author
Owner

@aryansaurav commented on GitHub (Dec 10, 2022):

There could be multiple reasons for the lag and some of the hacks mentioned above might help.
For me, I unchecked "use relative mouse cursor" in the barrier Configure server. Helped speed up quite a bit.

<!-- gh-comment-id:1345283788 --> @aryansaurav commented on GitHub (Dec 10, 2022): There could be multiple reasons for the lag and some of the hacks mentioned above might help. For me, I unchecked "use relative mouse cursor" in the barrier Configure server. Helped speed up quite a bit.
Author
Owner

@MisutaaAsriel commented on GitHub (Dec 18, 2022):

@itsCaveMan's suggestion to decrease the client check period worked to reduce the lag but it's not gone.

The PC client is hardwired but the MacBook Air is on 5GHz Wi-Fi. The lag is also really intermittent.

I'm not entirely sure what may be causing it in my cases. — Changing the ethernet adapter's power saving options helped a little too, though.

<!-- gh-comment-id:1356646385 --> @MisutaaAsriel commented on GitHub (Dec 18, 2022): @itsCaveMan's suggestion to decrease the client check period worked to reduce the lag but it's *not* gone. The PC client is hardwired but the MacBook Air is on 5GHz Wi-Fi. The lag is also really intermittent. I'm not entirely sure what may be causing it in my cases. — Changing the ethernet adapter's power saving options helped a little too, though.
Author
Owner

@glantucan commented on GitHub (Dec 19, 2022):

I can confirm that in my case, both server and client being linux (pop_os! 22.04) and both conneted through Wi-Fi, disabling power saving for the Wi-Fi solved the issue completely.
Steps to disable Wi-Fi power saving:

  • Edit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf as root.
    sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
    
  • Change wifi.powersave = 3 to wifi.powersave = 2
  • Run systemctl restart NetworkManager
<!-- gh-comment-id:1358010315 --> @glantucan commented on GitHub (Dec 19, 2022): I can confirm that in my case, both server and client being linux (pop_os! 22.04) and both conneted through Wi-Fi, disabling power saving for the Wi-Fi solved the issue completely. Steps to disable Wi-Fi power saving: * Edit `/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf` as root. ``` sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf ``` * Change `wifi.powersave = 3` to `wifi.powersave = 2` * Run `systemctl restart NetworkManager`
Author
Owner

@draeder commented on GitHub (Dec 19, 2022):

I added port 28400 to my WiFi router's QoS and gave it highest priority. I then also configured the Barrier server's advanced settings to check clients every 5000 ms. The two together seems to alleviate my issues. However, I've had false positives on a fix for this in the past.

What I found by inspecting the network traffic is that the packets are being retransmitted when the lag occurs. They are TCP packets, which in my opinion is the wrong traffic type for this application. To me, it should be UDP which is better suited for real-time streaming data.

<!-- gh-comment-id:1358014656 --> @draeder commented on GitHub (Dec 19, 2022): I added port 28400 to my WiFi router's QoS and gave it highest priority. I then also configured the Barrier server's advanced settings to check clients every 5000 ms. The two together seems to alleviate my issues. However, I've had false positives on a fix for this in the past. What I found by inspecting the network traffic is that the packets are being retransmitted when the lag occurs. They are TCP packets, which in my opinion is the wrong traffic type for this application. To me, it should be UDP which is better suited for real-time streaming data.
Author
Owner

@annetimdegraaf commented on GitHub (Jan 11, 2023):

I'm running the latest barrier on a Mac Mini and a Windows 11 laptop. The Mac Mini is the server. Both are connected with ethernet to the same switch. Mouse warps like crazy on the Windows 11 Client. Tried everything from this list. Disable Airdrop, disable Relative Mouse, and enabled. Changed the "Check client every 1000ms". Nothing helps. The Windows 11 client just won't work like it should. Wished it was a WiFi problem but in my case, this is not the fix.

<!-- gh-comment-id:1378767567 --> @annetimdegraaf commented on GitHub (Jan 11, 2023): I'm running the latest barrier on a Mac Mini and a Windows 11 laptop. The Mac Mini is the server. Both are connected with ethernet to the same switch. Mouse warps like crazy on the Windows 11 Client. Tried everything from this list. Disable Airdrop, disable Relative Mouse, and enabled. Changed the "Check client every 1000ms". Nothing helps. The Windows 11 client just won't work like it should. Wished it was a WiFi problem but in my case, this is not the fix.
Author
Owner

@aryansaurav commented on GitHub (Jan 11, 2023):

I'm running the latest barrier on a Mac Mini and a Windows 11 laptop. The Mac Mini is the server. Both are connected with ethernet to the same switch. Mouse warps like crazy on the Windows 11 Client. Tried everything from this list. Disable Airdrop, disable Relative Mouse, and enabled. Changed the "Check client every 1000ms". Nothing helps. The Windows 11 client just won't work like it should. Wished it was a WiFi problem but in my case, this is not the fix.

I am also using it on Mac Mini and Windows PC. The way it worked for me was to run barrier in server mode on the Mac and client mode on Windows. You may have to specify the server's IP on the Windows PC but sometimes it may get detected automatically.

I didn't need any other trick. But at the same time, the other way (running server on Windows and client on Mac) never works at all. Hope this helps!

<!-- gh-comment-id:1378773501 --> @aryansaurav commented on GitHub (Jan 11, 2023): > I'm running the latest barrier on a Mac Mini and a Windows 11 laptop. The Mac Mini is the server. Both are connected with ethernet to the same switch. Mouse warps like crazy on the Windows 11 Client. Tried everything from this list. Disable Airdrop, disable Relative Mouse, and enabled. Changed the "Check client every 1000ms". Nothing helps. The Windows 11 client just won't work like it should. Wished it was a WiFi problem but in my case, this is not the fix. I am also using it on Mac Mini and Windows PC. The way it worked for me was to run barrier in server mode on the Mac and client mode on Windows. You may have to specify the server's IP on the Windows PC but sometimes it may get detected automatically. I didn't need any other trick. But at the same time, the other way (running server on Windows and client on Mac) never works at all. Hope this helps!
Author
Owner

@annetimdegraaf commented on GitHub (Jan 11, 2023):

I'm running the latest barrier on a Mac Mini and a Windows 11 laptop. The Mac Mini is the server. Both are connected with ethernet to the same switch. Mouse warps like crazy on the Windows 11 Client. Tried everything from this list. Disable Airdrop, disable Relative Mouse, and enabled. Changed the "Check client every 1000ms". Nothing helps. The Windows 11 client just won't work like it should. Wished it was a WiFi problem but in my case, this is not the fix.

I am also using it on Mac Mini and Windows PC. The way it worked for me was to run barrier in server mode on the Mac and client mode on Windows. You may have to specify the server's IP on the Windows PC but sometimes it may get detected automatically.

I didn't need any other trick. But at the same time, the other way (running server on Windows and client on Mac) never works at all. Hope this helps!

Thanks for helping me! I use the Mac Mini as server. Still warps on my client computer. So same setup but the with problems on my end. The connection between the two works, that is not the problem. It's just not stable on the client side.

<!-- gh-comment-id:1378785769 --> @annetimdegraaf commented on GitHub (Jan 11, 2023): > > I'm running the latest barrier on a Mac Mini and a Windows 11 laptop. The Mac Mini is the server. Both are connected with ethernet to the same switch. Mouse warps like crazy on the Windows 11 Client. Tried everything from this list. Disable Airdrop, disable Relative Mouse, and enabled. Changed the "Check client every 1000ms". Nothing helps. The Windows 11 client just won't work like it should. Wished it was a WiFi problem but in my case, this is not the fix. > > I am also using it on Mac Mini and Windows PC. The way it worked for me was to run barrier in server mode on the Mac and client mode on Windows. You may have to specify the server's IP on the Windows PC but sometimes it may get detected automatically. > > I didn't need any other trick. But at the same time, the other way (running server on Windows and client on Mac) never works at all. Hope this helps! Thanks for helping me! I use the Mac Mini as server. Still warps on my client computer. So same setup but the with problems on my end. The connection between the two works, that is not the problem. It's just not stable on the client side.
Author
Owner

@minimask commented on GitHub (Jan 12, 2023):

Thought disabling Airdrop fixed it for me, but the problem came back. I read on the Synergy site that it's a known Apple bug that Apple isn't prioritizing to fix. More info here.

<!-- gh-comment-id:1379653975 --> @minimask commented on GitHub (Jan 12, 2023): Thought disabling Airdrop fixed it for me, but the problem came back. I read on the Synergy site that it's a known Apple bug that Apple isn't prioritizing to fix. More info [here](https://symless.com/synergy-help/what-to-do-when-the-mouse-cursor-lags).
Author
Owner

@draeder commented on GitHub (Jan 12, 2023):

@minimask I have had this problem with all Synergy-based vKVMs between every OS I've ever tried to use them on. It has been this way for over a decade. I do not believe this is a problem with a particular OS. TCP should really not be used for realtime data. There is a reason multiplayer FPS games use UDP.

<!-- gh-comment-id:1381008244 --> @draeder commented on GitHub (Jan 12, 2023): @minimask I have had this problem with all Synergy-based vKVMs between every OS I've ever tried to use them on. It has been this way for over a decade. I do not believe this is a problem with a particular OS. TCP should really not be used for realtime data. There is a reason multiplayer FPS games use UDP.
Author
Owner

@MisutaaAsriel commented on GitHub (Jan 14, 2023):

@minimask I have had this problem with all Synergy-based vKVMs between every OS I've ever tried to use them on. It has been this way for over a decade. I do not believe this is a problem with a particular OS. TCP should really not be used for realtime data. There is a reason multiplayer FPS games use UDP.

Not only that, but Synergy says it's an issue primarily effecting Mac clients, but for myself, and I'm sure many others, we're running the server from our Mac.

After all, which is more likely to be ran partially "headless" (handless?) — A desktop PC with no mouse or keyboard, nestled in the corner of the living room plugged in to a TV? Or your expensive fruit-company laptop that you can throw in a bag and take with you everywhere?

it's based on an assumption that users prefer PC, which says no one is really quite testing their software the other direction.

<!-- gh-comment-id:1382628871 --> @MisutaaAsriel commented on GitHub (Jan 14, 2023): > @minimask I have had this problem with all Synergy-based vKVMs between every OS I've ever tried to use them on. It has been this way for over a decade. I do not believe this is a problem with a particular OS. TCP should really not be used for realtime data. There is a reason multiplayer FPS games use UDP. Not only that, but Synergy says it's an issue primarily effecting Mac *clients*, but for myself, and I'm sure many others, we're running the server from our Mac. After all, which is more likely to be ran partially "headless" (handless?) — A desktop PC with no mouse or keyboard, nestled in the corner of the living room plugged in to a TV? Or your expensive fruit-company laptop that you can throw in a bag and take with you everywhere? it's based on an assumption that users *prefer* PC, which says no one is really quite testing their software the other direction.
Author
Owner

@minimask commented on GitHub (Jan 16, 2023):

@MisutaaAsriel yes, I'm also running both the client and the server on two M1 Macs.

<!-- gh-comment-id:1384174357 --> @minimask commented on GitHub (Jan 16, 2023): @MisutaaAsriel yes, I'm also running both the client and the server on two M1 Macs.
Author
Owner

@draeder commented on GitHub (Jan 16, 2023):

@minimask @mishmishb
I've run it between mac <-> windows, windows <-> linux, mac <-> linux, with the server on both sides of all three and all three had the same issues. Since at least 2009.

<!-- gh-comment-id:1384252201 --> @draeder commented on GitHub (Jan 16, 2023): @minimask @mishmishb I've run it between mac <-> windows, windows <-> linux, mac <-> linux, with the server on both sides of all three and all three had the same issues. Since at least 2009.
Author
Owner

@minimask commented on GitHub (Jan 16, 2023):

@draeder does it happen only over Wifi? I'm not close to my router so could not test it via ethernet.

<!-- gh-comment-id:1384294612 --> @minimask commented on GitHub (Jan 16, 2023): @draeder does it happen only over Wifi? I'm not close to my router so could not test it via ethernet.
Author
Owner

@draeder commented on GitHub (Jan 17, 2023):

@minimask Unfortunately, I'm in the same boat. I did try a local switch some years ago and it didn't make a difference if I recall correctly. At that time it was windows <-> windows.

<!-- gh-comment-id:1386068942 --> @draeder commented on GitHub (Jan 17, 2023): @minimask Unfortunately, I'm in the same boat. I did try a local switch some years ago and it didn't make a difference if I recall correctly. At that time it was windows <-> windows.
Author
Owner

@vjpr commented on GitHub (Jan 31, 2023):

Anyone notice this is a new issue?

I'm running macOS (server - macbook) -> Windows 10 (client - 2nd macbook bootcamp).

I haven't used Barrier for a couple of months, but I remember it being really smooth and flawless.

I was using Mac to Mac recently with Universal Control and so had to enable AirDrop, etc.

Maybe Universal Control or some recent mac update it causing it.

<!-- gh-comment-id:1410651307 --> @vjpr commented on GitHub (Jan 31, 2023): Anyone notice this is a new issue? I'm running `macOS (server - macbook) -> Windows 10 (client - 2nd macbook bootcamp)`. I haven't used Barrier for a couple of months, but I remember it being really smooth and flawless. I was using Mac to Mac recently with `Universal Control` and so had to enable AirDrop, etc. Maybe Universal Control or some recent mac update it causing it.
Author
Owner

@draeder commented on GitHub (Feb 16, 2023):

I've been able to confirm a reliable workaround for macOS (server) -> Windows 10 (client). It isn't a permanent workaround, but when the issue crops up it does seem to be fairly reliable.

Mac:

  1. Stop Barrier
  2. From System Preferences, choose Network > WiFi
  3. Click Turn WiFi Off
  4. Click Advanced
  5. Click Hardware
  6. Change the Configure dropdown from Automatically to Custom
  7. Click OK
  8. Click Apply
  9. Turn WiFi On
  10. Repeat these steps but change the Configure dropdown from Custom back to Automatically
  11. Start Barrier

This seems to work for me every time the issue crops up. The steps are tedious but not as tedious as the mouse jumping all over and keystrokes being delayed.

Please report your mileage with this.

<!-- gh-comment-id:1433254139 --> @draeder commented on GitHub (Feb 16, 2023): I've been able to confirm a reliable workaround for macOS (server) -> Windows 10 (client). It isn't a permanent workaround, but when the issue crops up it does seem to be fairly reliable. Mac: 1. Stop Barrier 2. From System Preferences, choose Network > WiFi 3. Click Turn WiFi Off 4. Click Advanced 5. Click Hardware 6. Change the Configure dropdown from Automatically to Custom 7. Click OK 8. Click Apply 9. Turn WiFi On 10. Repeat these steps but change the Configure dropdown from Custom back to Automatically 11. Start Barrier This seems to work for me every time the issue crops up. The steps are tedious but not as tedious as the mouse jumping all over and keystrokes being delayed. Please report your mileage with this.
Author
Owner

@lk251 commented on GitHub (Feb 19, 2023):

I've been able to confirm a reliable workaround for macOS (server) -> Windows 10 (client). It isn't a permanent workaround, but when the issue crops up it does seem to be fairly reliable.

Mac:

  1. Stop Barrier
  2. From System Preferences, choose Network > WiFi
  3. Click Turn WiFi Off
  4. Click Advanced
  5. Click Hardware
  6. Change the Configure dropdown from Automatically to Custom
  7. Click OK
  8. Click Apply
  9. Turn WiFi On
  10. Repeat these steps but change the Configure dropdown from Custom back to Automatically
  11. Start Barrier

This seems to work for me every time the issue crops up. The steps are tedious but not as tedious as the mouse jumping all over and keystrokes being delayed.

Please report your mileage with this.

this solved the issue but after my mac, the server, went to sleep, the client, a win11 pc, started having the issue again.

how to solve this permamently? it didn't happen until today, i had been using barrier with no issues for a few days before this.

<!-- gh-comment-id:1436048505 --> @lk251 commented on GitHub (Feb 19, 2023): > I've been able to confirm a reliable workaround for macOS (server) -> Windows 10 (client). It isn't a permanent workaround, but when the issue crops up it does seem to be fairly reliable. > > Mac: > > 1. Stop Barrier > 2. From System Preferences, choose Network > WiFi > 3. Click Turn WiFi Off > 4. Click Advanced > 5. Click Hardware > 6. Change the Configure dropdown from Automatically to Custom > 7. Click OK > 8. Click Apply > 9. Turn WiFi On > 10. Repeat these steps but change the Configure dropdown from Custom back to Automatically > 11. Start Barrier > > This seems to work for me every time the issue crops up. The steps are tedious but not as tedious as the mouse jumping all over and keystrokes being delayed. > > Please report your mileage with this. this solved the issue but after my mac, the server, went to sleep, the client, a win11 pc, started having the issue again. how to solve this permamently? it didn't happen until today, i had been using barrier with no issues for a few days before this.
Author
Owner

@draeder commented on GitHub (Feb 20, 2023):

this solved the issue but after my mac, the server, went to sleep, the client, a win11 pc, started having the issue again.

how to solve this permamently? it didn't happen until today, i had been using barrier with no issues for a few days before this.

Unfortunately, there is no permanent fix. It has been an issue since at least 2009 and appears that it will never be solved. It's so bad, I have been looking into writing my own mouse and keyboard sharing software.

<!-- gh-comment-id:1437239022 --> @draeder commented on GitHub (Feb 20, 2023): > > this solved the issue but after my mac, the server, went to sleep, the client, a win11 pc, started having the issue again. > > how to solve this permamently? it didn't happen until today, i had been using barrier with no issues for a few days before this. Unfortunately, there is no permanent fix. It has been an issue since at least 2009 and appears that it will never be solved. It's so bad, I have been looking into writing my own mouse and keyboard sharing software.
Author
Owner

@Congles commented on GitHub (Mar 27, 2023):

I just installed Barrier and ran into this issue with a Mac -> Windows hardware setup.

enabling "Switch after waiting" in the Advanced Server settings area fixed this issue entirely for me.

The minimum setting seems to be 25ms and is an almost entirely unnoticeable delay. I wonder if the Dev's could look at this as a potential fix - perhaps by having a check box "Fix mouse jumping (enable if you have trouble with mouse teleports)" and this might set the value internally to 5ms.

<!-- gh-comment-id:1484405295 --> @Congles commented on GitHub (Mar 27, 2023): I just installed Barrier and ran into this issue with a Mac -> Windows hardware setup. ### **enabling _"Switch after waiting"_ in the Advanced Server settings area fixed this issue entirely for me.** The minimum setting seems to be 25ms and is an almost entirely unnoticeable delay. I wonder if the Dev's could look at this as a potential fix - perhaps by having a check box _"Fix mouse jumping (enable if you have trouble with mouse teleports)"_ and this might set the value internally to 5ms.
Author
Owner

@lk251 commented on GitHub (Apr 6, 2023):

this solved the issue but after my mac, the server, went to sleep, the client, a win11 pc, started having the issue again.
how to solve this permamently? it didn't happen until today, i had been using barrier with no issues for a few days before this.

Unfortunately, there is no permanent fix. It has been an issue since at least 2009 and appears that it will never be solved. It's so bad, I have been looking into writing my own mouse and keyboard sharing software.

thanks for the heads up. if you do write it, please do share a link here, i'd love to try it!

<!-- gh-comment-id:1499391545 --> @lk251 commented on GitHub (Apr 6, 2023): > > this solved the issue but after my mac, the server, went to sleep, the client, a win11 pc, started having the issue again. > > how to solve this permamently? it didn't happen until today, i had been using barrier with no issues for a few days before this. > > Unfortunately, there is no permanent fix. It has been an issue since at least 2009 and appears that it will never be solved. It's so bad, I have been looking into writing my own mouse and keyboard sharing software. thanks for the heads up. if you do write it, please do share a link here, i'd love to try it!
Author
Owner

@PrafulDhungana commented on GitHub (May 5, 2023):

I don't know if i could call this an actual solution but, when I plug in my client side laptop there are no stutters, and when I pull the plug the mouse stutters are back.
Windows 7 Desktop Host and Windows 10 Laptop client.

<!-- gh-comment-id:1535686444 --> @PrafulDhungana commented on GitHub (May 5, 2023): I don't know if i could call this an actual solution but, when I plug in my client side laptop there are no stutters, and when I pull the plug the mouse stutters are back. Windows 7 Desktop Host and Windows 10 Laptop client.
Author
Owner

@draeder commented on GitHub (May 5, 2023):

The minimum setting seems to be 25ms and is an almost entirely unnoticeable delay. I wonder if the Dev's could look at this as a potential fix - perhaps by having a check box "Fix mouse jumping (enable if you have trouble with mouse teleports)" and this might set the value internally to 5ms.

This appears to have greatly reduced the delay I was experiencing (notably I was able to lower this all the way to 10ms). It still happens, but not to the degree where it happens every half second (or less) with the delay sometimes happening for 1-2 seconds over minutes to hours at a time.

<!-- gh-comment-id:1536652216 --> @draeder commented on GitHub (May 5, 2023): > The minimum setting seems to be 25ms and is an almost entirely unnoticeable delay. I wonder if the Dev's could look at this as a potential fix - perhaps by having a check box _"Fix mouse jumping (enable if you have trouble with mouse teleports)"_ and this might set the value internally to 5ms. This appears to have greatly reduced the delay I was experiencing (notably I was able to lower this all the way to 10ms). It still happens, but not to the degree where it happens every half second (or less) with the delay sometimes happening for 1-2 seconds over minutes to hours at a time.
Author
Owner

@mikbuch commented on GitHub (Jun 2, 2023):

I just installed Barrier and ran into this issue with a Mac -> Windows hardware setup.

enabling "Switch after waiting" in the Advanced Server settings area fixed this issue entirely for me.

The minimum setting seems to be 25ms and is an almost entirely unnoticeable delay. I wonder if the Dev's could look at this as a potential fix - perhaps by having a check box "Fix mouse jumping (enable if you have trouble with mouse teleports)" and this might set the value internally to 5ms.

Amazing, this solution helped me to with Mac as a server and (an older) Mac as a client. Although this did not resolved the problem entirely, the lagging is now acceptable.

Btw., here is how to access advanced Barrier settings: https://github.com/debauchee/barrier/issues/232#issuecomment-455831297

<!-- gh-comment-id:1573706386 --> @mikbuch commented on GitHub (Jun 2, 2023): > I just installed Barrier and ran into this issue with a Mac -> Windows hardware setup. > > ### **enabling _"Switch after waiting"_ in the Advanced Server settings area fixed this issue entirely for me.** > The minimum setting seems to be 25ms and is an almost entirely unnoticeable delay. I wonder if the Dev's could look at this as a potential fix - perhaps by having a check box _"Fix mouse jumping (enable if you have trouble with mouse teleports)"_ and this might set the value internally to 5ms. Amazing, this solution helped me to with Mac as a server and (an older) Mac as a client. Although this did not resolved the problem entirely, the lagging is now acceptable. Btw., here is how to access advanced Barrier settings: https://github.com/debauchee/barrier/issues/232#issuecomment-455831297
Author
Owner

@rayanfer32 commented on GitHub (Jun 14, 2023):

I can confirm that in my case, both server and client being linux (pop_os! 22.04) and both conneted through Wi-Fi, disabling power saving for the Wi-Fi solved the issue completely. Steps to disable Wi-Fi power saving:

  • Edit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf as root.
    sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
    
  • Change wifi.powersave = 3 to wifi.powersave = 2
  • Run systemctl restart NetworkManager

Thank you , I was using windows 8 as host and ubuntu 22 laptop as client , and this solution solved the multiple keystrokes issue and mouse lag

<!-- gh-comment-id:1591218603 --> @rayanfer32 commented on GitHub (Jun 14, 2023): > I can confirm that in my case, both server and client being linux (pop_os! 22.04) and both conneted through Wi-Fi, disabling power saving for the Wi-Fi solved the issue completely. Steps to disable Wi-Fi power saving: > > * Edit `/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf` as root. > ``` > sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf > ``` > * Change `wifi.powersave = 3` to `wifi.powersave = 2` > * Run `systemctl restart NetworkManager` Thank you , I was using windows 8 as host and ubuntu 22 laptop as client , and this solution solved the multiple keystrokes issue and mouse lag
Author
Owner

@akayuki39 commented on GitHub (Jul 25, 2023):

I am using a mac as sever and a win as client in a 5G WIFI environment. It used to work well but I found the mouse become jumpy and laggy today.
Eventually find the reason is that my old mac's WIFI is not working well. Disable and enable the WIFI switch on my mac solve this problem. Hope this helps.

<!-- gh-comment-id:1650082191 --> @akayuki39 commented on GitHub (Jul 25, 2023): I am using a mac as sever and a win as client in a 5G WIFI environment. It used to work well but I found the mouse become jumpy and laggy today. Eventually find the reason is that my old mac's WIFI is not working well. Disable and enable the WIFI switch on my mac solve this problem. Hope this helps.
Author
Owner

@Henriquex25 commented on GitHub (Aug 27, 2023):

Posso confirmar que no meu caso, tanto o servidor quanto o cliente sendo Linux (pop_os! 22.04) e ambos conectados via Wi-Fi, desabilitar a economia de energia para o Wi-Fi resolveu o problema completamente. Etapas para desativar a economia de energia do Wi-Fi:

  • Edite /etc/NetworkManager/conf.d/default-wifi-powersave-on.confcomo root.
    sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
    
  • Mudar wifi.powersave = 3parawifi.powersave = 2
  • Corrersystemctl restart NetworkManager

This solved my problem!!! Thankss

W11 > Pop_OS 22.04

<!-- gh-comment-id:1694560178 --> @Henriquex25 commented on GitHub (Aug 27, 2023): > Posso confirmar que no meu caso, tanto o servidor quanto o cliente sendo Linux (pop_os! 22.04) e ambos conectados via Wi-Fi, desabilitar a economia de energia para o Wi-Fi resolveu o problema completamente. Etapas para desativar a economia de energia do Wi-Fi: > > * Edite `/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf`como root. > ``` > sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf > ``` > * Mudar `wifi.powersave = 3`para`wifi.powersave = 2` > * Correr`systemctl restart NetworkManager` This solved my problem!!! Thankss W11 > Pop_OS 22.04
Author
Owner

@gregwidener commented on GitHub (Dec 16, 2023):

I'm using Windows 11 as the server and a Steam Deck OLED as the client. I had the jumpy mouse issue and went through the entire thread and tried every trick as far as settings go. None of that worked. What worked for me was disabling wifi power savings on the Steam Deck, which I found in another forum. You have to go to Settings -> System -> Enable Developer Options. Once that is enabled, Developer Options are at the bottom of Settings. Go in there and disable Wifi Power Savings, which requires a restart. 100% fixed it for me! Looks like the issue is power savings on the wifi adapter across multiple versions of Linux/Unix/Mac OS X.

<!-- gh-comment-id:1858841148 --> @gregwidener commented on GitHub (Dec 16, 2023): I'm using Windows 11 as the server and a Steam Deck OLED as the client. I had the jumpy mouse issue and went through the entire thread and tried every trick as far as settings go. None of that worked. What worked for me was disabling wifi power savings on the Steam Deck, which I found in another forum. You have to go to Settings -> System -> Enable Developer Options. Once that is enabled, Developer Options are at the bottom of Settings. Go in there and disable Wifi Power Savings, which requires a restart. 100% fixed it for me! Looks like the issue is power savings on the wifi adapter across multiple versions of Linux/Unix/Mac OS X.
Author
Owner

@ekoleszar commented on GitHub (Apr 11, 2024):

An update to my previous comment: After also checking Synergy and experiencing the same issue, I changed the the wifi band of my router from 2.4 to 5 GHz and the issue seems to be gone. I had switched off the 5 GHz channel long before, mainly due to the rather long distance between my computer and the router. Apparently even slight change in the position of the router helps a great deal with the transmission performance of the signal.

That worked for me thank you very much!

<!-- gh-comment-id:2050013413 --> @ekoleszar commented on GitHub (Apr 11, 2024): > An update to my previous comment: After also checking Synergy and experiencing the same issue, I changed the the wifi band of my router from 2.4 to 5 GHz and the issue seems to be gone. I had switched off the 5 GHz channel long before, mainly due to the rather long distance between my computer and the router. Apparently even slight change in the position of the router helps a great deal with the transmission performance of the signal. That worked for me thank you very much!
Author
Owner

@kr1surb4n commented on GitHub (Apr 12, 2024):

Start from the network settings.
Check your router first. You might have some default settings which mess up the connection.
i.e.

  • my new router had the long preamble on by default -> the packets contain additional error correction data and are bigger, short preamble fixed the issue.
  • the 5GHz can solve the issue too, as it can send more data per unit of time
  • you might have also some sort of packet filtering
    After network check your system. You might also change which machine is the server and the client.
    If nothing works revert to cable.
<!-- gh-comment-id:2051658173 --> @kr1surb4n commented on GitHub (Apr 12, 2024): Start from the network settings. Check your router first. You might have some default settings which mess up the connection. i.e. - my new router had the long preamble on by default -> the packets contain additional error correction data and are bigger, short preamble fixed the issue. - the 5GHz can solve the issue too, as it can send more data per unit of time - you might have also some sort of packet filtering After network check your system. You might also change which machine is the server and the client. If nothing works revert to cable.
Author
Owner

@xortuna commented on GitHub (Apr 13, 2024):

This issue purely stems from WIFI's power saving modes.

If you are on Mac no option exists to change the WIFI power saving feature,

Instead you have to utilise the connection constantly to stop it going into power save mode, apple is VERY aggressive with their power saving, if a packet hasn't been sent in 200ms it'll power save and introduce a 300ms delay before the adapter will even begin acknowledge packets again.

To solve this simply ping your server every 200ms and it will reset the timeout and prevent the wifi adapter going into powersave, and eliminate the lag completely.
ping [YourServerIp] -i 0.20

<!-- gh-comment-id:2053599805 --> @xortuna commented on GitHub (Apr 13, 2024): This issue purely stems from WIFI's power saving modes. If you are on Mac no option exists to change the WIFI power saving feature, Instead you have to utilise the connection constantly to stop it going into power save mode, apple is **VERY** aggressive with their power saving, if a packet hasn't been sent in 200ms it'll power save and introduce a 300ms delay before the adapter will even begin acknowledge packets again. To solve this simply ping your server every 200ms and it will reset the timeout and prevent the wifi adapter going into powersave, and eliminate the lag completely. `ping [YourServerIp] -i 0.20 `
Author
Owner

@xtremextr commented on GitHub (Jul 20, 2024):

Finally fixed this problem on my end, ironically by a completely unrelated reason - buying a new mouse.

I'm using Barrier with Windows 11 as server x Linux Mint as client
Mouse stuttering was unbearable, I had to move it very slowly and steadily to have no stuttering.

Both are laptops using the same Wi-Fi network, tried everything listed here before, deactivated every power saving configs available on both laptops, tried 5ghz, everything set for performance, no solution.

While searching for a new mouse I came to understand Polling Rate, which is the update frequency of the mouse towards the pc.
If you have a good mouse, set for 500hz+ (in my case it was set for 1ms - 1000hz), this is the problem.

As soon as I set my Polling Rate to 4ms (250hz) or 8ms (125hz), the problem was gone.
Anything above this, the Wi-Fi simply can't take it and the mouse starts stuttering on the virtual screen.

This was mentioned once on this topic and I remember trying it through regedit without really understanding why.
Turns out I either 1. didn't reboot after changing for testing, or 2. Regedit couldn't override my mouse's hardware-saved config.

Hopefully this helps anyone going through this.

<!-- gh-comment-id:2240908471 --> @xtremextr commented on GitHub (Jul 20, 2024): Finally fixed this problem on my end, ironically by a completely unrelated reason - buying a new mouse. I'm using Barrier with Windows 11 as server x Linux Mint as client Mouse stuttering was unbearable, I had to move it very slowly and steadily to have no stuttering. Both are laptops using the same Wi-Fi network, tried everything listed here before, deactivated every power saving configs available on both laptops, tried 5ghz, everything set for performance, no solution. While searching for a new mouse I came to understand Polling Rate, which is the update frequency of the mouse towards the pc. If you have a good mouse, set for 500hz+ (in my case it was set for 1ms - 1000hz), this is the problem. **As soon as I set my Polling Rate to 4ms (250hz) or 8ms (125hz), the problem was gone.** Anything above this, the Wi-Fi simply can't take it and the mouse starts stuttering on the virtual screen. This was mentioned once on this topic and I remember trying it through regedit without really understanding why. Turns out I either 1. didn't reboot after changing for testing, or 2. Regedit couldn't override my mouse's hardware-saved config. Hopefully this helps anyone going through this.
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#243
No description provided.