So most information I've found online for disabling your laptop keyboard in Windows 10 is to go into Device Manager and uninstall the driver for your built-in keyboard so it will only use the input from your external one.
What I'd like to know is:
Is there any other way to do this? This seems like a hack/workaround.
Most information I've come across says that to re-enable your built-in keyboard, you just restart your machine. Is there a faster way to toggle the enabled/disabled state?
Can I automate/script this process? It would be really cool if I could write a program that toggles the state of the built-in keyboard either with a button press or click, or if it detects a certain USB device being plugged in.
EDIT
So this is what devcon says about my keyboard hardware:
HID\VID_320F&PID_500D&MI_00\7&FD25638&0&0000
Name: HID Keyboard Device
Hardware IDs:
HID\VID_320F&PID_500D&REV_0100&MI_00
HID\VID_320F&PID_500D&MI_00
HID\VID_320F&UP:0001_U:0006
HID_DEVICE_SYSTEM_KEYBOARD
HID_DEVICE_UP:0001_U:0006
HID_DEVICE
HID\VID_320F&PID_500D&MI_01&COL01\7&33A993FA&0&0000
Name: HID Keyboard Device
Hardware IDs:
HID\VID_320F&PID_500D&REV_0100&MI_01&Col01
HID\VID_320F&PID_500D&MI_01&Col01
HID\VID_320F&UP:0001_U:0006
HID_DEVICE_SYSTEM_KEYBOARD
HID_DEVICE_UP:0001_U:0006
HID_DEVICE
ACPI\MSNB1001\4&2B980D14&0
Name: Standard PS/2 Keyboard
Hardware IDs:
ACPI\VEN_MSNB&DEV_1001
ACPI\MSNB1001
MSNB1001
Compatible IDs:
PNP0303
HID\VID_046D&PID_C52B&MI_00\7&DB720BD&0&0000
Name: HID Keyboard Device
Hardware IDs:
HID\VID_046D&PID_C52B&REV_2411&MI_00
HID\VID_046D&PID_C52B&MI_00
HID\VID_046D&UP:0001_U:0006
HID_DEVICE_SYSTEM_KEYBOARD
HID_DEVICE_UP:0001_U:0006
HID_DEVICE
If I do this:
C:\Windows\system32>devcon.exe disable HID_DEVICE_SYSTEM_KEYBOARD
I get:
HID\VID_320F&PID_500D&MI_00\7&FD25638&0&0000 : Disable failed
HID\VID_320F&PID_500D&MI_01&COL01\7&33A993FA&0&0000 : Disable failed
HID\VID_046D&PID_C52B&MI_00\7&DB720BD&0&0000 : Disable failed
No matching devices found.
I don't know why my built-in keyboard shows up 3 times either. The 4th keyboard is the USB one I don't want to disable.
I'm definitely running CMD as admin, and the devcon status and restart commands work properly.