Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Disable macOS Mouse Acceleration via Terminal

· 6 min read · Home Tech

In this article
  1. What Mouse Acceleration Is and Why You'd Disable It
  2. How macOS Implements Acceleration
  3. Step-by-Step: Disabling Acceleration via Terminal
  4. How to Verify the Change Took Effect
  5. Re-enabling Acceleration
  6. Common Problems and Workarounds
  7. Alternatives to the Command Line
  8. Frequently Asked Questions

Yes, you can disable mouse acceleration from the command line on macOS using the defaults command to change a hidden system setting. The exact command depends on your macOS version: for macOS Monterey and earlier, use defaults write .GlobalPreferences com.apple.mouse.scaling -1; for macOS Ventura and later, you must also disable the linear mouse acceleration with sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist redesigned_text_cursor -dict-add Enabled -bool NO (though the primary control remains the same). This article explains the commands, the differences between versions, and what to do if they don't work.

What Mouse Acceleration Is and Why You'd Disable It

Mouse acceleration (also called pointer acceleration) is a feature that adjusts the cursor's movement speed based on how fast you move the physical mouse. When you move the mouse slowly, the cursor moves a short distance; when you flick the mouse quickly, the cursor travels much farther. This helps with everyday tasks like pointing at small icons, but it can be frustrating for gamers, graphic designers, or anyone who needs precise, muscle-memory-driven cursor control. Disabling it makes the cursor movement linear: a given physical distance always moves the cursor the same on-screen distance, regardless of speed.

How macOS Implements Acceleration

macOS applies acceleration through a system-wide preference called com.apple.mouse.scaling. This preference is normally adjusted in System Settings (or System Preferences) under Mouse > Tracking Speed. The slider doesn't just change sensitivity; it changes the acceleration curve. Setting it to a low value reduces acceleration, but the GUI slider never fully disables it—there's always some non-linear response. The command-line trick sets the value to -1, which macOS interprets as "no acceleration." This is a hidden value not reachable through the slider.

In macOS Ventura (13.0) and later, Apple introduced a separate, additional layer of linear acceleration for the cursor, which is controlled by a feature flag. This is why some users report that the old -1 trick alone doesn't fully disable acceleration on newer systems. You may need to disable that flag as well, though the exact flag name can change between minor updates. As of macOS Sonoma (14.x) and Sequoia (15.x), the command shown in the introduction is the one most commonly cited in developer forums.

Step-by-Step: Disabling Acceleration via Terminal

  1. Open Terminal (found in /Applications/Utilities/).
  2. For macOS Monterey (12.x) and earlier, type or paste: defaults write .GlobalPreferences com.apple.mouse.scaling -1 and press Return.
  3. For macOS Ventura (13.x) and later, also run: sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist redesigned_text_cursor -dict-add Enabled -bool NO. You'll be prompted for your administrator password.
  4. Log out and back in, or restart your Mac, for the changes to take effect. Some users find that simply switching users or using killall Dock works, but a full restart is the safest.

After restarting, test the mouse. If acceleration is still present, you may need to check for third-party mouse drivers (like Logitech's or Razer's software) that override the system setting. Those drivers often have their own acceleration settings that need to be disabled separately.

How to Verify the Change Took Effect

There's no built-in "acceleration test" in macOS, but you can do a simple manual test: move the mouse a fixed physical distance slowly, then move it the same distance quickly. If the cursor travels the same on-screen distance in both cases, acceleration is off. If it travels farther when you move quickly, acceleration is still active.

You can also check the current value of the preference with: defaults read .GlobalPreferences com.apple.mouse.scaling. If it returns -1, the setting is applied. For the UIKit flag, you can read it with defaults read /Library/Preferences/FeatureFlags/Domain/UIKit.plist redesigned_text_cursor—if it shows Enabled = 0, the flag is disabled.

Re-enabling Acceleration

To restore the default behavior, simply set the scaling value back to a positive number (like 0 or 1) and re-enable the feature flag if you disabled it. The commands are:

  • defaults write .GlobalPreferences com.apple.mouse.scaling 0 (or any number from 0 to 3)
  • sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist redesigned_text_cursor -dict-add Enabled -bool YES (for Ventura and later)

Then restart again. You can also just use the Mouse settings pane to adjust the tracking speed, which will overwrite the -1 value with whatever the slider sets.

Common Problems and Workarounds

Users often report the following issues:

  • The command doesn't work on Apple Silicon Macs. The defaults command works the same on Apple Silicon, but the feature flag location may differ. If the UIKit flag command fails, try the older flag: sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist redesigned_text_cursor -dict-add Enabled -bool NO (same as above). If that doesn't help, search for the current flag name on reputable macOS development forums.
  • Acceleration returns after reboot. This can happen if a third-party utility resets the preference. Check for any mouse management software and disable its acceleration settings.
  • The mouse feels too slow or too fast after disabling. With acceleration off, you may need to adjust the tracking speed slider to a higher or lower value to get a comfortable sensitivity. The slider still works; it just no longer adds acceleration.
  • Bluetooth mice behave differently. Some Bluetooth mice have built-in acceleration that cannot be overridden by macOS. If your mouse is Bluetooth, test with a wired or USB receiver mouse to see if the issue is hardware-specific.

Alternatives to the Command Line

If you prefer a graphical interface, several free and paid utilities offer a checkbox to disable acceleration. These include LinearMouse, Steermouse, and USB Overdrive. These apps typically work by continuously setting the same hidden preferences, so they can be more reliable if you're not comfortable with Terminal. However, they run in the background and may consume a small amount of system resources.

For gamers, some mice have onboard memory that stores a DPI setting and a polling rate, but acceleration is usually handled by the OS, not the mouse hardware. So the OS-level fix is still necessary.

Frequently Asked Questions

Will this affect my trackpad?

No, the com.apple.mouse.scaling preference applies only to external mice. Trackpads have a separate preference (com.apple.trackpad.scaling), and they also have a different acceleration curve that cannot be fully disabled with the same trick. To change trackpad acceleration, you'd need a third-party tool.

Is this safe? Can it damage my Mac?

Yes, it's safe. You're only changing a user preference that Apple's own settings UI modifies. The -1 value is not officially documented, but it's widely used and doesn't alter any system files. You can revert it at any time.

Do I need to disable System Integrity Protection (SIP)?

No, you don't. The defaults command works without disabling SIP. The sudo command for the feature flag also works with SIP enabled, as it's writing to a standard preferences location.

Why does the command not work on my Mac?

If you're on macOS Ventura or later, the old command alone may not fully remove acceleration. Make sure you've also disabled the feature flag. If it still doesn't work, check for third-party mouse drivers, or try restarting after each command. Also, ensure you're typing the command exactly, including the spaces and hyphens.

Can I set a custom acceleration curve?

Not with the built-in commands. The -1 value only gives you linear (no acceleration) or the default curve. For a custom curve, you'd need a third-party tool like LinearMouse or Steermouse, which offer adjustable sensitivity and acceleration curves.