How can I disable the trackpad (without restarting my computer) from the command-line on OS X Mavericks?
Try to use the following Code
sudo kextunload /System/Library/Extensions/AppleUSBMultitouch.kext/
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
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: