1. Enter the first command-line tool
xinput list
Find AT Translated Set 2 keyboard, remember the back of ID, such as my ID was 21.
Input command to set the value of 0
xinput set-prop 21 "Device Enabled" 0
Then laptop keyboard can not be a valid input.
If you want to use to restore the line, enter the command:
xinput set-prop 21 "Device Enabled" 1
We can continue to use the notebook keyboard!