How can I disable the trackpad (without restarting my computer) from the command-line on OS X Mavericks?

  • I really don't think there's a way you can do this.
    – Asmus
    Nov 13, 2015 at 8:00

3 Answers 3


Try to use the following Code

sudo kextunload /System/Library/Extensions/AppleUSBMultitouch.kext/


The following commands have the same effect as checking the "Ignore built-in trackpad when mouse or wireless trackpad is present" option in the Accessibility panel of System Preferences:

$ defaults write com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad 1
$ defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad 1

To re-enable the trackpad:

$ defaults write com.apple.AppleMultitouchTrackpad USBMouseStopsTrackpad 0
$ defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad 0

You can disable your trackpad when an external mouse/trackpad is present:

For whatever reason you'd wish to disable your trackpad, even if no other device is attached:

  • The latter is my case. Unfortunately, it didn't work. The trackpad was not disabled. Mar 24, 2014 at 3:54
  • Hopefully you didn't follow the 'slam you fist 3 times' advice on this thread! J
    – bjbk
    Aug 2, 2015 at 20:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .