banner
amtoaer

晓风残月

竹杖芒鞋轻胜马,谁怕?一蓑烟雨任平生。
github
x
telegram
steam
nintendo switch
email

Method to disable the built-in keyboard of a laptop.

title: Method to Disable the Built-in Keyboard on a Laptop
date: 2019-07-03 12:13:55
tags: [windows, linux]
categories: System Optimization
photos: /img/banner/images/5.jpg
description: Disable the built-in keyboard on Windows/Linux laptops

Windows

Disable

Run cmd as administrator and enter the following command:

sc config i8042prt start= disabled

Restart your computer afterwards.

Restore

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

sc config i8042prt start= demand

Linux

Note: This is for Manjaro

sudo pacman -S xorg-xinput

Install xorg-xinput using the above 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 id corresponding to 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.