How do I disable a laptop's build-in keyboard on ubuntu?

2

I have a Kinesis keyboard that I ideally like to use by placing it on top of my laptop. When I do that, I wind up pressing keys on the built-in keyboard with my external keyboard.

I've been playing around with the GUI keyboard controls and reading the ubuntu forums for a couple hours without really any forward progress. Even a hacky solution or a pointer to a good library for configuring multiple keyboards differently would be much appreciated.

thanks.

David

Posted 2012-11-14T09:15:14.797

Reputation: 21

Answers

4

You can try adding

i8042.nokbd

to the GRUB boot line to disable access to the keyboard controller at boot.

It is possible to turn off the keyboard via 8042 commands without rebooting, but it's not really safe to do so; on some systems, this interferes with the memory management and causes a nasty system halt.

LSerni

Posted 2012-11-14T09:15:14.797

Reputation: 7 306

See https://askubuntu.com/a/681260/109579 for more instructions on how to do so.

– Dejan – 2018-04-07T16:06:58.087

this is perfect for my situation, worked fine, though had a scary moment at login :) For anyone who happens on this post with the same question, I googled i8042 and found http://blog.yjl.im/2010/12/using-xinput-to-disable-keyboard-mouse.html which outlines a pretty good post-boot approach.

– None – 2012-11-14T09:34:57.917

An even harderware approach would be to use four stripes of Plast-Attach or any other type of cuttable adhesive plastic to build a keyboard holder under your Kinesis - two large strips to distance the keyboards, and two smaller strips to keep the Kinesis from slipping :-) – LSerni – 2012-11-14T09:55:04.580