Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to disable and enable keyboard in ubuntu?

To Disable/Enable the keyboard, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

xinput -list

enter image description here

Once you find your ID, then

sleep 0.1 ; xinput set-prop 9 'Device Enabled' 0 ; sleep 5 ; xinput set-prop 9 'Device Enabled' 1

sleep 5 is the number of seconds (I guess) you want the keyboard to be disabled.

For more information on the xinput command see the ManPage.

Or you can use Lock keyboard utility.

Tags:

Keyboard

Shortcut Keys

Related

How can I edit Nautilus Places sidebar and Unity QuickList? Apache can't access folders in my home directory unable to delete file - rm: cannot remove Input/output error How do I check the health of a SSD? Permanent xmodmap in Ubuntu 13.04 What is a "Failed to load module "module-ladspa-sink"" error? Command-line to switch between profiles in gnome-terminal Ctrl+A does not select all in URL bar in Chrome and Firefox What's the difference between apt-get install and apt-get build-dep? How to enable the Radeon dynamic power management feature? How to access the last return value in bash? Extraction of incomplete .rar file

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy