Skip to content

Instantly share code, notes, and snippets.

@SanCoder-Q
Forked from JohnMurray/unload-keyboard
Last active July 25, 2016 07:24
Show Gist options
  • Save SanCoder-Q/fbd5eaa1c426a7338550fa47a0b9787c to your computer and use it in GitHub Desktop.
Save SanCoder-Q/fbd5eaa1c426a7338550fa47a0b9787c to your computer and use it in GitHub Desktop.
Disable Mac OS X Keyboard (built-in only)
#!/bin/bash
# Unload the keyboard so I can use my external keyboard
# and not worry about accidentally pressing buttons on
# the built-in. This may not be a problem for you but, you
# should see my desk sometimes (Oh no!!) ;-)
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/
# enableIt
sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment