How to disable the notebook keyboard in Ubuntu
Open Terminal Run command xinput list
Virtual Core pointerId=2 [Master pointer (3)]? ? Virtual Core XTEST pointerId=4 [Slave pointer (2)]?? BTL Gaming MouseId=Ten [Slave Pointer (2)]?? synps/2 Synaptics TouchPadId=[Slave Pointer (2)]?? USB USB KeyboardId=[Slave Pointer (2)]? Virtual Core KeyboardId=3 [Master Keyboard (2)]? Virtual Core XTEST KeyboardId=5 [Slave Keyboard (3)]? Power ButtonId=6 [Slave Keyboard (3)]? Video BusId=7 [Slave Keyboard (3)]? Power ButtonId=8 [Slave Keyboard (3)]? Sleep Button id=9 [slave keyboard (3)]? BTL Gaming Mouse id=[slave keyboard (3)]? Lenovo easycamera id=[slave keyboard (3)]? Ideapad extra Buttons id=[slave keyboard (3)]? At translated Set 2 keyboard id=[slave keyboard (3)]? USB USB Keyboard id=[Slave Keyboard (3)]
Find your laptop keyboard ID, similar to this on my computer:
? AT Translated Set 2 keyboard id=16 [slave keyboard (3)]
And then execute
set-prop <id> "Device Enabled" 0xinput set-prop 16 "Device Enabled" 0
Ubuntu disabled notebook comes with keyboard