Disabling keyboard on Debian so you can do a video call on your laptop with an infant and he doesn't hang up on grandma

firebus's picture

The kid would much rather bang on the laptop keyboard than have a video call with grandma.

But banging on the keyboard inevitably leads to an early hang-up.

So disable the keyboard.

To deal with that pesky infinite carriage return problem, and make it easy to reenable the keyboard, make a couple of shell scripts, save them to the desktop, and you can double-click to disable, and double-click the other one to enable.

Disable


#!/bin/bash

# Your device id from xinput --list here
DEVICE_ID=11
xinput set-int-prop $DEVICE_ID "Device Enabled" 8 0

Enable


#!/bin/bash

# Your device id from xinput --list here
DEVICE_ID=11
xinput set-int-prop $DEVICE_ID "Device Enabled" 8 1


Powered by Drupal - Design by Artinet - Amazon Affiliate