📜  macbook 禁用内置键盘的输入 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:45.004000             🧑  作者: Mango

代码示例1
To disable the built-in keyboard:
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext

to enable it again:
sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext

it will throw some errors but does actually disable the keyboard