Article 6NVKP Disabling laptop keyboard

Disabling laptop keyboard

by
Steve W
from LinuxQuestions.org on (#6NVKP)
I have an older Toshiba Satellite laptop onto which I've installed a lightweight Linux Mint 21.2, but recently the keyboard is playing up, typing long lines of x's or u's randomly. I've tried cleaning the keyboard but no luck - I think it's just the age of the laptop. I've been trying to disable the keyboard in Linux and just plug an external USB keyboard in.

Once it's booted up, I can do this in a Terminal by typing Code:xinput disable "AT Translated Set 2 keyboard"but if it's already playing silly beggars with its repeated x's, it's difficult, even if I just press the up cursor to access the previous time I executed the command!

I have been trying to stick the command in the startup scripts so it does it while loading.

Disabling laptop keyboards seems a popular topic, and I found a suggestion I should put a script into /etc/init.d called "S99disableKeyboard.sh" which looks like:
Code:#!/bin/bash
# Get the device id
id=$(xinput list --id-only 'AT Translated Set 2 keyboard')

xinput float $id... but it doesn't work. Once Linux in loaded, the internal keyboard still works. I have made sure the script is executable - can anyone see a reason why it won't work? Is the "init.d" folder correct for Linux Mint 21.2?

Thank you for any advice you can give.

Steve
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments