pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.57k stars 834 forks source link

karabiner_grabber causing mouse lag #3891

Open HackettLai opened 1 month ago

HackettLai commented 1 month ago

macOS 14.5 (23F79) Karabiner-Elements version 15.0.0 Mouse: MX Anywhere 3 Mac (Logitech)

I've noticed my cursor has been laggy or unresponsive recently, and I've identified "karabiner_grabber" as the root cause. I have only one complex modification set up to turn "Shift + right-click" into F1/F2, which requires the "Modify events" for the mouse to be enabled.

Below is my screen recording, where I was moving my mouse rapidly. You can see that with "karabiner_grabber" running, the cursor never reaches the ends of the screen, but when I end the process, it returns to normal.

Video

CleanShot 2024-08-10 at 14 24 06

asgeirtj commented 1 month ago

In my experience it's best to fin another way to modify mouse events than karabiner it is a disaster in my experience (g pro wireless). My advise just forget it and use other apps Steermouse or Bettermouse (I love bettermouse but my mouse didn't settle down in it's jumpiness until I installed Steermouse drivers as well, ymmv)

HackettLai commented 1 month ago

In my experience it's best to fin another way to modify mouse events than karabiner it is a disaster in my experience (g pro wireless). My advise just forget it and use other apps Steermouse or Bettermouse (I love bettermouse but my mouse didn't settle down in it's jumpiness until I installed Steermouse drivers as well, ymmv)

In this case, I may consider switching to BTT completely , as I don't want to have too many apps running in the background. It's unfortunate because Karabiner was working well until the mouse issue arose.

asgeirtj commented 1 month ago

@HackettLai Karabiner is needed imo for the lowest level modifications like hyper key and rebinding some keys, i have like 5-7 complex modifications and some remapping for my extrenal keyboard and make sure mouse modify events is set to off. For mouse/tracbpad stuff i use better touch tool, for kb macros i use keyboard maestro, for global app shortcuts i use raycast ecause its so easy to manage and change them. good luck :)

tekezo commented 4 weeks ago

If the mouse DPI is extremely high or if you’re aiming for extremely low latency, there could be architectural limitations with Karabiner-Elements. However, if you’re experiencing noticeable lag, it might be due to key buffering caused by simultaneous key presses being enabled in complex modifications. Removing these simultaneous key press settings could potentially resolve the issue.