How to Stop Ubuntu Linux from Automatically Opening the On-Screen Keyboard

The Virtual Keyboard Intrusion

The default GNOME desktop environment in Ubuntu Linux includes built-in accessibility features to support users with touchscreens, 2-in-1 convertible laptops, or physical mobility requirements. One of these features is the On-Screen Keyboard. Unfortunately, GNOME occasionally struggles to correctly identify the hardware state of certain laptops. It might think your device is operating in “tablet mode” even when the physical keyboard is attached and functioning perfectly. When this happens, clicking inside any text field (like the browser address bar or a terminal window) triggers a massive virtual keyboard to slide up from the bottom of the screen, covering half of your workspace and interrupting your typing.

How to Disable the On-Screen Keyboard in Accessibility Settings

The easiest way to stop this behavior is to simply toggle the feature off within the main system settings.

1. Open the Settings application. You can do this by clicking the system menu in the top-right corner of the top panel and selecting the gear icon.

2. In the left-hand navigation sidebar, scroll down and click on Accessibility.

3. Look for the section labelled “Typing.”

4. Locate the option for Screen Keyboard.

5. If the toggle switch next to it is active, click it to turn it Off.

This explicitly tells the GNOME shell that you do not require virtual typing assistance, preventing the keyboard from launching when text fields gain focus.

How to Block the Keyboard Using GNOME Extensions

If the standard settings toggle fails (which sometimes happens if a specific application explicitly requests the virtual keyboard, bypassing the global setting), you can forcibly block the keyboard interface using a GNOME Shell Extension.

1. Open your web browser and navigate to the GNOME Extensions website (extensions.gnome.org).

2. Search for an extension named Block Caribou (Caribou is the underlying engine for the GNOME on-screen keyboard).

3. Click the toggle switch on the website to install and enable the extension.

This extension acts as a hard block, intercepting any system call that attempts to draw the virtual keyboard on the screen, ensuring that it remains permanently hidden regardless of what touchscreen hardware or buggy drivers Ubuntu detects.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.