amtoaer

晓风残月

叹息似的渺茫,你仍要保存着那真!
github
x
telegram
steam
nintendo switch
email

Method to disable the built-in keyboard of a laptop

Windows#

Disable#

Run cmd as administrator and enter the following command:

sc config i8042prt start= disabled

Restart your laptop afterwards.

Restore#

Follow the same steps as disabling, but change the command to:

sc config i8042prt start= demand

Linux#

Note: Manjaro requires

sudo pacman -S xorg-xinput

to be installed in order to use the xinput command.

Open the terminal and enter xinput --list to get the list of devices:

 xinput --list 
 Virtual core pointer                    	id=2	[master pointer  (3)]
 Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
 USB Optical Mouse Mouse                 	id=14	[slave  pointer  (2)]
 Synaptics TM3253-001                    	id=11	[slave  pointer  (2)]
 Virtual core keyboard                   	id=3	[master keyboard (2)]
 Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
 Power Button                            	id=6	[slave  keyboard (3)]
 Video Bus                               	id=7	[slave  keyboard (3)]
 Power Button                            	id=8	[slave  keyboard (3)]
 Sleep Button                            	id=9	[slave  keyboard (3)]
 Integrated_Webcam_HD: Integrate         	id=10	[slave  keyboard (3)]
 Dell WMI hotkeys                        	id=12	[slave  keyboard (3)]
 AT Translated Set 2 keyboard            	id=13	[slave  keyboard (3)]
 DELL Wireless hotkeys                   	id=15	[slave  keyboard (3)]
 USB Keyboard Consumer Control           	id=16	[slave  keyboard (3)]
 USB Keyboard System Control             	id=17	[slave  keyboard (3)]
 USB Keyboard                            	id=18	[slave  keyboard (3)]

Find the corresponding id for AT Translated Set 2 keyboard (in this case, it is 13).

Disable#

Enter the following command in the terminal:

xinput set-prop 13 "Device Enabled" 0 

Restore#

Enter the following command in the terminal:

xinput set-prop 13 "Device Enabled" 1
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.